Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jline is buggy, especially when using arrow keys #2547

Closed
scabug opened this issue Oct 30, 2009 · 8 comments
Closed

jline is buggy, especially when using arrow keys #2547

scabug opened this issue Oct 30, 2009 · 8 comments

Comments

@scabug
Copy link

scabug commented Oct 30, 2009

On Windows, scala interpreter does not show caret(or cursor) during left/right arrow keys are pressed.

Suppose I typing like below.

scala> println("Helo scala"

Caret is end of line.
When I try to go back few chars to correct "Helo" to "Hello", scala interpreter does not showing caret, during left arrow key pressed down.

I can't see where I am now during move around in line.
I hope this to be fixed.

Environment:
-Windows XP SP3
-Scala 2.7.7 final (I tried with some build of 2.8, but situation does not seems to fixed)

@scabug
Copy link
Author

scabug commented Oct 30, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2547?orig=1
Reporter: Koji Yoshioka (kyab)
Attachments:

@scabug
Copy link
Author

scabug commented Dec 14, 2009

@paulp said:
It's not windows specific. Yes jline definitely needs work, and any community contribution would be gratefully received (and not just by scala, but jruby/jython/you name it.)

@scabug
Copy link
Author

scabug commented Jul 23, 2010

@SethTisue said:
close as wontfix?

@scabug
Copy link
Author

scabug commented Jul 23, 2010

@paulp said:
As a matter of fact, no! I will close soon-ish as was-fixed.

@scabug
Copy link
Author

scabug commented Nov 28, 2010

huynhjl said:
jline patch for Windows (includes new DLLs)

@scabug
Copy link
Author

scabug commented Aug 17, 2011

Sonnenschein (sonnenschein) said:
As of 2.9.1.RC2 (and probably earlier) the cursor is visible while holding the arrow keys.

But I'm still missing usable wordwise moving.
Previous word: Ctrl-O works, but ctrl-G not. Next word: (don't know)?
Apart from ctrl-combinations, desirable is to have ctrl-left and ctrl-right.

@scabug
Copy link
Author

scabug commented Jan 20, 2012

@paulp said:
ctrl-T is next word. It works in 2.9.1 on osx.

Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.

scala> :key
Reading jline properties for default key bindings.
Accuracy not guaranteed: treat this as a guideline only.

  1 CTRL-A: move to the beginning of the line
  2 CTRL-B: move to the previous character
  4 CTRL-D: close out the input stream
  5 CTRL-E: move the cursor to the end of the line
  6 CTRL-F: move to the next character
  7 CTRL-G: abort
  8 BACKSPACE, CTRL-H: delete the previous character 8 is the ASCII code for backspace and therefor deleting the previous character
  9 TAB, CTRL-I: signal that console completion should be attempted
 10 CTRL-J, CTRL-M: newline
 11 CTRL-K: erase the current line
 12 CTRL-L: clear screen
 13 ENTER: newline
 14 CTRL-N: scroll to the next element in the history buffer
 15 CTRL-O: move to the previous word
 16 CTRL-P: scroll to the previous element in the history buffer
 18 CTRL-R: search history
 20 CTRL-T: move to next word
 21 CTRL-U: delete all the characters before the cursor position
 22 CTRL-V: paste the contents of the clipboard (useful for Windows terminal)
 23 CTRL-W: delete the word directly before the cursor
 24 CTRL-X: delete the word directly after the cursor
127 DELETE, CTRL-?: delete the next character 127 is the ASCII code for delete

@scabug
Copy link
Author

scabug commented Jun 25, 2013

@adriaanm said:
This should be fixed upstream. We're moving to vanilla jline: #7604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant