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
dumbbell on Oct 20 2014, 3:45 PM.Authored by
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.
There is several ways:
In that case you are adding new one, which have unique id. so old code will work.
Maybe pass zeroed struct with PIO_VFONT?
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.