Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #77: Typo in the code


comp / comp.unix.bsd.freebsd.misc / Re: Setting the TTY VT font globally

SubjectAuthor
* Setting the TTY VT font globallyAnton Shepelev
+* Re: Setting the TTY VT font globallyWinston
|`- Re: Setting the TTY VT font globallyAnton Shepelev
+* Re: Setting the TTY VT font globallyDetlef Sax
|`- Re: Setting the TTY VT font globallyAnton Shepelev
`* Re: Setting the TTY VT font globallyJens Schweikhardt
 `- Re: Setting the TTY VT font globallyAnton Shepelev

1
Subject: Setting the TTY VT font globally
From: Anton Shepelev
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: To protect and to server
Date: Sat, 21 Sep 2024 19:20 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: anton.txt@gmail.moc (Anton Shepelev)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Setting the TTY VT font globally
Date: Sat, 21 Sep 2024 19:20:31 -0000 (UTC)
Organization: To protect and to server
Sender: 9dIQLXBM7WM9KzA+yjdR4A
Message-ID: <vcn69v$1u780$1@paganini.bofh.team>
Injection-Date: Sat, 21 Sep 2024 19:20:31 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2039040"; posting-host="WJi3VZ6YDT03B/ZmmBPfhA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Hello, all.

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.

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 ?

Subject: Re: Setting the TTY VT font globally
From: Winston
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Sat, 21 Sep 2024 23:48 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wbe@UBEBLOCK.psr.com.invalid (Winston)
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
View all headers

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

Subject: Re: Setting the TTY VT font globally
From: Detlef Sax
Newsgroups: comp.unix.bsd.freebsd.misc
Date: Sun, 22 Sep 2024 07:51 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: sax@noart.de (Detlef Sax)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Setting the TTY VT font globally
Date: 22 Sep 2024 07:51:17 GMT
Lines: 30
Message-ID: <lla0jlF43aqU1@mid.individual.net>
References: <vcn69v$1u780$1@paganini.bofh.team>
X-Trace: individual.net gDYw8+pGRrt/1dgK3T5FxwopqM1Cg8tZ3DGQ9KQC+rXMHp7qzu
Cancel-Lock: sha1:cng3UMyKEnnd4vFjgRQngY5hC3I= sha256:NOtB6pM3SlXg425Mp1bBMx5jrzEOyr5l2ynBLnjkhc4=
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

On Sat, 21 Sep 2024 19:20:31 -0000 (UTC), Anton Shepelev wrote:
>
> Hello, all.
>
> 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.
>
> 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 ?

Simply put following into /etc/rc.config:
fontb32="terminus-b32.fnt"

sysrc fontb32="terminus-b32.fnt"
does the job.

man rc.conf
or
less /etc/defaults/rc.conf
for other useful settings.

Detlef
--
https://www.12schrittefrei.de/
https://www.noart.de/

Subject: Re: Setting the TTY VT font globally
From: Anton Shepelev
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: To protect and to server
Date: Sun, 22 Sep 2024 12:58 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: anton.txt@gmail.moc (Anton Shepelev)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Setting the TTY VT font globally
Date: Sun, 22 Sep 2024 12:58:40 -0000 (UTC)
Organization: To protect and to server
Sender: 9dIQLXBM7WM9KzA+yjdR4A
Message-ID: <vcp4a0$268dn$1@paganini.bofh.team>
References: <vcn69v$1u780$1@paganini.bofh.team> <yd1q1ck1pt.fsf@UBEblock.psr.com>
Injection-Date: Sun, 22 Sep 2024 12:58:40 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2302391"; posting-host="ag14srWLiVMRnqaWmLwGcQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Winston <wbe@ubeblock.psr.com.invalid> wrote:
>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.

Thanks, I didn't realise that: the man page does not say so
explicitly[*], but provides examles with `< /dev/ttyv<n>', which,
however, make no changes, but dump the contents of a terminal to
stdout or an .scr file. How can a redirection of STDIN affect which
TTY takes the new settings? I see it does, but am a loss as to
how... There only one mentinon of standard input in the man page,
and that in the context of the -p option.

* It is my long-standing conviction that documenation shall state
explicitly whatever it has to state, and use examples only
to /illustarte/ directly expressed information. VIDCONTROL(8)
seems to fall short of this.

>> 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).

Indeed, thank you.

>There may well be a more elegant solution, such as some kern.vt.*
>variable one can set, but I don't know it.

VT(4) does not mention a suitable variable.

Subject: Re: Setting the TTY VT font globally
From: Anton Shepelev
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: To protect and to server
Date: Sun, 22 Sep 2024 13:17 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: anton.txt@gmail.moc (Anton Shepelev)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Setting the TTY VT font globally
Date: Sun, 22 Sep 2024 13:17:57 -0000 (UTC)
Organization: To protect and to server
Sender: 9dIQLXBM7WM9KzA+yjdR4A
Message-ID: <vcp5e5$26a2d$1@paganini.bofh.team>
References: <vcn69v$1u780$1@paganini.bofh.team> <lla0jlF43aqU1@mid.individual.net>
Injection-Date: Sun, 22 Sep 2024 13:17:57 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2304077"; posting-host="ag14srWLiVMRnqaWmLwGcQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Detlef Sax <sax@noart.de> wrote:
>On Sat, 21 Sep 2024 19:20:31 -0000 (UTC), Anton Shepelev wrote:
>>
>> 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.
>>
>> 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 ?

>Simply put following into /etc/rc.config:
>fontb32="terminus-b32.fnt"

You mean in /etc/rc.conf? Unfortunately, this line
has no effect, at least no the one I seek. I think
this is an unrecognised variable, not check by any
component.

>sysrc fontb32="terminus-b32.fnt"
>does the job.

Yes, and I wonder why FreeBSD provides a dedicdated
utility for adding lines info rc.conf. Querying those
values is certainly useful, though.

>man rc.conf
>or
>less /etc/defaults/rc.conf
>for other useful settings.

Thank you, but fontb32 is not mentioned in either.
How did you learn about the `fontb32' setting?

Subject: Re: Setting the TTY VT font globally
From: Jens Schweikhardt
Newsgroups: comp.unix.bsd.freebsd.misc
Date: Mon, 23 Sep 2024 18:56 UTC
References: 1
From: usenet@schweikhardt.net (Jens Schweikhardt)
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@schweikhardt.net (Jens Schweikhardt)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Setting the TTY VT font globally
Date: 23 Sep 2024 18:56:35 GMT
Lines: 29
Sender: Jens Schweikhardt <schweikh@pinback.local>
Message-ID: <lldrv3Fm0feU1@mid.individual.net>
References: <vcn69v$1u780$1@paganini.bofh.team>
X-Trace: individual.net LpxiNOAHNHOtAa6VOwCQGQykHkNGlGVLei6e/MovTez4xglfwx
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:g62USNP68cXVrgv+4TYV1SpyEq4= sha256:KdurxIsN100YUqExIcATfoPaM+0oHLZIQi/mm/VfWmg=
User-Agent: tin/2.6.3-20231224 ("Banff") (FreeBSD/14.0-CURRENT (amd64))
View all headers

Anton Shepelev <anton.txt@gmail.moc> wrote
in <vcn69v$1u780$1@paganini.bofh.team>:
#
# Hello, all.
#
# 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.
#
# 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 ?

I have in /etc/rc.conf this for the gallant font:

allscreens_flags="-f gallant"

That's the Sun Microsystems console font, simply unsurpassed,
for those who remember. Sigh...

Regards,

Jens
--
Jens Schweikhardt https://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

Subject: Re: Setting the TTY VT font globally
From: Anton Shepelev
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: To protect and to server
Date: Tue, 24 Sep 2024 13:38 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: anton.txt@gmail.moc (Anton Shepelev)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Setting the TTY VT font globally
Date: Tue, 24 Sep 2024 13:38:52 -0000 (UTC)
Organization: To protect and to server
Sender: 9dIQLXBM7WM9KzA+yjdR4A
Message-ID: <vcufdb$2om37$1@paganini.bofh.team>
References: <vcn69v$1u780$1@paganini.bofh.team> <lldrv3Fm0feU1@mid.individual.net>
Injection-Date: Tue, 24 Sep 2024 13:38:52 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="2906215"; posting-host="auB55DPHDjPEIUuMXlkh1Q.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: tin/2.6.3-20231224 ("Banff") (FreeBSD/14.1-RELEASE (amd64))
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

Jens Schweikhardt <usenet@schweikhardt.net> wrote:
> Anton Shepelev <anton.txt@gmail.moc> wrote
> in <vcn69v$1u780$1@paganini.bofh.team>:
> #
> # Hello, all.
> #
> # 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.
> #
> # 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 ?
>
> I have in /etc/rc.conf this for the gallant font:
>
> allscreens_flags="-f gallant"

Than you, Jens.

> That's the Sun Microsystems console font, simply unsurpassed,
> for those who remember. Sigh...

Yes, it is beautiful. It is hard to make a low-res raster font
avec serif and so well-shaped. And this font is not in the old-shool
font-pack:

<https://int10h.org/oldschool-pc-fonts/>
(but the font index does not show all the fonts...)

How can one setup the TTYs with a high-DPI monitor? In Windows, I
simply set the size for my raster fonts to a multiple of the native
size, to have pixel doubling, tripling, or quadrupling. That way,
the fonts are rendered perfecly sharp. Is anything similar possible
in FreeBSD?

P.S. Why did you set the `#' character to prepend quoted lines?

1

rocksolid light 0.9.8
clearnet tor