Skip to content
Snippets Groups Projects

DDMsgReader: Inactivity disconnection more consistent with Synchronet behavior. DDLightbarMenu: Use console.getkey() instead of getKeyWithESCChars(), as getKeyWithESCChars() is no longer needed.

1 unresolved thread

DDMsgReader: Inactivity disconnection more consistent with Synchronet behavior. DDLightbarMenu: Use console.getkey() instead of getKeyWithESCChars(), as getKeyWithESCChars() is no longer needed. For DDMsgReader, User timeout 'AreYouThere' message and disconnection are more consistent with Synchronet's behavior. However, if the scrollable reader or lightbar list interface is being used, the 'AreYouThere' text will be set to a blank string for the duration of this script's run due to how the text can interfere with the screen and scrolling. The 'AreYouThere' sound will still occur though, and the user will be disconnected if they don't respond.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 657 667 readerSubCode = gCmdLineArgVals["subboard"];
    658 668 }
    659 669 var msgReader = new DigDistMsgReader(readerSubCode, gCmdLineArgVals);
    670 // If the user's terminal supports ANSI and we will be using any of the lightbar/scrollable
    671 // user interfaces, then blank out the AreYouThere timeout warning string (used by
    672 // console.getkey()), which would interfere with full-screen display and scrolling display
    673 // functionality. Also, have the script set it back to its previous (possibly sysop-customized)
    674 // value on exit.
    675 if (console.term_supports(USER_ANSI) && (msgReader.scrollingReaderInterface || msgReader.msgListUseLightbarListInterface))
    676 {
    677 var originalAreYouThereStr = bbs.text(bbs.text.AreYouThere);
    678 bbs.replace_text(AreYouThere, "");
    679 js.on_exit("bbs.replace_text(AreYouThere, \"" + originalAreYouThereStr + "\")");
    680 //js.on_exit("bbs.revert_text(AreYouThere)");
  • Some comments added

  • Eric Oulashin added 1 commit

    added 1 commit

    • 8d7519a0 - DDMsgReader: Removed extraneous KEY_PAGEUP and KEY_PAGEDN definitions and...

    Compare with previous version

  • Eric Oulashin added 1 commit

    added 1 commit

    • 742c8c9a - DDMsgReader: use bbs.revert_text() to revert the AreYouThere string on exit

    Compare with previous version

  • Rob Swindell enabled an automatic merge when all merge checks for 742c8c9a pass

    enabled an automatic merge when all merge checks for 742c8c9a pass

  • Rob Swindell mentioned in commit 40715475

    mentioned in commit 40715475

  • merged

  • Please register or sign in to reply
    Loading