Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#16 Support "modifyOtherKeys" mode

closed
nobody
None
5
2012-08-21
2012-06-15
Thomas Wolff
No

This mode of xterm and mintty supports enhanced application control over modified keys (not function keys).

Control sequences to terminal:
ESC[>4;2m enable "modifyOtherKeys" mode
ESC[>4m reset "modifyOtherKeys" mode
(optional: ESC[>4;0m disable "modifyOtherKeys" mode)

Control sequences sent from terminal if a "normal" (non-function) key is combined with modifiers:
ESC[<unicode>;<mod>u
where
<unicode> is the decimal Unicode value (considering Shift state)
<mod> is the usual modifier code (5=ctrl, 6=ctrl-shift, 7=ctrl-alt, 8=ctrl-alt-shift)

Encoding shift is optional (xterm does it, mintty does not).

Examples:
Control-, ESC[44;5u
Alt-Control-1 ESC[49;7u
Control-a ESC[97;5u (optional, ^A would be fine here)
Control-Shift-A ESC[65;6u

A use case is input support for accented characters as provided by the Unicode editor mined:
Control-, c will enter ç etc.
This would be good to support especially in a dedicated multi-lingual terminal.

Discussion

<< < 1 2 (Page 2 of 2)
  • Araki Ken
    Araki Ken
    2012-08-21

    • status: open --> closed
     
<< < 1 2 (Page 2 of 2)