Bug 218741

Summary: vt: actions fkeyN starting from fkey13 don't generate any code
Product: Base System Reporter: vvv <work+freebsd>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: ed, emaste, gonzo
Priority: --- Keywords: vt
Version: 12.0-RELEASE   
Hardware: amd64   
OS: Any   

Description vvv 2017-04-18 20:12:34 UTC
Keyboard actions fkeyN starting from fkey13 (Shift F1-F12, Ctrl F1-F12, etc) don't generate any code. It affects vt(4) console under 11.0-RELEASE with kbdmux or atkbd driver. It doesn't affect sc(4). Also it doesn't affect vt(4)/10.3-RELEASE and older.

How to reproduce:
1. Set system console to vt(4) mode if it's in sc(4) mode.
2. Execute 'cat' command.
3. Press F1-F12 - works as expected.
4. Press Shift F1-F12 - doesn't work.

It's reproducible in virtual environment too (at least with qemu).
Comment 1 vvv 2018-11-13 08:46:26 UTC
Is there any update?
Comment 2 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2018-11-15 21:21:19 UTC
(In reply to vvv from comment #1)

Looks like vt emulation is limited to F1..F12 by design:


the key is then passed to teken/teken.c code that also handles only up to F12:

Extending that list to more F keys shouldn't be a problem from implementation point of view but i am not sure whether it's going to violate any standards. Adding Ed to Cc so may be he can provide some input.