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

DDMsgReader: Changed rescan hotkey for the indexed menu to Ctrl-R, since...

DDMsgReader: Changed rescan hotkey for the indexed menu to Ctrl-R, since Ctrl-S won't work for Wyse terminals (Ctrl-S is for xon/xoff toggling and can't be changed)
parent 3d0d1b91
No related branches found
No related tags found
1 merge request!389DDMsgReader: Changed rescan hotkey for the indexed menu to Ctrl-R, since Ctrl-S won't work for Wyse terminals (Ctrl-S is for xon/xoff toggling and can't be changed)
...@@ -87,5 +87,14 @@ newscanOnlyShowNewMsgs=true ...@@ -87,5 +87,14 @@ newscanOnlyShowNewMsgs=true
; displaying or returning to the indexed newscan menu ; displaying or returning to the indexed newscan menu
indexedModeMenuSnapToFirstWithNew=false indexedModeMenuSnapToFirstWithNew=false
; Default for a user setting: For the indexed sub-board menu when doing a newscan,
; whether or not to "snap" the lightbar selected item to the next sub-board with
; new messages when the user marks all messages as read in a sub-board on the menu
indexedModeMenuSnapToNextWithNewAftarMarkAllRead=true
; Default for a user setting: When reading personal email, whether or not to prompt
; the user if they want to delete a message after replying to it
promptDelPersonalEmailAfterReply=false
; The theme file name (for colors, strings, etc.) ; The theme file name (for colors, strings, etc.)
themeFilename=DefaultTheme.cfg themeFilename=DefaultTheme.cfg
...@@ -1151,7 +1151,7 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs) ...@@ -1151,7 +1151,7 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs)
markAllRead: "R", markAllRead: "R",
help: "?", help: "?",
userSettings: CTRL_U, userSettings: CTRL_U,
reScanSubBoards: CTRL_S reScanSubBoards: CTRL_R
}; };
   
// Message status characters for the message list // Message status characters for the message list
...@@ -1614,15 +1614,16 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs) ...@@ -1614,15 +1614,16 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs)
// Menu option values to use for the operator menu for reader mode // Menu option values to use for the operator menu for reader mode
this.readerOpMenuOptValues = { this.readerOpMenuOptValues = {
validateMsg: 0, validateMsg: 0,
editAuthorUserAccount: 1, saveMsgToBBSMachine: 1,
showHdrLines: 2, editAuthorUserAccount: 2,
showKludgeLines: 3, showHdrLines: 3,
showTallyStats: 4, showKludgeLines: 4,
showMsgHex: 5, showTallyStats: 5,
saveMsgHexToFile: 6, showMsgHex: 6,
quickValUser: 7, saveMsgHexToFile: 7,
addAuthorToTwitList: 8, quickValUser: 8,
addAuthorEmailToEmailFilter: 9 addAuthorToTwitList: 9,
addAuthorEmailToEmailFilter: 10
}; };
   
// For indexed mode, whether to set the indexed mode menu item index to 1 more when showing // For indexed mode, whether to set the indexed mode menu item index to 1 more when showing
...@@ -6418,6 +6419,42 @@ function DigDistMsgReader_ReadMessageEnhanced_Scrollable(msgHeader, allowChgMsgA ...@@ -6418,6 +6419,42 @@ function DigDistMsgReader_ReadMessageEnhanced_Scrollable(msgHeader, allowChgMsgA
} }
} }
break; break;
case this.readerOpMenuOptValues.saveMsgToBBSMachine:
// Prompt the user for a filename to save the message to the
// BBS machine
var promptPos = this.EnhReaderPrepLast2LinesForPrompt();
console.print("\x01n\x01cFilename:\x01h");
var inputLen = console.screen_columns - 10; // 10 = "Filename:" length + 1
var filename = console.getstr(inputLen, K_NOCRLF);
console.attributes = "N";
if (filename.length > 0)
{
var saveMsgRetObj = this.SaveMsgToFile(msgHeader, filename, promptPos);
console.gotoxy(promptPos);
console.cleartoeol("\x01n");
console.gotoxy(promptPos);
if (saveMsgRetObj.succeeded)
{
var statusMsg = "\x01n\x01cThe message has been saved.";
if (msgHdrHasAttachmentFlag(msgHeader))
statusMsg += " Attachments not saved.";
statusMsg += "\x01n";
console.print(statusMsg);
}
else
console.print("\x01n\x01y\x01hFailed: " + saveMsgRetObj.errorMsg + "\x01n");
mswait(ERROR_PAUSE_WAIT_MS);
}
else
{
console.gotoxy(promptPos);
console.print("\x01n\x01y\x01hMessage not exported\x01n");
mswait(ERROR_PAUSE_WAIT_MS);
}
// Refresh the last 2 lines of the message on the screen to overwrite
// the file save prompt
this.DisplayEnhReaderError("", msgInfo.messageLines, topMsgLineIdx, msgLineFormatStr);
break;
case this.readerOpMenuOptValues.showMsgHex: case this.readerOpMenuOptValues.showMsgHex:
writeMessage = false; writeMessage = false;
if (msgHexInfo == null) if (msgHexInfo == null)
...@@ -7775,6 +7812,34 @@ function DigDistMsgReader_ReadMessageEnhanced_Traditional(msgHeader, allowChgMsg ...@@ -7775,6 +7812,34 @@ function DigDistMsgReader_ReadMessageEnhanced_Traditional(msgHeader, allowChgMsg
} }
console.pause(); console.pause();
break; break;
case this.readerOpMenuOptValues.saveMsgToBBSMachine:
console.crlf();
console.print("\x01n\x01cFilename:\x01h");
var inputLen = console.screen_columns - 10; // 10 = "Filename:" length + 1
var filename = console.getstr(inputLen, K_NOCRLF);
console.attributes = "N";
console.crlf();
if (filename.length > 0)
{
var saveMsgRetObj = this.SaveMsgToFile(msgHeader, filename);
if (saveMsgRetObj.succeeded)
{
console.print("\x01n\x01cThe message has been saved.\x01n");
if (msgHdrHasAttachmentFlag(msgHeader))
console.print(" Attachments not saved.");
console.attributes = "N";
}
else
console.print("\x01n\x01y\x01hFailed: " + saveMsgRetObj.errorMsg + "\x01n");
mswait(ERROR_PAUSE_WAIT_MS);
}
else
{
console.print("\x01n\x01y\x01hMessage not exported\x01n");
mswait(ERROR_PAUSE_WAIT_MS);
}
writeMessage = true;
break;
case this.readerOpMenuOptValues.showMsgHex: case this.readerOpMenuOptValues.showMsgHex:
writeMessage = false; writeMessage = false;
writePromptText = false; writePromptText = false;
...@@ -7961,6 +8026,7 @@ function DigDistMsgReader_CreateReadModeOpMenu() ...@@ -7961,6 +8026,7 @@ function DigDistMsgReader_CreateReadModeOpMenu()
opMenu.Add("&H: Show header lines", this.readerOpMenuOptValues.showHdrLines); opMenu.Add("&H: Show header lines", this.readerOpMenuOptValues.showHdrLines);
opMenu.Add("&K: Show kludge lines", this.readerOpMenuOptValues.showKludgeLines); opMenu.Add("&K: Show kludge lines", this.readerOpMenuOptValues.showKludgeLines);
opMenu.Add("&T: Show tally stats", this.readerOpMenuOptValues.showTallyStats); opMenu.Add("&T: Show tally stats", this.readerOpMenuOptValues.showTallyStats);
opMenu.Add("&S: Save msg to BBS machine", this.readerOpMenuOptValues.saveMsgToBBSMachine);
opMenu.Add("&X: Show message hex", this.readerOpMenuOptValues.showMsgHex); opMenu.Add("&X: Show message hex", this.readerOpMenuOptValues.showMsgHex);
opMenu.Add("&E: Save message hex to file", this.readerOpMenuOptValues.saveMsgHexToFile); opMenu.Add("&E: Save message hex to file", this.readerOpMenuOptValues.saveMsgHexToFile);
opMenu.Add("&A: Quick validate the user", this.readerOpMenuOptValues.quickValUser); opMenu.Add("&A: Quick validate the user", this.readerOpMenuOptValues.quickValUser);
...@@ -7976,6 +8042,7 @@ function DigDistMsgReader_CreateReadModeOpMenu() ...@@ -7976,6 +8042,7 @@ function DigDistMsgReader_CreateReadModeOpMenu()
opMenu.Add("Show header lines", this.readerOpMenuOptValues.showHdrLines); opMenu.Add("Show header lines", this.readerOpMenuOptValues.showHdrLines);
opMenu.Add("Show kludge lines", this.readerOpMenuOptValues.showKludgeLines); opMenu.Add("Show kludge lines", this.readerOpMenuOptValues.showKludgeLines);
opMenu.Add("Show tally stats", this.readerOpMenuOptValues.showTallyStats); opMenu.Add("Show tally stats", this.readerOpMenuOptValues.showTallyStats);
opMenu.Add("Save msg to BBS machine", this.readerOpMenuOptValues.saveMsgToBBSMachine);
opMenu.Add("Show message hex", this.readerOpMenuOptValues.showMsgHex); opMenu.Add("Show message hex", this.readerOpMenuOptValues.showMsgHex);
opMenu.Add("Save message hex to file", this.readerOpMenuOptValues.saveMsgHexToFile); opMenu.Add("Save message hex to file", this.readerOpMenuOptValues.saveMsgHexToFile);
opMenu.Add("Quick validate the user", this.readerOpMenuOptValues.quickValUser); opMenu.Add("Quick validate the user", this.readerOpMenuOptValues.quickValUser);
...@@ -15643,7 +15710,7 @@ function DigDistMsgReader_DoIndexedMode(pScanScope, pNewscanOnly) ...@@ -15643,7 +15710,7 @@ function DigDistMsgReader_DoIndexedMode(pScanScope, pNewscanOnly)
else else
this.DoUserSettings_Traditional(); this.DoUserSettings_Traditional();
} }
// CTRL-S: Re-scan sub-boards // CTRL-R: Re-scan sub-boards
else if (indexRetObj.lastUserInput == this.indexedModeMenuKeys.reScanSubBoards) else if (indexRetObj.lastUserInput == this.indexedModeMenuKeys.reScanSubBoards)
{ {
drawMenu = true; drawMenu = true;
...@@ -16235,7 +16302,7 @@ function DigDistMsgReader_ShowIndexedListHelp() ...@@ -16235,7 +16302,7 @@ function DigDistMsgReader_ShowIndexedListHelp()
printf(formatStr, "R", "Mark all read in the sub-board"); printf(formatStr, "R", "Mark all read in the sub-board");
printf(formatStr, "M", "Show message list for the sub-board"); printf(formatStr, "M", "Show message list for the sub-board");
printf(formatStr, "Ctrl-U", "User settings"); printf(formatStr, "Ctrl-U", "User settings");
printf(formatStr, "Ctrl-S", "Re-scan sub-boards"); printf(formatStr, "Ctrl-R", "Re-scan sub-boards");
printf(formatStr, "Q", "Quit"); printf(formatStr, "Q", "Quit");
//printf(formatStr, "?", "Show this help screen"); //printf(formatStr, "?", "Show this help screen");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment