mirror of https://github.com/adamdruppe/arsd.git
weird home termcap stuff
This commit is contained in:
parent
f29748c1a2
commit
7787e9ceaf
|
@ -1819,6 +1819,7 @@ struct RealTimeConsoleInput {
|
||||||
case "K2":
|
case "K2":
|
||||||
return keyPressAndRelease(NonCharacterKeyEvent.Key.PageUp);
|
return keyPressAndRelease(NonCharacterKeyEvent.Key.PageUp);
|
||||||
|
|
||||||
|
case "ho": // this might not be a key but my thing sometimes returns it... weird...
|
||||||
case "kh":
|
case "kh":
|
||||||
case "K1":
|
case "K1":
|
||||||
return keyPressAndRelease(NonCharacterKeyEvent.Key.Home);
|
return keyPressAndRelease(NonCharacterKeyEvent.Key.Home);
|
||||||
|
@ -1935,6 +1936,7 @@ struct RealTimeConsoleInput {
|
||||||
// look it up in the termcap key database
|
// look it up in the termcap key database
|
||||||
auto cap = terminal.findSequenceInTermcap(sequence);
|
auto cap = terminal.findSequenceInTermcap(sequence);
|
||||||
if(cap !is null) {
|
if(cap !is null) {
|
||||||
|
import std.stdio; writeln(cap);
|
||||||
return translateTermcapName(cap);
|
return translateTermcapName(cap);
|
||||||
} else {
|
} else {
|
||||||
if(terminal.terminalInFamily("xterm")) {
|
if(terminal.terminalInFamily("xterm")) {
|
||||||
|
|
Loading…
Reference in New Issue