tSet up terminal properly for 9term. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 5a82f26e50fbfbb3090b4cf839decf012637a00e
parent e89321a56e6d3c1559e166898510d6ddab9e6ffe
Author: rsc 
Date:   Tue,  2 Dec 2003 22:03:35 +0000

Set up terminal properly for 9term.

Diffstat:
  M rcmain                              |       6 +++++-

1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/rcmain b/rcmain
t@@ -23,7 +23,11 @@ if(! ~ $#cflag 0){
         eval $cflag
 }
 if not if(flag i){
-        if(~ $TERM 9term && ~ $#'fn#cd' 0) fn cd { builtin cd $1 && label `{pwd} }
+        if(~ $TERM 9term){
+                stty tabs -onlcr -echo
+                if(~ $#'fn#cd' 0)
+                        fn cd { builtin cd $1 && label `{pwd} }
+        }
         if(flag l && /bin/test -r $home/lib/profile) . $home/lib/profile
         status=''
         if(! ~ $#* 0) . $*