Marcin Cieslak posted a patch on freebsd-current@ to modify vidcontrol(1) to allow the user to restore the default font. The proposed usage is to change the "-f" flag to set the default font if no argument is specified:
vidcontrol -f < /dev/ttyv0
Differential D971
vt(4): Allow to restore default font dumbbell on Oct 20 2014, 3:45 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions I tested it and it works. I'm more interested in the addition of the PIO_VDFTFONT ioctl: can we add new ioctls freely? Or is there some kind of regulation for new console ioctls? I don't want this new entry to create incompatibilities. Comment Actions There is several ways:
:-D In that case you are adding new one, which have unique id. so old code will work. Maybe pass zeroed struct with PIO_VFONT? Thanks! Comment Actions I understand that, but what I feared is that those ioctls might be standardized among several operating systems. But now that I look more closely, they are specific to vt(4), so there's no worry to have here. Sorry for the noise :-)
I'll commit the original change, to not abuse PIO_VFONT.
Comment Actions I agree and had the same trouble. I even suggest PIO_VFONT_DEFAULT :-)
Ok, it'll be fixed in the commit. |