Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6453

groovysh in Windows 7/8/10 doesn't support arrow keys and Del

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.0.7, 4.0.0-alpha-2
    • Groovysh
    • Windows 8, 64bit (v6.2, build 9200), java version "1.7.0_45" SE Runtime Environment (build 1.7.0_45-b18) HotSpot 64-Bit Server VM (build 24.45-b08, mixed mode), Russian locale (!)

    Description

      I have bare windows 8 with fresh JDK. I run Groovysh in cmd.exe.
      Groovysh 2.1.9 works as expected.

      Groovysh 2.2.0 doesn't react to arrow keys and Del, i.e. up key doesn't show previous command, left key doesn't shift cursor etc.

      After some investigation I found what is working:
      ctrl-a go to beginning of line
      ctrl-e go to End of line
      ctrl-f go Forward one char
      ctrl-b go Backward one char
      ctrl-d delete the char
      ctrl-h and backspace = delete left char
      ctrl-p recall previous line
      ctrl-n recall next line
      ctrl-s search
      ctrl-r reverse search
      It's nice and feel myself like a Linux hacker, but I want arrow keys too

      I tried different options:

      • upgrade jline2.10 to 2.11 - no effect
      • --terminal=unix - it helps, but duplicate prompt (groovy:000>) and no more colors in console

      Looks like problem lies in new jline v2 (groovysh 2.1.9 uses jline1.0)

      Attachments

        1. image-2020-09-07-20-03-41-004.png
          8 kB
          Mykola Golubyev

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              rybin.andrey@gmail.com Andrew P Fink
              Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m