[systemd-devel] [PATCH] vconsole: set font on tty16..tty63 as well

Jan Engelhardt jengelh at inai.de
Tue Feb 24 13:26:13 PST 2015


On Tuesday 2015-02-24 21:34, Jan Engelhardt wrote:
>+        /* get active tty - ignore v_state bitmask */
>         r = ioctl(fd, VT_GETSTATE, &vcs);
>         if (r < 0)
>                 return;
> 
>-        for (i = 1; i <= 15; i++) {
>+        for (i = 1; i < 64; ++i) {
>                 char vcname[16];
>                 _cleanup_close_ int vcfd = -1;
>                 struct console_font_op cfo = {};
> 
>-                if (i == vcs.v_active)
>-                        continue;

Er, what a nonsense I made.
Anyhow, we do not seem to be looking at v_state at all to begin with -
the only thing that would seem to limit us to 16 bits.
Hence it would not seem much sense to arbitrarily limit systemd to
support 16 if it takes nothing extra to support all 63 of them.


More information about the systemd-devel mailing list