mabe02/lanterna

ALT modifier not evaluated on TERM=linux

francescomuia opened this issue · 2 comments

In the unemulated terminal, TERM=linux, the modifier ALT or SHIFT is not recognized. This prevent to use scrolling.
I entered a few lines of logging and got the following output.

Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: currentMatching [^[]
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: matching Matching{partialMatch=true, fullMatch=KeyStroke{keytype=Escape}}
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: currentMatching [^[, []
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: matching Matching{partialMatch=true, fullMatch=KeyStroke{keytype=Character, character='[', modifiers=[alt]}}
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: currentMatching [^[, [, B]
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: matching Matching{partialMatch=false, fullMatch=KeyStroke{keytype=ArrowDown}}
Oct 05, 2021 8:58:21 AM com.googlecode.lanterna.input.InputDecoder getNextCharacter
INFO: AFTER WHILE KeyStroke{keytype=ArrowDown}

avl42 commented

Yeah, pretty much what @avl42 says :)