From 831d3116ba9d4f7ce9eb8f77517ffed1b46ccaa9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 12:55:41 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 4 ++-- config.mk | 4 ++-- vtchs.1 | 4 ++-- vtchs.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README b/README index 0cf47a9..89265f7 100644 --- a/README +++ b/README @@ -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) diff --git a/config.mk b/config.mk index aa81003..bc78e3e 100644 --- a/config.mk +++ b/config.mk @@ -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 diff --git a/vtchs.1 b/vtchs.1 index 65fd571..29d9f01 100644 --- a/vtchs.1 +++ b/vtchs.1 @@ -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) diff --git a/vtchs.c b/vtchs.c index 9bb3673..ef24050 100644 --- a/vtchs.c +++ b/vtchs.c @@ -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 %s: %s\n", argv0, opstr, strerror(errno)); -- cgit v1.2.3-70-g09d2