Sujet : Re: Setting the TTY VT font globally
De : wbe (at) *nospam* UBEBLOCK.psr.com.invalid (Winston)
Groupes : comp.unix.bsd.freebsd.miscDate : 22. Sep 2024, 00:48:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <yd1q1ck1pt.fsf@UBEblock.psr.com>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13)
Anton Shepelev <
anton.txt@gmail.moc> writes:
FreeBSD 14.1 RELEASE here.
>
The virtual TTYs (Ctrl+Alt+F1..F8) are provided through VT(4),
the man page to which mentions only one tool for setting
up the font -- vidcontrol(1), which affects only the TTY on which
the program is invoked.
Actually, I think it operates on stdin, which you can specify.
How, then, can I set up the font I need (e.g. terminus-b32.fnt),
a) as early in the boot process as possble, and
b) for all TTYs, 1 to 8 ?
The following, done as root, perhaps in /etc/rc.local, might work:
vidcontrol -f terminus-b32 </dev/ttyv1
vidcontrol -f terminus-b32 </dev/ttyv2
vidcontrol -f terminus-b32 </dev/ttyv3
vidcontrol -f terminus-b32 </dev/ttyv4
vidcontrol -f terminus-b32 </dev/ttyv5
vidcontrol -f terminus-b32 </dev/ttyv6
vidcontrol -f terminus-b32 </dev/ttyv7
vidcontrol -f terminus-b32 </dev/ttyv8
(or use a shell loop).
There may well be a more elegant solution, such as some kern.vt.*
variable one can set, but I don't know it.
-WBE