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/12/29 10:59:12 UTC

[groovy] 01/01: GROOVY-9875: backspace does not work in the SecureCRT connecting Linux

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

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

commit 0a749bfd30638e1485bcb18fc302e38de1664353
Author: Daniel Sun <su...@apache.org>
AuthorDate: Tue Dec 29 18:58:56 2020 +0800

    GROOVY-9875: backspace does not work in the SecureCRT connecting Linux
---
 src/bin/startGroovy | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/startGroovy b/src/bin/startGroovy
index a232f1f..ee4b263 100644
--- a/src/bin/startGroovy
+++ b/src/bin/startGroovy
@@ -61,6 +61,7 @@ cygwin=false
 msys=false
 darwin=false
 nonstop=false
+linux=false
 case "$(uname)" in
   CYGWIN* )
     cygwin=true
@@ -74,6 +75,9 @@ case "$(uname)" in
   NONSTOP* )
     nonstop=true
     ;;
+  Linux* )
+    linux=true
+    ;;
 esac
 
 if [ "$1" = "-cp" ] || [ "$1" = "-classpath" ] || [ "$1" = "--classpath" ] ; then
@@ -110,6 +114,11 @@ if [ -z "$JAVA_HOME" ] ; then
     export JAVA_HOME
 fi
 
+# GROOVY-9875: backspace does not work in the SecureCRT connecting Linux
+if $linux ; then
+    export TERM=linux
+fi
+
 # For Cygwin, ensure paths are in UNIX format before anything is touched.
 if $cygwin ; then
     [ -n "$GROOVY_HOME" ] && GROOVY_HOME="$(cygpath --unix "$GROOVY_HOME")"