From 524e64d6262ddff76c9781135076d3c69cdafddf Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 12 Apr 2006 23:31:40 +0000 Subject: [PATCH] Use ANSI delete line to delete lines. Turn *off* ANSI Music for SyncTERM at startup... this overrides the users setting :-( CTRL-Y Will no longer work without a working ANSI terminal that supports delete line as CSI M --- exec/fseditor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index faed17b518..f76e4927df 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -1263,8 +1263,13 @@ function edit() if(xpos>line[ypos].text.length) xpos=line[ypos].text.length; var i; - for(i=ypos; i<=line.length; i++) + console.write("\033[M"); /* Delete Line */ + /* Redraw bottom line */ + draw_line(topline+lines_on_screen-1); + /* Old used to redraw everything after current + for(i=ypos; i<topline+lines_on_screen; i++) draw_line(i); + */ set_cursor(); break; break; @@ -1375,6 +1380,8 @@ if(f.open("r",false)) { line.push(new Line()); } file=''; /* Free up the memory */ +/* Enable delete line in SyncTERM (Disabling ANSI Music in the process) */ +console.write("\033[=1M"); edit(); console.ctrlkey_passthru=oldpass; bbs.sys_status=old_status; -- GitLab