Skip to content
Snippets Groups Projects
Commit 78ff8251 authored by deuce's avatar deuce
Browse files

Some screen tidying.

parent 9a284fca
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ var info; ...@@ -32,7 +32,7 @@ var info;
// Message header display format // Message header display format
var hdr_fmt = "\1b\1h%-4s\1n\1b: \1h\1c%.60s\1>\r\n"; var hdr_fmt = "\1b\1h%-4s\1n\1b: \1h\1c%.60s\1>\r\n";
var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRK-K\1w for help %s\1>\1n"; var stat_fmt = "\1h\1w\0014 FSEditor v" + REVISION + " - Type \1yCTRK-K\1w for help %s\1>\1n";
var subj,to,from; var subj,to,from;
function Line() function Line()
...@@ -207,8 +207,7 @@ function status_line() ...@@ -207,8 +207,7 @@ function status_line()
console.gotoxy(1,console.screen_rows); console.gotoxy(1,console.screen_rows);
printf(stat_fmt,(insert?"Insert Mode ":"Overwrite Mode ")); printf(stat_fmt,(insert?"Insert Mode ":"Overwrite Mode "));
console.attributes=curattr; console.attributes=curattr;
console.write("Current Colour"); console.write(" Current Colour");
console.attributes=16;
console.cleartoeol(); console.cleartoeol();
set_cursor(); set_cursor();
} }
...@@ -1301,8 +1300,7 @@ function quote_mode() ...@@ -1301,8 +1300,7 @@ function quote_mode()
console.gotoxy(1,quote_sep_pos+1); console.gotoxy(1,quote_sep_pos+1);
else else
console.gotoxy(1,edit_top); console.gotoxy(1,edit_top);
console.cleartoeol(); console.write("Quote mode keys:");
console.write("\r\nQuote mode keys:");
console.cleartoeol(); console.cleartoeol();
console.write("\r\n CTRL-B - Move to begining of message CTRL-^ - Move up one line"); console.write("\r\n CTRL-B - Move to begining of message CTRL-^ - Move up one line");
console.cleartoeol(); console.cleartoeol();
...@@ -1323,8 +1321,6 @@ function quote_mode() ...@@ -1323,8 +1321,6 @@ function quote_mode()
console.write('\r\n'); console.write('\r\n');
console.write("Press any key to return to editing.."); console.write("Press any key to return to editing..");
console.cleartoeol(); console.cleartoeol();
console.write('\r\n');
console.cleartoeol();
console.up(); console.up();
console.right(37); console.right(37);
console.getkey(); console.getkey();
...@@ -1544,8 +1540,7 @@ function edit(quote_first) ...@@ -1544,8 +1540,7 @@ function edit(quote_first)
case '\x0b': /* CTRL-K */ case '\x0b': /* CTRL-K */
console.attributes=7; console.attributes=7;
console.gotoxy(1,edit_top); console.gotoxy(1,edit_top);
console.cleartoeol(); console.write("Editing keys:");
console.write("\r\nEditing keys:");
console.cleartoeol(); console.cleartoeol();
console.write("\r\n CTRL-A - Change Colour CTRL-Q - Quick Abort (no save)"); console.write("\r\n CTRL-A - Change Colour CTRL-Q - Quick Abort (no save)");
console.cleartoeol(); console.cleartoeol();
...@@ -1667,8 +1662,12 @@ function edit(quote_first) ...@@ -1667,8 +1662,12 @@ function edit(quote_first)
} }
break; break;
case '\x15': /* CTRL-U (Quick Quote in SyncEdit) */ case '\x15': /* CTRL-U (Quick Quote in SyncEdit) */
if(quote_mode()) if(quote_line.length>0) {
return; if(quote_mode())
return;
}
else
console.beep();
break; break;
case '\x16': /* CTRL-V (Toggle insert mode) */ case '\x16': /* CTRL-V (Toggle insert mode) */
insert=!insert; insert=!insert;
......
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