Bug 235258

Summary: Selection something with vidfont -K and kbdmap -V does not work
Product: Base System Reporter: scootergrisen
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   

Description scootergrisen 2019-01-28 02:35:59 UTC
If i try to select keyboard or font running "vidfont -K" or "kbdmap -V" it does not work:

    vidfont -K gives:
        vidcontrol: bad magic in font file

    kbdmap -V gives:
        kbdcontrol: illegal definition line

Works when -K and -V options are removed.
Comment 1 scootergrisen 2019-02-07 00:00:39 UTC
It seems "kbdmap -V" tries to set a font file as a keymap.
And that "vidfont -K" tries to set a keymap as a font.

With syscons:

    Run "kbdmap -V" press enter to select the first font in the list:

        kbdcontrol: illegal definition line
        keymap="armscii8-8x8.fnt"

    Run "vidfont -K" press enter to select the first layout in the list:

        Which font size? /usr/share/syscons/keymaps/hy.armscii-8.kbd
        font8=hy.armscii-8.kbd

With vt:

    Run "kbdmap -V" press enter to select the first font in the list:

        kbdcontrol: illegal definition line
        keymap="gallant.fnt"

    Run "vidfont -K" press enter to select the first layout in the list:

        vidcontrol: bad magic in font file