<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:10 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-6938] Mongo shell should not use CHA escape sequence</title>
                <link>https://jira.mongodb.org/browse/SERVER-6938</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The Cursor Horizontal Absolute escape sequence (ESC [ nnn G) is not an original VT100 escape sequence, so terminal programs with a strict VT100 mode may not interpret it.  This can cause repaint glitches, including &quot;echoes&quot; of typed text.  It would be better to use only VT100 escape sequences to do cursor positioning in Unix mode.&lt;/p&gt;

&lt;p&gt;Original report:&lt;br/&gt;
Upgraded from version 1.8.1 to 2.2.0 , mongodb shell will echo the command when press &quot;ENTER&quot; , how can i change the behavior &lt;/p&gt;

&lt;p&gt;ex:&lt;br/&gt;
&amp;gt; show dbsshow dbs&lt;/p&gt;</description>
                <environment>OS:CentoS 5.5 MongoDB version 2.2</environment>
        <key id="49391">SERVER-6938</key>
            <summary>Mongo shell should not use CHA escape sequence</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="dongde">dongde</reporter>
                        <labels>
                            <label>move-sa</label>
                            <label>platforms-re-triaged</label>
                    </labels>
                <created>Wed, 5 Sep 2012 03:00:51 +0000</created>
                <updated>Tue, 10 May 2022 21:28:43 +0000</updated>
                                            <version>2.2.0</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4539883" author="steven.vannelli" created="Tue, 10 May 2022 21:28:43 +0000"  >&lt;p&gt;Moving this ticket to the Backlog and removing the &quot;Backlog&quot; fixVersion as per our latest policy for using fixVersions. &lt;/p&gt;</comment>
                            <comment id="617989" author="victor.hooi" created="Thu, 12 Jun 2014 01:18:39 +0000"  >&lt;p&gt;&lt;b&gt;tl;dr&lt;/b&gt; - Seems fine with latest SecureCRT (7.2.5)&lt;/p&gt;

&lt;p&gt;I&apos;ve tested this with SecureCRT 7.2.5 on both OSX 10.9.3 and Windows 8.1.&lt;/p&gt;

&lt;p&gt;My TERM was set to &quot;vt100&quot;.&lt;/p&gt;

&lt;p&gt;I connected to a remote Ubuntu 14.04 x64 box running Mongo 2.6.1.&lt;/p&gt;

&lt;p&gt;I wasn&apos;t able to reproduce the echoing typed text issue.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached screenshots for both.&lt;/p&gt;</comment>
                            <comment id="161492" author="dongde" created="Fri, 7 Sep 2012 02:30:42 +0000"  >&lt;p&gt;I changed emulation type in SecureCRT to vt220 , xterm ,vt100 ... and enabled EMACS, it is still not work .&lt;br/&gt;
i downloaded other terminal program - putty , it does not has such behavior , seems mongo shell 2.2 is not compatible with SecureCRT 4.0( the version i used) , but it worked with mongo shell 1.8&lt;/p&gt;</comment>
                            <comment id="161169" author="tad" created="Thu, 6 Sep 2012 16:13:31 +0000"  >&lt;p&gt;In addition, you might want to enable EMACS mode (in the same dialog) and select &quot;Send escape for meta key&quot; to make keystrokes like Meta-B (Alt+B) work.&lt;/p&gt;</comment>
                            <comment id="161166" author="tad" created="Thu, 6 Sep 2012 15:56:27 +0000"  >&lt;p&gt;I downloaded SecureCRT for Linux version 7.0.1 and I was able to duplicate your issue.&lt;/p&gt;

&lt;p&gt;Changing the emulation type in SecureCRT from VT100 to any of VT220, Linux or Xterm (in Options/Session Options/Terminal/Emulation) made it work properly for me.&lt;/p&gt;

&lt;p&gt;It looks like the CHA &#8211; Cursor Horizontal Absolute escape sequence (ESC [ &amp;lt;position&amp;gt; G) we are using to position the cursor horizontally on the line is not an original VT100 sequence, but is a later addition.  We didn&apos;t notice this because it works with Gnome Terminal, aterm, rxvt, konsole, yaquake and xterm.  If you set SecureCRT to VT220, Linux or Xterm emulation then it should work with SecureCRT as well.&lt;/p&gt;</comment>
                            <comment id="161078" author="tad" created="Thu, 6 Sep 2012 11:09:17 +0000"  >&lt;p&gt;We have had reports of issues with SecureCRT and apparently it can be fixed by changing the emulation setting, though I&apos;m not sure why a setting labeled &quot;VT100&quot; would not work.  See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3826&quot; title=&quot;Upgrade to mongodb 2.0 breaks the shell/console&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3826&quot;&gt;&lt;del&gt;SERVER-3826&lt;/del&gt;&lt;/a&gt; for one example.  I&apos;ll try testing with SecureCRT and see if there is something that can be fixed on our side.&lt;/p&gt;

&lt;p&gt;The output of your keyboard debugging test is the same as on my machine, so apparently the escape sequence we are using for cursor positioning is not working in SecureCRT with the settings you are using.&lt;/p&gt;</comment>
                            <comment id="161020" author="dongde" created="Thu, 6 Sep 2012 03:48:06 +0000"  >&lt;p&gt;My terminal program is secureCRT .&lt;/p&gt;</comment>
                            <comment id="161016" author="dongde" created="Thu, 6 Sep 2012 03:42:51 +0000"  >&lt;p&gt;Dear Tad ,&lt;/p&gt;

&lt;p&gt;Thanks for response the question.&lt;/p&gt;

&lt;p&gt;I am running bash shell with terminal type VT100 .&lt;/p&gt;

&lt;p&gt;and following your instructions and shows below message :&lt;br/&gt;
&amp;gt; &lt;br/&gt;
Entering keyboard debugging mode (on ctrl-^), press ctrl-C to exit this mode&lt;br/&gt;
115 x73 (&apos;s&apos;)  &lt;br/&gt;
104 x68 (&apos;h&apos;)  &lt;br/&gt;
111 x6F (&apos;o&apos;)  &lt;br/&gt;
119 x77 (&apos;w&apos;)  &lt;br/&gt;
32 x20 (space)  &lt;br/&gt;
100 x64 (&apos;d&apos;)  &lt;br/&gt;
98 x62 (&apos;b&apos;)  &lt;br/&gt;
115 x73 (&apos;s&apos;)  &lt;br/&gt;
13 x0D (^M)  &lt;br/&gt;
3 x03 (^C)  &lt;br/&gt;
Leaving keyboard debugging mode (on ctrl-C)&lt;/p&gt;</comment>
                            <comment id="160485" author="tad" created="Wed, 5 Sep 2012 09:59:55 +0000"  >&lt;p&gt;What terminal program are you using?  Is it configured to be in a VT100-compatible mode?&lt;/p&gt;

&lt;p&gt;Are you running the bash shell, or something else (e.g. EMACS command window)?&lt;/p&gt;

&lt;p&gt;What do you get for &quot;echo $TERM&quot; at the (bash or other) shell prompt?&lt;/p&gt;

&lt;p&gt;At the mongo shell prompt, can you press ctrl-^ (the Ctrl key and 6) and type your command, ending with Enter, then press ctrl-C and paste the result into this ticket?  This puts the keyboard into a debugging mode that shows what keystrokes we are seeing; ctrl-C will exit the mode.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="45342" name="SecuretCRT 7.2.5 OSX with Mongo Shell.png" size="275525" author="victor.hooi" created="Thu, 12 Jun 2014 01:19:35 +0000"/>
                            <attachment id="45348" name="SecuretCRT 7.2.5 Windows with Mongo Shell 2.2.7 and 2.4.9.png" size="235909" author="victor.hooi" created="Thu, 12 Jun 2014 03:43:10 +0000"/>
                            <attachment id="45341" name="SecuretCRT 7.2.5 Windows with Mongo Shell.png" size="226015" author="victor.hooi" created="Thu, 12 Jun 2014 01:19:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Sep 2012 09:59:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 39 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>steven.vannelli@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 39 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dongde</customfieldvalue>
            <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>steven.vannelli@mongodb.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
            <customfieldvalue>victor.hooi</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnpsv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9gjr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5111</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0ot3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>