Minor main frame fixes, turn cursor back on before hangup

This commit is contained in:
Deon George
2022-05-06 09:59:23 +10:00
parent 51de982fbb
commit 874a7ee302
7 changed files with 9 additions and 7 deletions

View File

@@ -62,7 +62,8 @@ function FrameAnsi() {
this.cursorOn=function(x,y) {
ansi.send('ext_mode','set','cursor');
this.gotoxy(x,y);
if (x && y)
this.gotoxy(x,y);
}
// Field backspace, that leaves the field filler char

View File

@@ -291,8 +291,8 @@ MsgAreas.prototype.getArea = function(area) {
var zone = (''+area).substr(1,4);
var echo = (''+area).substr(5,2);
log(LOG_DEBUG,' - zone:'+JSON.stringify(zone));
log(LOG_DEBUG,' - echo:'+JSON.stringify(echo));
log(LOG_DEBUG,' - zone:'+zone);
log(LOG_DEBUG,' - echo:'+echo);
return this.areas.filter(function(x) {
return x.zone_id === zone && x.area_id === echo;