From b59cfdacf6627caceead4a315b9c4c67defd8c6f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 11 Jul 2019 23:05:40 +0000 Subject: [PATCH] Set the attribute to LIGHTGRAY before clearing the screen. This helps with the "darkgray" background issue when using xterm. Apparently if the foreground attribute has the high intensity attribute set and a CRLF or a clear-screen sequence is sent, the new (blank) lines (normally, black) will have the high intensity *background* attribute set (or it just looks that way). I don't understand why... yet. --- exec/logon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/logon.js b/exec/logon.js index 3e8d965399..a4c480bf9a 100644 --- a/exec/logon.js +++ b/exec/logon.js @@ -133,7 +133,7 @@ var random_list = directory(system.text_dir + "menu/random*.*"); if(random_list.length) bbs.menu(file_getname(random_list[random(random_list.length)]).slice(0,-4)); -console.clear(); +console.clear(LIGHTGRAY); bbs.user_event(EVENT_LOGON); if(user.security.level==99 /* Sysop logging on */ @@ -228,7 +228,7 @@ if(user.settings&USER_HTML) { else { // Last few callers console.aborted=false; - console.clear(); + console.clear(LIGHTGRAY); logonlst=system.data_dir + "logon.lst" if(file_size(logonlst)<1) printf("\1n\1g\1hYou are the first caller of the day!\r\n"); -- GitLab