SCCS-vsn: usr.bin/systat/keyboard.c 5.2
SCCS-vsn: usr.bin/tip/cmds.c 5.6
SCCS-vsn: usr.bin/tip/cmdtab.c 5.4
SCCS-vsn: usr.bin/tip/vars.c 5.2
-static char sccsid[] = "@(#)keyboard.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)keyboard.c 5.2 (Berkeley) %G%";
ch += 'a' - 'A';
if (col == 0) {
#define mask(s) (1 << ((s) - 1))
ch += 'a' - 'A';
if (col == 0) {
#define mask(s) (1 << ((s) - 1))
oldmask = sigblock(mask(SIGALRM));
wrefresh(curscr);
sigsetmask(oldmask);
continue;
}
oldmask = sigblock(mask(SIGALRM));
wrefresh(curscr);
sigsetmask(oldmask);
continue;
}
oldmask = sigblock(mask(SIGALRM));
status();
sigsetmask(oldmask);
oldmask = sigblock(mask(SIGALRM));
status();
sigsetmask(oldmask);
- if (ch == CTRL(w) && col > 0) {
+ if (ch == CTRL('w') && col > 0) {
while (--col >= 0 && isspace(line[col]))
;
col++;
while (--col >= 0 && isspace(line[col]))
;
col++;
-static char sccsid[] = "@(#)cmds.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)cmds.c 5.6 (Berkeley) %G%";
#endif not lint
#include "tip.h"
#endif not lint
#include "tip.h"
- kill(c == CTRL(y) ? getpid() : 0, SIGTSTP);
+ kill(c == CTRL('y') ? getpid() : 0, SIGTSTP);
-static char sccsid[] = "@(#)cmdtab.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)cmdtab.c 5.4 (Berkeley) %G%";
#endif not lint
#include "tip.h"
#endif not lint
#include "tip.h"
#endif
{ 'c', NORM, "change directory", chdirectory },
{ '.', NORM, "exit from tip", finish },
#endif
{ 'c', NORM, "change directory", chdirectory },
{ '.', NORM, "exit from tip", finish },
- {CTRL(d),NORM, "exit from tip", finish },
- {CTRL(y),NORM, "suspend tip (local+remote)", suspend },
- {CTRL(z),NORM, "suspend tip (local only)", suspend },
+ {CTRL('d'),NORM,"exit from tip", finish },
+ {CTRL('y'),NORM,"suspend tip (local+remote)", suspend },
+ {CTRL('z'),NORM,"suspend tip (local only)", suspend },
{ 's', NORM, "set variable", variable },
{ '?', NORM, "get this summary", help },
{ '#', NORM, "send break", genbrk },
{ 's', NORM, "set variable", variable },
{ '?', NORM, "get this summary", help },
{ '#', NORM, "send break", genbrk },
-static char sccsid[] = "@(#)vars.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)vars.c 5.2 (Berkeley) %G%";
#endif not lint
#include "tip.h"
#endif not lint
#include "tip.h"
{ "exceptions", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
"ex", (char *)&EX },
{ "force", CHAR, (READ|WRITE)<<PUBLIC,
{ "exceptions", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
"ex", (char *)&EX },
{ "force", CHAR, (READ|WRITE)<<PUBLIC,
- "fo", (char *)CTRL(p) },
+ "fo", (char *)CTRL('p') },
{ "framesize", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
"fr", (char *)&FS },
{ "host", STRING|IREMOTE|INIT, READ<<PUBLIC,
{ "framesize", NUMBER|IREMOTE|INIT, (READ|WRITE)<<PUBLIC,
"fr", (char *)&FS },
{ "host", STRING|IREMOTE|INIT, READ<<PUBLIC,
{ "raise", BOOL, (READ|WRITE)<<PUBLIC,
"ra", (char *)FALSE },
{ "raisechar", CHAR, (READ|WRITE)<<PUBLIC,
{ "raise", BOOL, (READ|WRITE)<<PUBLIC,
"ra", (char *)FALSE },
{ "raisechar", CHAR, (READ|WRITE)<<PUBLIC,
- "rc", (char *)CTRL(a) },
+ "rc", (char *)CTRL('a') },
{ "record", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
"rec", (char *)&RE },
{ "remote", STRING|INIT|IREMOTE, READ<<PUBLIC,
{ "record", STRING|INIT|IREMOTE, (READ|WRITE)<<PUBLIC,
"rec", (char *)&RE },
{ "remote", STRING|INIT|IREMOTE, READ<<PUBLIC,