Problems with mongosh integration with `screen` and other terminals

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • vNext
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Ubuntu
    • 2
    • Not Needed

      Problem Statement/Rationale

      MongoSH seems to have integration with screen where it shows the currently connected host as part of the screen's tab. This is really cool, but it has a couple of problems:

      1. The length of the tab title is a bit too long, perhaps only the host can be left (or even the first host)
      2. When MongoSH is quit, it doesn't clear the tab's title

      See the attached screenshot.

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?
      Use screen with the following .screenrc configuration (so it shows the tabs):
      hardstatus alwayslastline "%{-b ck}%-w%{+b kc}%50>%n %t%{-b ck}%+w %=%H %C%a"
      altscreen on
      TERM screen

      Then run screen and just run MongoSH and then quit it.

      Expected Results

      What do you expect to happen?

      After I exit from mongosh, the window/tab title is reset

      Actual Results

      What do you observe is happening?

      After quitting mongosh and running other binaries, the window title is still `mongosh <connection string>`.

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            Anna Henningsen
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: