Skip to content
Snippets Groups Projects
Commit 2b8acf99 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_area_choosers_horizontal_single_line_ascii_update' into 'master'

DD area choosers: Replaced hardcoded high-ascii single line character with a variable defining it via hex code (for the help screens)

See merge request !269
parents 2ad81713 11b4ce2c
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!269DD area choosers: Replaced hardcoded high-ascii single line character with a variable defining it via hex code (for the help screens)
...@@ -113,6 +113,9 @@ if (typeof(KEY_PAGEDN) === "string") ...@@ -113,6 +113,9 @@ if (typeof(KEY_PAGEDN) === "string")
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
var DOWN_ARROW = ascii(25); var DOWN_ARROW = ascii(25);
// Characters for display
var HORIZONTAL_SINGLE = "\xC4";
// Misc. defines // Misc. defines
var ERROR_WAIT_MS = 1500; var ERROR_WAIT_MS = 1500;
var SEARCH_TIMEOUT_MS = 10000; var SEARCH_TIMEOUT_MS = 10000;
...@@ -1808,7 +1811,11 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -1808,7 +1811,11 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen)
else else
console.print("\x01n"); console.print("\x01n");
console.center("\x01c\x01hDigital Distortion File Area Chooser"); console.center("\x01c\x01hDigital Distortion File Area Chooser");
console.center("\x01k"); var lineStr = "";
for (var i = 0; i < 36; ++i)
lineStr += HORIZONTAL_SINGLE;
console.attributes = "HK";
console.center(lineStr);
console.center("\x01n\x01cVersion \x01g" + DD_FILE_AREA_CHOOSER_VERSION + console.center("\x01n\x01cVersion \x01g" + DD_FILE_AREA_CHOOSER_VERSION +
" \x01w\x01h(\x01b" + DD_FILE_AREA_CHOOSER_VER_DATE + "\x01w)"); " \x01w\x01h(\x01b" + DD_FILE_AREA_CHOOSER_VER_DATE + "\x01w)");
console.crlf(); console.crlf();
...@@ -1824,7 +1831,9 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -1824,7 +1831,9 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen)
console.crlf(); console.crlf();
console.print("\x01n\x01cThe lightbar interface also allows up & down navigation through the lists:"); console.print("\x01n\x01cThe lightbar interface also allows up & down navigation through the lists:");
console.crlf(); console.crlf();
console.print("\x01k\x01h"); console.attributes = "HK";
for (var i = 0; i < 74; ++i)
console.print(HORIZONTAL_SINGLE);
console.crlf(); console.crlf();
console.print("\x01n\x01c\x01hUp arrow\x01n\x01c: Move the cursor up one line"); console.print("\x01n\x01c\x01hUp arrow\x01n\x01c: Move the cursor up one line");
console.crlf(); console.crlf();
...@@ -1849,7 +1858,9 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -1849,7 +1858,9 @@ function DDFileAreaChooser_showHelpScreen(pLightbar, pClearScreen)
console.crlf(); console.crlf();
console.print("Additional keyboard commands:"); console.print("Additional keyboard commands:");
console.crlf(); console.crlf();
console.print("\x01k\x01h"); for (var i = 0; i < 29; ++i)
console.print(HORIZONTAL_SINGLE);
console.attributes = "HK";
console.crlf(); console.crlf();
console.print("\x01n\x01c\x01h?\x01n\x01c: Show this help screen"); console.print("\x01n\x01c\x01h?\x01n\x01c: Show this help screen");
console.crlf(); console.crlf();
......
...@@ -119,6 +119,9 @@ if (typeof(KEY_PAGEDN) === "string") ...@@ -119,6 +119,9 @@ if (typeof(KEY_PAGEDN) === "string")
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
var DOWN_ARROW = ascii(25); var DOWN_ARROW = ascii(25);
// Characters for display
var HORIZONTAL_SINGLE = "\xC4";
// Misc. defines // Misc. defines
var ERROR_WAIT_MS = 1500; var ERROR_WAIT_MS = 1500;
var SEARCH_TIMEOUT_MS = 10000; var SEARCH_TIMEOUT_MS = 10000;
...@@ -2184,7 +2187,11 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -2184,7 +2187,11 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen)
else else
console.print("\1n"); console.print("\1n");
console.center("\1c\1hDigital Distortion Message Area Chooser"); console.center("\1c\1hDigital Distortion Message Area Chooser");
console.center("\1k"); var lineStr = "";
for (var i = 0; i < 39; ++i)
lineStr += HORIZONTAL_SINGLE;
console.attributes = "HK";
console.center(lineStr);
console.center("\1n\1cVersion \1g" + DD_MSG_AREA_CHOOSER_VERSION + console.center("\1n\1cVersion \1g" + DD_MSG_AREA_CHOOSER_VERSION +
" \1w\1h(\1b" + DD_MSG_AREA_CHOOSER_VER_DATE + "\1w)"); " \1w\1h(\1b" + DD_MSG_AREA_CHOOSER_VER_DATE + "\1w)");
console.crlf(); console.crlf();
...@@ -2200,7 +2207,9 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -2200,7 +2207,9 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen)
console.crlf(); console.crlf();
console.print("\1n\1cThe lightbar interface also allows up & down navigation through the lists:"); console.print("\1n\1cThe lightbar interface also allows up & down navigation through the lists:");
console.crlf(); console.crlf();
console.print("\1k\1h"); console.attributes = "HK";
for (var i = 0; i < 74; ++i)
console.print(HORIZONTAL_SINGLE);
console.crlf(); console.crlf();
console.print("\1n\1c\1hUp arrow\1n\1c: Move the cursor up one line"); console.print("\1n\1c\1hUp arrow\1n\1c: Move the cursor up one line");
console.crlf(); console.crlf();
...@@ -2225,7 +2234,9 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen) ...@@ -2225,7 +2234,9 @@ function DDMsgAreaChooser_showHelpScreen(pLightbar, pClearScreen)
console.crlf(); console.crlf();
console.print("Additional keyboard commands:"); console.print("Additional keyboard commands:");
console.crlf(); console.crlf();
console.print("\1k\1h"); console.attributes = "HK";
for (var i = 0; i < 29; ++i)
console.print(HORIZONTAL_SINGLE);
console.crlf(); console.crlf();
console.print("\1n\1c\1h?\1n\1c: Show this help screen"); console.print("\1n\1c\1h?\1n\1c: Show this help screen");
console.crlf(); console.crlf();
......
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