diff --git a/exec/load/frame.js b/exec/load/frame.js index 2f74d4348c7910ca9d76a70fe114b8045cbc848d..5d055fcf58aef2898512a595d2e28b844323e35a 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -322,7 +322,8 @@ function Frame(x,y,width,height,attr,parent) { px += position.offset.x; py += position.offset.y; } - if(!properties.data[py] || !properties.data[py][px]) + //if(!properties.data[py] || !properties.data[py][px]) + if(!properties.data[py]) throw("Frame.setData() - invalid coordinates: " + px + "," + py); if(properties.data[py][px].ch == ch && properties.data[py][px].attr == attr) return; @@ -936,9 +937,18 @@ function Frame(x,y,width,height,attr,parent) { break; case '\7': /* Beep */ break; + case '\b': + if(pos.x > 0) { + pos.x--; + putChar.call(this," ",curattr); + } + break; case '\r': pos.x=0; break; + case '\t': + pos.x += 4; + break; case '\n': pos.y++; if(settings.lf_strict && pos.y >= this.height) {