RFR 8147984: WindowsTerminal should support function keys
Jan Lahoda
jan.lahoda at oracle.com
Wed May 4 13:29:16 UTC 2016
On 3.5.2016 14:58, Florent Guillaume wrote:
> Hi,
>
> http://www.x.org/docs/xterm/ctlseqs.pdf is probably a more canonical reference.
It seems that this version of the document unfortunately does not
specify the codes the terminal sends for the function keys?
Jan
>
> Florent
>
>
>
> On Mon, May 2, 2016 at 8:31 PM, Stuart Marks <stuart.marks at oracle.com> wrote:
>> Hi Jan,
>>
>> Thanks for the update. Including the link is fine, but I'm a bit suspicious
>> of the durability of that website -- it appears to be the personal website
>> of the current maintainer. Who knows if it'll be around in a couple years.
>>
>> I'd suggest including in the comment the official title of the document,
>> "XTerm Control Sequences" along with a mention of the authors (Moy, Gildea,
>> Dickey) so that if the link were to go bad, it would be possible to do a web
>> search to find some version of the document.
>>
>> No need for an updated webrev.
>>
>> Thanks,
>>
>> s'marks
>>
>>
>> On 5/1/16 11:55 PM, Jan Lahoda wrote:
>>>
>>> Hi Stuart,
>>>
>>> Thanks for the comments and the link!
>>>
>>> A webrev which includes the link is here:
>>> http://cr.openjdk.java.net/~jlahoda/8147984/webrev.01/
>>>
>>> Delta webrev to the last iteration is here:
>>> http://cr.openjdk.java.net/~jlahoda/8147984/webrev.01/delta/webrev
>>>
>>> Thanks,
>>> Jan
>>>
>>> On 29.4.2016 23:49, Stuart Marks wrote:
>>>>
>>>> Hi Jan,
>>>>
>>>> I finally got a chance to take a look at this. The change looks fine.
>>>>
>>>> It would be nice to have a reference to where the escape sequences are
>>>> documented. There are links to the Windows VK_ codes there, which is
>>>> great. But there's no reference for the escape sequences that each
>>>> keypress is mapped to, e.g. F4 is "ESC O S", and F5 is "ESC [ 1 5 ~"
>>>> (and what happened to "ESC [ 1 6 ~"??)
>>>>
>>>> I did some searching, and it seems really hard to find a definitive
>>>> reference. Perhaps the best reference is "XTerm Control Sequences" [1]
>>>> which seems to document xterm pretty thoroughly, which is what everybody
>>>> seems to follow nowadays. It even looks like it's being kept up to date
>>>> (last modified 2016-02-21).
>>>>
>>>> Anyway I'd suggest adding a comment with a reference to this document.
>>>>
>>>> As a cross-check, these sequences match what my Mac's Terminal.app
>>>> emits, at least for unshifted F1-F12. (The Terminal app was probably
>>>> copied from xterm.)
>>>>
>>>> Thanks,
>>>>
>>>> s'marks
>>>>
>>>>
>>>> [1] http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
>>>>
>>>>
>>>> On 1/22/16 3:41 AM, Jan Lahoda wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I'd like to enhance the WindowsTerminal in jdk.internal.le with
>>>>> function keys
>>>>> handling. The intent is so that jshell can bind actions for shortcuts
>>>>> including
>>>>> function keys.
>>>>>
>>>>> The patch for adding the function keys support is here:
>>>>> http://cr.openjdk.java.net/~jlahoda/8147984/webrev.00/
>>>>>
>>>>> An example of a feature that uses/may use this support is here:
>>>>>
>>>>> http://mail.openjdk.java.net/pipermail/kulla-dev/2016-January/001226.html
>>>>>
>>>>> Any comments are welcome!
>>>>>
>>>>> Thanks,
>>>>> Jan
>
>
>
More information about the core-libs-dev
mailing list