/*
** Copyright (C) 1991, 1997-2000 Free Software Foundation, Inc.
-**
+**
** This file is part of TACK.
-**
+**
** TACK is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2, or (at your option)
** any later version.
-**
+**
** TACK is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
-**
+**
** You should have received a copy of the GNU General Public License
** along with TACK; see the file COPYING. If not, write to
-** the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-** Boston, MA 02111-1307, USA.
+** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+** Boston, MA 02110-1301, USA
*/
#include <tack.h>
-MODULE_ID("$Id: charset.c,v 1.8 2001/06/18 18:44:26 tom Exp $")
+MODULE_ID("$Id: charset.c,v 1.11 2006/11/26 00:13:36 tom Exp $")
/*
Menu definitions for alternate character set and SGR tests.
ptextln(temp);
put_str("This line s");
- s = tparm(to_status_line, 0);
+ s = TPARM_1(to_status_line, 0);
tc_putp(s);
for (i = 0; i < max; i++)
putchp(m[i]);
}
-void
+void
eat_cookie(void)
{ /* put a blank if this is not a magic cookie
terminal */
}
-void
+void
put_mode(char *s)
{ /* send the attribute string (with or without
% execution) */
- tc_putp(tparm(s)); /* allow % execution */
+ tc_putp(TPARM_0(s)); /* allow % execution */
}
for (i = 0; i < 31; i++) {
b[i] = (a >> i) & 1;
}
- tc_putp(tparm(set_attributes, b[1], b[2], b[3], b[4], b[5],
+ tc_putp(TPARM_9(set_attributes, b[1], b[2], b[3], b[4], b[5],
b[6], b[7], b[8], b[9]));
}
}
put_crlf();
-#ifdef max_attributes
+#ifdef max_attributes
if (max_attributes >= 0) {
sprintf(temp, "(ma) Maximum attributes %d ", max_attributes);
ptext(temp);
#ifdef ACS_ULCORNER
maybe_wait(5);
put_mode(enter_alt_charset_mode);
- put_this(ACS_ULCORNER);
- put_this(ACS_TTEE);
- put_this(ACS_URCORNER);
- put_this(ACS_ULCORNER);
- put_this(ACS_HLINE);
- put_this(ACS_URCORNER);
+ put_that(ACS_ULCORNER);
+ put_that(ACS_TTEE);
+ put_that(ACS_URCORNER);
+ put_that(ACS_ULCORNER);
+ put_that(ACS_HLINE);
+ put_that(ACS_URCORNER);
char_count += 6;
put_mode(exit_alt_charset_mode);
put_crlf();
put_mode(enter_alt_charset_mode);
- put_this(ACS_LTEE);
- put_this(ACS_PLUS);
- put_this(ACS_RTEE);
- put_this(ACS_VLINE);
+ put_that(ACS_LTEE);
+ put_that(ACS_PLUS);
+ put_that(ACS_RTEE);
+ put_that(ACS_VLINE);
if (magic_cookie_glitch >= 1)
put_this(' ');
else {
put_this(' ');
put_mode(enter_alt_charset_mode);
}
- put_this(ACS_VLINE);
+ put_that(ACS_VLINE);
char_count += 6;
put_mode(exit_alt_charset_mode);
put_str(" Here are 2 boxes");
put_crlf();
put_mode(enter_alt_charset_mode);
- put_this(ACS_LLCORNER);
- put_this(ACS_BTEE);
- put_this(ACS_LRCORNER);
- put_this(ACS_LLCORNER);
- put_this(ACS_HLINE);
- put_this(ACS_LRCORNER);
+ put_that(ACS_LLCORNER);
+ put_that(ACS_BTEE);
+ put_that(ACS_LRCORNER);
+ put_that(ACS_LLCORNER);
+ put_that(ACS_HLINE);
+ put_that(ACS_LRCORNER);
char_count += 6;
put_mode(exit_alt_charset_mode);
put_crlf();