aboutsummaryrefslogtreecommitdiff
path: root/rcmain
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-02 22:03:35 +0000
committerrsc <devnull@localhost>2003-12-02 22:03:35 +0000
commit5a82f26e50fbfbb3090b4cf839decf012637a00e (patch)
tree6b261bd540a8ff0757dc1b184abe2c7c97cab830 /rcmain
parente89321a56e6d3c1559e166898510d6ddab9e6ffe (diff)
downloadplan9port-5a82f26e50fbfbb3090b4cf839decf012637a00e.tar.gz
plan9port-5a82f26e50fbfbb3090b4cf839decf012637a00e.tar.bz2
plan9port-5a82f26e50fbfbb3090b4cf839decf012637a00e.zip
Set up terminal properly for 9term.
Diffstat (limited to 'rcmain')
-rw-r--r--rcmain6
1 files changed, 5 insertions, 1 deletions
diff --git a/rcmain b/rcmain
index 1da829c9..f4213632 100644
--- a/rcmain
+++ b/rcmain
@@ -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) . $*