Skip to content
Snippets Groups Projects
Commit 41abeed6 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared...

DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared variable error). Found by Amessyroom
parent d232ecdc
No related branches found
No related tags found
1 merge request!456DDMsgReader: Fix for saving an ANSI message to the local BBS PC (undeclared variable error). Found by Amessyroom
...@@ -161,6 +161,8 @@ ...@@ -161,6 +161,8 @@
* to save messages to. Can be empty, to use a full path inputted by the user. * to save messages to. Can be empty, to use a full path inputted by the user.
* 2024-08-12 Eric Oulashin Version 1.95g * 2024-08-12 Eric Oulashin Version 1.95g
* Updates to help with the newscan issues placing the user at the first message, etc. * Updates to help with the newscan issues placing the user at the first message, etc.
* 2024-09-03 Eric Oulashin Version 1.95h
* Fix for saving an ANSI message to the local BBS PC
*/ */
   
"use strict"; "use strict";
...@@ -276,8 +278,8 @@ var hexdump = load('hexdump_lib.js'); ...@@ -276,8 +278,8 @@ var hexdump = load('hexdump_lib.js');
*/ */
   
// Reader version information // Reader version information
var READER_VERSION = "1.95g"; var READER_VERSION = "1.95h";
var READER_DATE = "2024-08-12"; var READER_DATE = "2024-09-03";
   
// 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);
...@@ -17059,7 +17061,7 @@ function DigDistMsgReader_SaveMsgToFile(pMsgHdr, pFilename, pPromptPos) ...@@ -17059,7 +17061,7 @@ function DigDistMsgReader_SaveMsgToFile(pMsgHdr, pFilename, pPromptPos)
//var graphic = new Graphic(this.msgAreaWidth, this.msgAreaHeight); //var graphic = new Graphic(this.msgAreaWidth, this.msgAreaHeight);
// To help ensure ANSI messages look good, it seems the Graphic object should have // To help ensure ANSI messages look good, it seems the Graphic object should have
// its with later set to 1 less than the width used to create it. // its with later set to 1 less than the width used to create it.
var graphicWidth = (msgAreaWidth < console.screen_columns ? msgAreaWidth+1 : console.screen_columns); var graphicWidth = (this.msgAreaWidth < console.screen_columns ? this.msgAreaWidth+1 : console.screen_columns);
var graphic = new Graphic(graphicWidth, this.msgAreaHeight); var graphic = new Graphic(graphicWidth, this.msgAreaHeight);
graphic.auto_extend = true; graphic.auto_extend = true;
graphic.ANSI = ansiterm.expand_ctrl_a(msgBody); graphic.ANSI = ansiterm.expand_ctrl_a(msgBody);
......
...@@ -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.95g. // Currently for DDMsgReader 1.95h.
// //
// 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.95g Configurator")) if (!uifc.init("DigDist. Message Reader 1.95h 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.95g Version 1.95h
Release date: 2024-08-12 Release date: 2024-09-03
by by
......
...@@ -5,6 +5,7 @@ Revision History (change log) ...@@ -5,6 +5,7 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
1.95h 2024-09-03 Fix for saving an ANSI message to the local BBS PC
1.95g 2024-08-12 Updates to help with the newscan issues placing the user 1.95g 2024-08-12 Updates to help with the newscan issues placing the user
at the first message, etc. at the first message, etc.
1.95f 2024-08-08 New config option: msgSaveDir, which specifies the 1.95f 2024-08-08 New config option: msgSaveDir, which specifies the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment