Set up terminal properly for 9term.

This commit is contained in:
rsc 2003-12-02 22:03:35 +00:00
parent e89321a56e
commit 5a82f26e50

6
rcmain
View file

@ -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) . $*