weird home termcap stuff

This commit is contained in:
Adam D. Ruppe 2015-10-20 11:34:33 -04:00
parent f29748c1a2
commit 7787e9ceaf
1 changed files with 2 additions and 0 deletions

View File

@ -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")) {