Skip to content
Snippets Groups Projects
Commit 1563b22d authored by deuce's avatar deuce
Browse files

Add support fot the VT-220 sequeces used by XP telnet.exe for editing keys.

parent a812f922
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,18 @@ char sbbs_t::handle_ctrlkey(char ch, long mode)
case 'F': /* Xterm: cursor preceding line */
case 'K': /* ANSI: clear-to-end-of-line */
return(CTRL_E); /* ctrl-e (end line) */
case '~': /* VT-220 (XP telnet.exe) */
switch(atoi(str)) {
case 1:
return(CTRL_B);
case 2:
return(CTRL_V);
case 3:
return(DEL);
case 4:
return(CTRL_E);
}
break;
}
ungetkey('[');
for(j=0;j<i;j++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment