[jboss-jira] [JBoss JIRA] (WFCORE-3545) Composed keys don't have to be recognized by CLI

Erich Duda (JIRA) issues at jboss.org
Thu Feb 1 05:42:01 EST 2018


     [ https://issues.jboss.org/browse/WFCORE-3545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erich Duda closed WFCORE-3545.
------------------------------
    Resolution: Done


> Composed keys don't have to be recognized by CLI
> ------------------------------------------------
>
>                 Key: WFCORE-3545
>                 URL: https://issues.jboss.org/browse/WFCORE-3545
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 4.0.0.Alpha6
>            Reporter: Erich Duda
>            Assignee: Jean-Francois Denise
>
> Some keys like key down are composed from multiple characters. Normally when the key down is pushed, 3 characters are written into stdin. These 3 characters are read by InputStream::read operation at once and then decoded to the Key.DOWN constant.
> However there is no guarantee that InputStream::read operation returns all the 3 characters at once. It can return only first character and then remaining two. This actually happens in one test on Solaris and HPUX, where stdin is emulated by PipedInputStream.
> If the aforementioned situation happens, pushing of key down is decoded as pushing of two maybe three keys - ESC and some other key(s).
> The issue has low priority, because this behavior wasn't observed in real terminal with real input. It affects only testing.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list