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
Unknown Object (File)
Wed, Mar 5, 6:22 PM
Unknown Object (File)
Nov 22 2024, 3:04 PM
Unknown Object (File)
Oct 2 2024, 2:26 PM
Unknown Object (File)
Sep 17 2024, 5:44 AM
Unknown Object (File)
Aug 31 2024, 6:02 AM
Unknown Object (File)
Aug 16 2024, 12:07 PM
Unknown Object (File)
Aug 16 2024, 12:07 PM
Unknown Object (File)
Aug 16 2024, 11:02 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