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

Merge branch 'dd_msg_reader_bottom_row_help_line_fix' into 'master'

DDMsgReader: Fix to bottom row help text due to behavior change in Git commit fccf1a57 - Some key codes in the help lines were causing a line break and causing scrolling

See merge request !526
parents a20ba605 4ccdb074
No related branches found
No related tags found
1 merge request!526DDMsgReader: Fix to bottom row help text due to behavior change in Git commit fccf1a5718fdcb9864bcbccf2eb6de7ee50d3dd3 - Some key codes in the help lines were causing a line break and causing scrolling
...@@ -231,10 +231,15 @@ ...@@ -231,10 +231,15 @@
* 2025-02-08 Eric Oulashin Version 1.96L * 2025-02-08 Eric Oulashin Version 1.96L
* After replying to a message, when it shows the status & pauses * After replying to a message, when it shows the status & pauses
* for input, a Q or Ctrl-C will now exit, and not be ignored. * for input, a Q or Ctrl-C will now exit, and not be ignored.
* 2025-05-28 Eric Oulashin Version 1.96M * 2025-03-28 Eric Oulashin Version 1.96M
* When reading messages, only mark it as read if it's to * When reading messages, only mark it as read if it's to
* the current user, including for personal email (i.e., when reading * the current user, including for personal email (i.e., when reading
* sent mail, don't mark messages to others as read). * sent mail, don't mark messages to others as read).
* 2025-04-13 Eric Oulashin Version 1.96N
* Changes (fixes) for the bottom-row key help lines due to
* Synchronet fix related to @-code parsing (Git commit
* fccf1a5718fdcb9864bcbccf2eb6de7ee50d3dd3). Hopefully the
* mouse clicks are still correct.
*/ */
   
"use strict"; "use strict";
...@@ -342,8 +347,8 @@ var hexdump = load('hexdump_lib.js'); ...@@ -342,8 +347,8 @@ var hexdump = load('hexdump_lib.js');
   
   
// Reader version information // Reader version information
var READER_VERSION = "1.96M"; var READER_VERSION = "1.96N";
var READER_DATE = "2025-03-28"; var READER_DATE = "2025-04-13";
   
// Keyboard key codes for displaying on the screen // Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24); var UP_ARROW = ascii(24);
...@@ -1654,7 +1659,8 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs) ...@@ -1654,7 +1659,8 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs)
this.lightbarAreaChooserHelpLine = "\x01n" this.lightbarAreaChooserHelpLine = "\x01n"
+ this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@" + this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@"
+ this.colors.lightbarAreaChooserHelpLineGeneralColor + ", " + this.colors.lightbarAreaChooserHelpLineGeneralColor + ", "
+ this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@" //+ this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@"
+ this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`\\n@"
+ this.colors.lightbarAreaChooserHelpLineGeneralColor + ", " + this.colors.lightbarAreaChooserHelpLineGeneralColor + ", "
+ this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@" + this.colors.lightbarAreaChooserHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@"
+ this.colors.lightbarAreaChooserHelpLineGeneralColor + ", " + this.colors.lightbarAreaChooserHelpLineGeneralColor + ", "
...@@ -9686,13 +9692,15 @@ function DigDistMsgReader_SetMsgListPauseTextAndLightbarHelpLine() ...@@ -9686,13 +9692,15 @@ function DigDistMsgReader_SetMsgListPauseTextAndLightbarHelpLine()
// For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though. // For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though.
this.msgListLightbarModeHelpLine = this.colors.lightbarMsgListHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@" this.msgListLightbarModeHelpLine = this.colors.lightbarMsgListHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + ", " + this.colors.lightbarMsgListHelpLineGeneralColor + ", "
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@" //+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@"
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`\\n@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + ", " + this.colors.lightbarMsgListHelpLineGeneralColor + ", "
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`PgUp`" + "\x1b[V" + "@" + this.colors.lightbarMsgListHelpLineHotkeyColor + "@`PgUp`" + "\x1b[V" + "@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + "/" + this.colors.lightbarMsgListHelpLineGeneralColor + "/"
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`Dn`" + KEY_PAGEDN + "@" + this.colors.lightbarMsgListHelpLineHotkeyColor + "@`Dn`" + KEY_PAGEDN + "@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + ", " + this.colors.lightbarMsgListHelpLineGeneralColor + ", "
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`ENTER`" + KEY_ENTER + "@" //+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`ENTER`" + KEY_ENTER + "@"
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`ENTER`\\r\\n@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + ", " + this.colors.lightbarMsgListHelpLineGeneralColor + ", "
+ this.colors.lightbarMsgListHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@" + this.colors.lightbarMsgListHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@"
+ this.colors.lightbarMsgListHelpLineGeneralColor + ", " + this.colors.lightbarMsgListHelpLineGeneralColor + ", "
...@@ -9761,7 +9769,8 @@ function DigDistMsgReader_SetEnhancedReaderHelpLine() ...@@ -9761,7 +9769,8 @@ function DigDistMsgReader_SetEnhancedReaderHelpLine()
// For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though. // For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though.
this.enhReadHelpLine = this.colors.enhReaderHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@" this.enhReadHelpLine = this.colors.enhReaderHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@"
+ this.colors.enhReaderHelpLineGeneralColor + ", " + this.colors.enhReaderHelpLineGeneralColor + ", "
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@" //+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@"
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`\\n@"
+ this.colors.enhReaderHelpLineGeneralColor + ", " + this.colors.enhReaderHelpLineGeneralColor + ", "
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + LEFT_ARROW + "`" + KEY_LEFT + "@" + this.colors.enhReaderHelpLineHotkeyColor + "@`" + LEFT_ARROW + "`" + KEY_LEFT + "@"
+ this.colors.enhReaderHelpLineGeneralColor +", " + this.colors.enhReaderHelpLineGeneralColor +", "
...@@ -9824,7 +9833,8 @@ function DigDistMsgReader_SetEnhancedReaderHelpLine() ...@@ -9824,7 +9833,8 @@ function DigDistMsgReader_SetEnhancedReaderHelpLine()
// For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though. // For PageUp, normally I'd think KEY_PAGEUP should work, but that triggers sending a telegram instead. \x1b[V seems to work though.
this.enhReadHelpLineWithoutChgArea = this.colors.enhReaderHelpLineHotkeyColor + "@CLEAR_HOT@ @`" + UP_ARROW + "`" + KEY_UP + "@" this.enhReadHelpLineWithoutChgArea = this.colors.enhReaderHelpLineHotkeyColor + "@CLEAR_HOT@ @`" + UP_ARROW + "`" + KEY_UP + "@"
+ this.colors.enhReaderHelpLineGeneralColor + ", " + this.colors.enhReaderHelpLineGeneralColor + ", "
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@" //+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@"
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`\\n@"
+ this.colors.enhReaderHelpLineGeneralColor + ", " + this.colors.enhReaderHelpLineGeneralColor + ", "
+ this.colors.enhReaderHelpLineHotkeyColor + "@`" + LEFT_ARROW + "`" + KEY_LEFT + "@" + this.colors.enhReaderHelpLineHotkeyColor + "@`" + LEFT_ARROW + "`" + KEY_LEFT + "@"
+ this.colors.enhReaderHelpLineGeneralColor + ", " + this.colors.enhReaderHelpLineGeneralColor + ", "
...@@ -17486,7 +17496,8 @@ function DigDistMsgReader_MakeIndexedModeHelpLine() ...@@ -17486,7 +17496,8 @@ function DigDistMsgReader_MakeIndexedModeHelpLine()
   
this.indexedModeHelpLine = this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@" this.indexedModeHelpLine = this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@CLEAR_HOT@@`" + UP_ARROW + "`" + KEY_UP + "@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + ", " + this.colors.lightbarIndexedModeHelpLineGeneralColor + ", "
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@" //+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`" + KEY_DOWN + "@"
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`" + DOWN_ARROW + "`\\n@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + ", " + this.colors.lightbarIndexedModeHelpLineGeneralColor + ", "
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`PgUp`" + "\x1b[V" + "@" + this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`PgUp`" + "\x1b[V" + "@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + "/" + this.colors.lightbarIndexedModeHelpLineGeneralColor + "/"
...@@ -17496,7 +17507,8 @@ function DigDistMsgReader_MakeIndexedModeHelpLine() ...@@ -17496,7 +17507,8 @@ function DigDistMsgReader_MakeIndexedModeHelpLine()
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + "/" + this.colors.lightbarIndexedModeHelpLineGeneralColor + "/"
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`N`" + "\x1b[V" + "@" + this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`N`" + "\x1b[V" + "@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + ", " + this.colors.lightbarIndexedModeHelpLineGeneralColor + ", "
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`ENTER`" + KEY_ENTER + "@" //+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`ENTER`" + KEY_ENTER + "@"
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`ENTER`\\r\\n@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + ", " + this.colors.lightbarIndexedModeHelpLineGeneralColor + ", "
+ this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@" + this.colors.lightbarIndexedModeHelpLineHotkeyColor + "@`HOME`" + KEY_HOME + "@"
+ this.colors.lightbarIndexedModeHelpLineGeneralColor + "/" + this.colors.lightbarIndexedModeHelpLineGeneralColor + "/"
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to // If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to
// DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from // DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from
// that same directory). // that same directory).
// Currently for DDMsgReader 1.96M. // Currently for DDMsgReader 1.96N.
// //
// If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want // If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want
// to save the configuration file there (rather than sbbs/mods), you can use one of the // to save the configuration file there (rather than sbbs/mods), you can use one of the
...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE"); ...@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE");
require("uifcdefs.js", "UIFC_INMSG"); require("uifcdefs.js", "UIFC_INMSG");
if (!uifc.init("DigDist. Message Reader 1.96M Configurator")) if (!uifc.init("DigDist. Message Reader 1.96N Configurator"))
{ {
print("Failed to initialize uifc"); print("Failed to initialize uifc");
exit(1); exit(1);
......
Digital Distortion Message Reader Digital Distortion Message Reader
Version 1.96M Version 1.96N
Release date: 2025-03-28 Release date: 2025-04-13
by by
......
...@@ -5,6 +5,10 @@ Revision History (change log) ...@@ -5,6 +5,10 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.96N 2025-04-13 Changes (fixes) for the bottom-row key help lines due to
Synchronet fix related to @-code parsing (Git commit
fccf1a5718fdcb9864bcbccf2eb6de7ee50d3dd3). Hopefully the
mouse clicks are still correct.
1.96M 2025-03-28 When reading messages, only mark it as read if it's to the 1.96M 2025-03-28 When reading messages, only mark it as read if it's to the
current user, including when reading sent email. current user, including when reading sent email.
1.96L 2025-02-18 After replying to a message, when it shows the status & 1.96L 2025-02-18 After replying to a message, when it shows the status &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment