diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 12:55:41 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 12:55:41 +0100 |
| commit | 831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9 (patch) | |
| tree | 18f8f9b88b16b426b6243d4fb006ef2fbd522e84 | |
| parent | Update e-mail (diff) | |
| download | vtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.gz vtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.bz2 vtchs-831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rw-r--r-- | README | 4 | ||||
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | vtchs.1 | 4 | ||||
| -rw-r--r-- | vtchs.c | 2 |
4 files changed, 7 insertions, 7 deletions
@@ -21,10 +21,10 @@ RATIONALE Sometimes you need to be able to know which console is in the foreground, and stay up to date on this. In particular, I want to be able - to record the output on the mintors, and have + to record the output on the monitors, and have it detect VT switches, so it can select the appropriate method and display; and I want to - be able to have VT dependent colour adjustments. + be able to have VT-dependent colour adjustments. SEE ALSO fgconsole(1), chvt(1) @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = LDFLAGS = -s @@ -25,10 +25,10 @@ when this happens. Sometimes you need to be able to know which console is in the foreground, and stay up to date on this. In particular, I want to be able -to record the output on the mintors, and have +to record the output on the monitors, and have it detect VT switches, so it can select the appropriate method and display; and I want to -be able to have VT dependent colour adjustments. +be able to have VT-dependent colour adjustments. .SH SEE ALSO .BR fgconsole (1), .BR chvt (1) @@ -12,7 +12,7 @@ static char *argv0; static void -vt(int op, void *arg, const char *opstr) +vt(unsigned long int op, void *arg, const char *opstr) { if (ioctl(STDIN_FILENO, op, arg) == -1) { fprintf(stderr, "%s: ioctl <stdin> %s: %s\n", argv0, opstr, strerror(errno)); |
