<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:22 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-2852] Linenoise doesn&apos;t work well with some terminals</title>
                <link>https://jira.mongodb.org/browse/SERVER-2852</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Particularly rxvt.  This is like death by 1000 paper cuts: nothing major, but super annoying.&lt;/p&gt;

&lt;p&gt;1) refreshing the line (on backspaces, moving the cursor left, etc.) messed up the prompt (resulting in &quot;&amp;gt;&amp;gt; &quot;). &lt;br/&gt;
2) long lines get messed up (this may be related to 1, haven&apos;t looked yet)&lt;br/&gt;
3) alt shortcuts not supported&lt;/p&gt;

&lt;p&gt;#1 (and maybe #2) is because rxvt expects \xb1[1G to return to the start of a line and xterm expects \xb1[0G.  I have a feeling that there are a million of these and there&apos;s a reason readline is huge.  Working on the ones listed above, I&apos;ll submit fixes upstream.&lt;/p&gt;</description>
                <environment>Linux (and other Unix-like OSes)</environment>
        <key id="15344">SERVER-2852</key>
            <summary>Linenoise doesn&apos;t work well with some terminals</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="tad">Tad Marshall</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Mar 2011 20:35:17 +0000</created>
                <updated>Tue, 25 Nov 2014 03:38:01 +0000</updated>
                            <resolved>Wed, 7 Dec 2011 08:57:56 +0000</resolved>
                                    <version>1.9.0</version>
                                                    <component>Shell</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="71357" author="tad" created="Wed, 7 Dec 2011 08:57:34 +0000"  >&lt;p&gt;I talked to Kristina and there are no issues here specifically related to one terminal program versus another.  It is the lack of specific readline features that is the problem, so this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4312&quot; title=&quot;Add &amp;quot;key&amp;quot; missing readline/bash (EMACS-style) command line features to the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4312&quot;&gt;&lt;del&gt;SERVER-4312&lt;/del&gt;&lt;/a&gt; (the merged &quot;add missing readline features&quot; bug).&lt;/p&gt;</comment>
                            <comment id="70335" author="tad" created="Fri, 2 Dec 2011 03:39:30 +0000"  >&lt;p&gt;Kristina, can you please either add the names of some terminals I should test, or point me to some online list of popular ones I should look at?  Most of the (current) code is just assuming that we&apos;re running on a VT100 or something close, though we have some keyboard handling that (piecemeal) accepts non-VT100 sequences.&lt;/p&gt;

&lt;p&gt;I have tested against Gnome terminal (as provided in Ubuntu) and also against xterm and rxvt and I don&apos;t see any terminal-specific issues with any of that set.  If there are popular ones that I don&apos;t know about, it would help me to know what they are.&lt;/p&gt;

&lt;p&gt;readline doesn&apos;t itself contain any real terminal-specific code (like escape sequence stuff), but it knows a lot about how to get that information from Linux.  linenoise is much more from the &quot;just hard-code it&quot; school, so if we want support for a diverse set of terminals we either need to add a lot of hard-coding or do it the readline way, and get the info from Linux.  Either way, I need some failing test cases to do anything with this bug.&lt;/p&gt;

&lt;p&gt;Oh, and the cut-and-paste EMACS feature is part of what I&apos;m planning on doing for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4312&quot; title=&quot;Add &amp;quot;key&amp;quot; missing readline/bash (EMACS-style) command line features to the shell&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4312&quot;&gt;&lt;del&gt;SERVER-4312&lt;/del&gt;&lt;/a&gt;, my merged &quot;be more like readline&quot; bug (Add &quot;key&quot; missing readline/bash (EMACS-style) command line features to the shell).  I want to hit ctrl-Z job control, ctrl-R history search, ctrl-K kill and ctrl-Y yank, at a minimum.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="58710" author="tad" created="Wed, 5 Oct 2011 22:31:04 +0000"  >&lt;p&gt;Regarding the comment &quot;rxvt expects \xb1[1G to return to the start of a line and xterm expects \xb1[0G&quot;, this isn&apos;t quite correct.  The ESC [ &amp;lt;param&amp;gt; G behaves like some similar VT100 escape sequences and provides a default value which can be explicitly &quot;defaulted&quot; by using a 0 as the parameter.  So, ESC [ 1 G is an explicit command to go to the leftmost column and ESC [ 0 G is a more verbose way of saying ESC [ G and means to go to the default column, which is the leftmost one.  So, this is a bug in rxvt: it isn&apos;t that xterm &lt;em&gt;wants&lt;/em&gt; a zero, it just works correctly when it gets one.  The code in linenoise.cpp is fixed as you said and uses ESC [ 1 G to work right in both emulators.&lt;/p&gt;</comment>
                            <comment id="28809" author="kristina" created="Tue, 12 Apr 2011 13:09:10 +0000"  >&lt;p&gt;#1 &amp;amp; #2 are now fixed.&lt;/p&gt;

&lt;p&gt;Another one: Ctrl-y doesn&apos;t paste Ctrl-k&apos;d strings.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="25067">SERVER-4312</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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 Oct 2011 22:31:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 11 weeks 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 11 weeks 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp2gf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21000</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</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|hsu0fj:</customfieldvalue>

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