legionus / kbd

Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
https://kbd-project.org
Other
85 stars 40 forks source link

[bug] 'setfont' sometimes sets font for all ttys instead of the current one #86

Closed Volian0 closed 2 years ago

Volian0 commented 2 years ago

how to reproduce:

  1. use setfont command to change font
  2. start X11
  3. switch to another tty
  4. the another tty also has the font set, instead of using the default one
legionus commented 2 years ago

This is not a bug in setfont. This is how the Linux kernel works. The setfont utility selects the current terminal and changes the font on it via ioctl.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/video/fbdev/core/fbcon.c#n2504