Menu

#20 left arrow and backspace display

open
nobody
5
2006-09-11
2006-09-11
Anonymous
No

To reproduce:

1. Type in a long input line that wraps to a second line.
2. Attempt to backspace or left arrow to the first
character of the long line.
3. Note that the cursor stops moving at the beginning
of the second line.

Notes:

1. Cursor position in the internal buffer seems
correct; it is possible to backspace to the beginning
of the long line.
2. Using ConsoleRunner out of the box.
3. Behaves similarly with my app and with beanshell
4. Platform is Redhat Enterprise Linux AS 3
5. Occurs in version jline-0.9.9 and two other
previous versions (of unknown number).

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have seen the same issue in solaris and windows.
    wrapped lines seems to corrupt the command line.
    - rahul

     
  • Damien Uern

    Damien Uern - 2007-04-23

    Logged In: YES
    user_id=897091
    Originator: NO

    I can confirm this behaviour on Ubuntu Dapper.

    Btw, if any jline devs read this, thanks for a great library! It was exactly what I was looking for! :-)

     
  • Marc Prud'hommeaux

    Logged In: YES
    user_id=33016
    Originator: NO

    I've heard a few reports about this, but I haven't been able to reproduce it. I suspect that it might have to do with the actual terminal program you are using. Can you let me know what it is (e.g., xterm, eterm)?

     
  • sassa_nf

    sassa_nf - 2007-09-13

    Logged In: YES
    user_id=1649708
    Originator: NO

    This is fixed in "ANSI support + fix"

     
  • Nobody/Anonymous

    I confirm this remains a problem with Ubuntu 9.04 (Ubuntu Jaunty Jackalope) under JLine 0.9.94. It is an issue when using JLine applications via both gnome-terminal, xterm and the default text-only Linux terminal ($TERM reports "linux"). vttest seems to work correctly. I've also seen this on Windows. I have also built from CVS as of 2009-06-01 and confirm the issue remains in jline-0.9.95-SNAPSHOT. We are using JLine with Spring Roo and a bug has also been logged against Roo for this: http://jira.springframework.org/browse/ROO-69

     
  • Nobody/Anonymous

    Any updates?

     
  • Nobody/Anonymous

    It's still broken in jline-0.9.94.zip in both cmd.exe, and in cygwin (inside cmd.exe, inside rxvt TERM=rxvt-cygwin, inside xwindows TERM=xterm) - note that with the latter two, I can't enter lines to the underlying program, or use history etc. unless I:

    stty -icanon min 1 -echo
    java -Djline.terminal=jline.UnixTerminal ...
    stty icanon echo

    note that this does *not* in any way work around or improve the bug with wrapped long lines; it's just necessary for basic functionality to work with cygwin and an xwin type terminal.

     
  • Nobody/Anonymous

    I get this error too, but it only happens after press enter between steps 1 and 2.

    I also just came across this in my search for a fix: http://bugs.jython.org/file676/jline-osx.diff

     
  • Ben Alex

    Ben Alex - 2009-10-03

    Applied http://bugs.jython.org/file676/jline-osx.diff against JLine CVS as of 28 July 2009, but problem remains. This is a pretty visible bug to anyone using JLine significantly (ie many commands wrap across more than one line) so it would be good if the JLine team would take a look at this bug (which was opened in early 2007). As mentioned in an earlier comment, Spring Roo uses JLine and many of our users are affected by this bug.

     
  • Nobody/Anonymous

    Those affected by this bug are encouraged to try the JLine fork at http://github.com/gnodet/jline/. This has tested fine on Linux and is not impacted by this bug. This JLine fork also appears to be regularly maintained at the time of writing, with commits in the last 4 weeks.

     
  • jonathan

    jonathan - 2012-06-12

    I seems to be working file on 2.7

     
  • jonathan

    jonathan - 2012-06-12

    It*

     

Log in to post a comment.