Skip to content
Snippets Groups Projects
Commit 177694e6 authored by deuce's avatar deuce
Browse files

Time from hack to new feature to make the hack unnecessary: 18 hours.

Time to use the new feature and remove the hack: 14 years, 2 months.
parent 91f781f8
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ Lightbar.prototype.getval = function(current,key)
if(key) loop=false;
var ret=undefined;
var last_cur;
var ansi = '';
if(!this.nodraw)
this.draw();
......@@ -146,18 +147,13 @@ Lightbar.prototype.getval = function(current,key)
last_cur=this.current;
/* Get input */
/*
* ToDo: K_GETSTR is to ensure that the users SPIN mode isn't used
* This is a hack which triples the time that an ESC takes to be
* procesed.
*/
if(key==undefined || key=='' || key==null) {
if(key==undefined || key=='' || key==null || ansi.length > 0) {
if(this.callback != undefined)
this.callback();
if(this.timeout>1)
key=console.inkey(K_UPPER|(user.settings&USER_SPIN?K_GETSTR:0),this.timeout);
key=console.inkey(K_UPPER,this.timeout);
else
key=console.getkey(K_UPPER|(user.settings&USER_SPIN?K_GETSTR:0));
key=console.getkey(K_UPPER|K_NOSPIN);
}
else {
......
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