Deutsch English Français Italiano |
<yd1q1ck1pt.fsf@UBEblock.psr.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Winston <wbe@UBEBLOCK.psr.com.invalid> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Setting the TTY VT font globally Date: Sat, 21 Sep 2024 19:48:30 -0400 Organization: A noiseless patient Spider Lines: 30 Message-ID: <yd1q1ck1pt.fsf@UBEblock.psr.com> References: <vcn69v$1u780$1@paganini.bofh.team> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 22 Sep 2024 01:48:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="b78cc61d14e7776eb9086c2a19c6b909"; logging-data="1875767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ryp+nzVsxUpi+ZjRfgWYL" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:TqVwV8QKAYIxPlovpyx4jhn3vLA= sha1:Kd2SlnDBvFNA5Wb0iRQ4tiZwbGA= Mail-Copies-To: never Bytes: 2003 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