Skip to content
Snippets Groups Projects
Commit 4e1b2e66 authored by deuce's avatar deuce
Browse files

getkeye() function for JS shells.

parent 28bb5580
No related branches found
No related tags found
No related merge requests found
// Used for handling the input of /X commands
// $Id$
load("sbbsdefs.js");
function getkeye()
{
var key;
var key2;
while(1) {
key=console.getkey(K_UPPER);
if(key=='/') {
print(key);
key2=console.getkey(K_UPPER);
if(key2=="\b" || key2=="\e") {
print("\b \b");
continue;
}
key=key+key2;
}
break;
}
return(key);
}
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