Page MenuHomeFreeBSD

support for function keys for vt(4)
Needs ReviewPublic

Authored by arshankhanifar_gmail.com on Apr 2 2018, 6:26 PM.
Tags
None
Referenced Files
F86613087: D14936.diff
Sun, Jun 23, 1:24 AM
Unknown Object (File)
Apr 30 2024, 9:06 AM
Unknown Object (File)
Apr 29 2024, 9:54 PM
Unknown Object (File)
Apr 21 2024, 3:13 AM
Unknown Object (File)
Mar 7 2024, 11:31 PM
Unknown Object (File)
Jan 18 2024, 1:14 PM
Unknown Object (File)
Jan 5 2024, 5:38 PM
Unknown Object (File)
Dec 20 2023, 6:10 AM
Subscribers

Details

Reviewers
emaste
Summary

This is a proposed fix to this issue:

According to kbdcontrol(1)'s documentation, kbdcontrol(1) can be used to set function key strings for vt(4) and sc(4) console drivers. However, it seems that this hasn't been supported by the vt(4) driver, as function keys result in a call to terminal_input_special which gets teken's defined sequence to send for the function keys.

In this patch, vt(4) will behave the same as before if no function key is set using kbdcontrol(1), and it will send the function key's string if it has been set.

Test Plan
  1. log into any of the ttyv(1) to ttyv(8) terminals.
  2. kbdcontrol -f 1 'hi'
  3. press F1 key
  4. keyboard must have sent the hi text.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped