Bug 218741 - vt: actions fkeyN starting from fkey13 don't generate any code
Summary: vt: actions fkeyN starting from fkey13 don't generate any code
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: vt
Depends on:
Blocks:
 
Reported: 2017-04-18 20:12 UTC by vvv
Modified: 2019-09-20 11:06 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Hello,
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:

https://svnweb.freebsd.org/base/head/sys/dev/vt/vt_core.c?annotate=338324#l892

the key is then passed to teken/teken.c code that also handles only up to F12:
https://svnweb.freebsd.org/base/head/sys/teken/teken.c?annotate=333683#l689

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.