aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bash_include4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_include b/bash_include
index 8c64fdf..67cea7e 100644
--- a/bash_include
+++ b/bash_include
@@ -2021,8 +2021,8 @@ ulimit -S -c unlimited 2> /dev/null
[ "$interactive_shell" ] && {
if [ "$WINDOW" ] && type screen &> /dev/null; then
- if [[ "`screen --version`" == *4.01* ]]; then
- echo "Setting options for GNU screen 4.1.0"
+ if [ "`screen --version | sed 's/^Screen version 4\.\([0-9]*\).*$/\1/'`" -ge "1" ]; then
+ echo "Setting options for GNU screen >= 4.1.0"
screen -X cjkwidth off
fi
fi