From 2806581d10f593805eb89f9e118864463bbce215 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 15 Feb 2014 20:03:16 -0500 Subject: [PATCH] Documented SysV-like prompt width in source. --- tcshrc.prompt.defs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcshrc.prompt.defs b/tcshrc.prompt.defs index bf1dc93..5853459 100644 --- a/tcshrc.prompt.defs +++ b/tcshrc.prompt.defs @@ -51,6 +51,7 @@ switch( $CSHENV_SYSTEM ) breaksw + # SysV variants: # Linux breaks the typical behavior, and makes the 7th entry be stty case Cygwin: @@ -58,6 +59,7 @@ switch( $CSHENV_SYSTEM ) if( $?CSHENV_DEBUG ) then echo "Linux prompt width for stty blows..." endif + #Some cshes don't like the split line here! set screen_offset_count=`stty -a | head -1 | sed -e 's/;//g' | awk '{print $7}' | sed -e 's/;//g'` breaksw