You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/11/08 13:24:18 UTC

[groovy] branch GROOVY-6453 created (now adcaef6)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch GROOVY-6453
in repository https://gitbox.apache.org/repos/asf/groovy.git.


      at adcaef6  GROOVY-6453: groovysh in Windows 7/8/10 doesn't support arrow keys and Del

This branch includes the following new commits:

     new adcaef6  GROOVY-6453: groovysh in Windows 7/8/10 doesn't support arrow keys and Del

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[groovy] 01/01: GROOVY-6453: groovysh in Windows 7/8/10 doesn't support arrow keys and Del

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-6453
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit adcaef676bbace122f80683f499f99df6839efa4
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Nov 8 21:23:54 2020 +0800

    GROOVY-6453: groovysh in Windows 7/8/10 doesn't support arrow keys and Del
---
 src/bin/startGroovy.bat | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/startGroovy.bat b/src/bin/startGroovy.bat
index c07012b..ba7e128 100644
--- a/src/bin/startGroovy.bat
+++ b/src/bin/startGroovy.bat
@@ -294,6 +294,9 @@ if "%JAVA_VERSION%" gtr "1.8.0" if "%GROOVY_TURN_OFF_JAVA_WARNINGS%" == "true"
 
 if exist "%USERPROFILE%/.groovy/postinit.bat" call "%USERPROFILE%/.groovy/postinit.bat"
 
+@rem GROOVY-6453: groovysh in Windows 7/8/10 doesn't support arrow keys and Del
+set JAVA_OPTS=%JAVA_OPTS% -Djline.terminal=none
+
 @rem Execute Groovy
 "%JAVA_EXE%" %GROOVY_OPTS% %JAVA_OPTS% -classpath "%STARTER_CLASSPATH%" %STARTER_MAIN_CLASS% --main %CLASS% --conf "%STARTER_CONF%" --classpath "%CP%" %REPLACE_PREVIEW% %CMD_LINE_ARGS%