tcsh, funkar inget vidare med 8bitars teckentabeller?
Hej!
Jag har lite probelm med tcsh och 8bitars tecken.
Jag har provat allt nästan för att få det att funka.
Allt funkar perfekt i andra shell såsom bash, zsh.
stty pass8 funkar inte alls.
Det spelar ingen roll om man kör TERM som rxvt, linux.
när man kollar lite saker med "set" så ser man i versionraden att
tcsh är kompilerat med 8bits chars (så det är mig det är fel på?)
(Detta kommer från tcsh FAQ:en)
1. Why is the meta key broken in tcsh-5.20 and up?
On some machines the tty is not set up to pass 8 bit characters by
default.
Tcsh 5.19 used to try to determine if pass8 should be set by looking at
the terminal's meta key. Unfortunately there is no good way of
determining
if the terminal can really pass 8 characters or not. Consider if you
are
logged in through a modem line with 7 bits and parity and your terminal
has a meta key. Then tcsh 5.19 would set wrongly set pass8.
If you did like the previous behavior you can add in /etc/csh.login, or
in .login:
if ( $?tcsh && $?prompt ) then
if ( "`echotc meta`" == "yes" ) then
stty pass8
endif
endif
If you don't have pass8, maybe something like
stty -parity -evenp -oddp cs8 -istrip (rs6000)
or
stty -parenb -istrip cs8
would work..
Vore tacksam för hjälp
Hälsningar Fredrik Bjurenfors
Reply to: