From 34688316b37381cc37dbb9f94555b5ff67e76364 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 13 Mar 2010 09:19:16 +0000 Subject: [PATCH] Move "Current Colour" indicator one to the left, set a stat_attr to the attribute of the status line and clear to end of line so the status line appears to extend beyond line 80 (even though it doesn't). --- exec/fseditor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index 291ccdbe36..598466bd74 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -35,7 +35,8 @@ var tab_width=8; // Message header display format var hdr_fmt = "\1b\1h%-4s\1n\1b: \1h\1c%.60s\1>\r\n"; -var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRL-K\1w for help %s\1>\1n"; +var stat_attr = 0x1f; +var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRL-K\1w for help %s\1>\1n"; var subj,to,from; function Line() @@ -210,7 +211,8 @@ function status_line() console.gotoxy(1,console.screen_rows); printf(stat_fmt,(insert?"Insert Mode ":"Overwrite Mode ")); console.attributes=curattr; - console.write(" Current Colour"); + console.write(" Current Colour "); + console.attributes=stat_attr; console.cleartoeol(); set_cursor(); } -- GitLab