From 549d16317c69cb6a9e06d7d8d88f48d4315311fc Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 29 Jul 2007 02:58:40 +0000 Subject: [PATCH] Disable USER_HTML in user.settings if the shell does not have HTML in it. This prevents flickering HTML menus that disappear when the ANSI prompt is displayed. --- exec/logon.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/exec/logon.js b/exec/logon.js index c7724f5f7a..9c5b89c297 100644 --- a/exec/logon.js +++ b/exec/logon.js @@ -87,6 +87,18 @@ if(random_list.length) console.clear(); bbs.user_event(EVENT_LOGON); +/* + * Disable HTML mode if not using an HTML shell + * If you don't do this, you'll get HTML menus that flash on + * screen then disappear when the ANSI prompt is displayed + * + * It's still in the autoterm variable, so you CAN switch + */ +if(user.settings&USER_HTML) { + if(user.command_shell.search(/html/i)==-1) + user.settings&=~USER_HTML; +} + if(user.settings&USER_HTML) { var buf="\2\2<html><head><title>Welcome status screen</title></head><body bgcolor=\"black\" text=\"#a8a8a8\">"; -- GitLab