I have a problem with my users' being able to correctly display man
pages... I'm using ksh and have no problems. They are all using tcsh or csh
and have problems.
For reasons of retraining, I don't want to switch nearly 300 users to ksh
(It's taken most of them a couple of years to learn how to use the setenv
command when things go wrong... and some of them are still trying to login
to the Sun I just moved them from ("What's a telnet program? I just have an
icon on my desk..."))
What is the problem? All escape characters to enable display of bold
(overstrike?) on the man pages are echoed to the screen as ESC (in inverse
video) followed by the control characters...
I have to assume that it is in the stty settings - I can login as myself
using ksh and the man pages are fine. When I logout and log back in using a
test account and tcsh, then the man pages don't display correctly. I've
included here the stty settings and the .login & .cshrc files.
Any suggests as to what would be causing this are welcome. I've spent some
time experimenting with the stty settings and don't see what to change.
(Oh, Tru64 4.0F. Various telnet programs provide the same results,
including the Windows telnet, the Novell LanWorkPlacePro telnet, and the
DataFellows ssh2 client).
The stty settings for csh/tcsh are:
xxxx.unmc.edu 39 /usr/users/class/studen35 > stty -a
#2 disc;speed 9600 baud; 40 rows; 112 columns
erase = ^H; werase = ^W; kill = ^U; intr = ^C; quit = ^\; susp = ^Z
dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; stop = ^S
start = ^Q; lnext = ^V; discard = ^O; reprint = ^R; status = <undef>
time = 0; min = 1
-parenb -parodd cs8 -cstopb hupcl cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh -mdmbuf -nohang
-tostop echoctl -echoprt echoke -altwerase iexten -nokerninfo
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tabs -onoeot
The stty setings for ksh are:
xxxx.unmc.edu> stty -a
#2 disc;speed 9600 baud; 45 rows; 112 columns
erase = ^?; werase = ^W; kill = ^U; intr = ^C; quit = ^\; susp = ^Z
dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; stop = ^S
start = ^Q; lnext = ^V; discard = ^O; reprint = ^R; status = <undef>
time = 0; min = 1
-parenb -parodd cs8 -cstopb hupcl cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh -mdmbuf -nohang
-tostop echoctl -echoprt echoke -altwerase iexten -nokerninfo
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tabs -onoeot
.login:
xxxx.unmc.edu 40 /usr/users/class/studen35 > cat .login|grep -v "#"
if ($?path) then
set path=($HOME/bin $path)
else
set path=($HOME/bin /usr/bin .)
endif
if ( ! ${?DT} ) then
stty dec new
tset -I -Q
endif
stty erase '^h' kill '^u' intr '^c'
umask 027
source /etc/login.sys
set prompt="`hostname` \! $cwd > "
set mail=/usr/spool/mail/$USER
biff y
set noclobber
/etc/login.sys:
xxxx.unmc.edu 41 /usr/users/class/studen35 > cat /etc/login.sys | grep -v "#"
setenv TERM `qterm`
setenv DISPLAY `who -Mm |grep $USER |awk '{print $6}'|tr -d '[()]'`:0.0
setenv PAGER less
echo ""
echo
sleep 5
source /gcg/gcgstartup
gcg
echo "GCG Version 10 is now the default"
and Finally, the .cshrc files: (I'm aware of the duplicate aliases.)
xxxx.unmc.edu 42 /usr/users/class/studen35 > cat .cshrc | grep -v "#"
setenv MAIL /usr/spool/mail/$USER
source /etc/cshrc.sys
alias pwd 'echo $cwd'
if ($?USER == 0 || $?prompt == 0) exit
set history=40
set savehist=40
alias a alias
alias cd 'set owd=$cwd;chdir \!*;set prompt="`hostname` $cwd> "'
alias dir ls -l
alias exit logout
alias h 'history \!* | head -39 | more'
alias ls ls -F
alias logoff logout
alias
clear
alias rm rm -i
alias title 'echo -n "\!*]L\!*'
set prompt = "\! $cwd> "
/etc/cshrc.sys:
xxxx.unmc.edu 43 /usr/users/class/studen35 > cat /etc/cshrc.sys | grep -v "#"
set path = ( /usr/sbin /usr/ucb /usr/bin /usr/etc )
setenv MANPATH /usr/man
setenv LD_LIBRARY_PATH /usr/lib
set path = ( /usr/lang $path )
set path = ( /usr/local/bin $path /usr/bin/X11)
setenv MANPATH "/usr/local/man:${MANPATH}"
set path = (. $path /usr/local/entrez )
setenv NCBI /usr/local/entrez
set path = ($path /usr/local/bin/Genefinder/fgenes)
setenv gf_data /usr/local/bin/Genefinder/fgenes
if ( $?USER == 0 || $?prompt == 0 ) then
exit
endif
set XFILESEARCHPATH = (/usr/lib/C11)
set GS_LIB = (/usr/local/ghostscript/lib)
set history=40
set savehist=40
set prompt="`hostname`{`whoami`}\!: "
limit coredumpsize 0
setenv EDITOR pico
setenv VISUAL pico
set history=40
set savehist=40
alias a alias
alias bye logout
alias cd 'set owd=$cwd;chdir \!*;set prompt="`hostname` $cwd> "'
alias dir ls -l
alias emacs emacs -nw
alias exit logout
alias h 'history \!* | head -39 | more'
alias logoff logout
alias
clear
alias rm rm -i
alias title 'echo -n "\!*]L\!*'
alias wpi seqlab
alias xemacs '\emacs -fn 7x13 &'
setenv MOZILLA_HOME /usr/local/bin/netscape407
if ( $TERM == "dec-vt220" ) then
setenv TERM vt220
endif
if ( $TERM == "dec-vt320" ) then
setenv TERM vt220
endif
Chad Price
Systems Manager, Genetic Sequence Analysis Facility
University of Nebraska Medical Center
986495 Nebraska Medical Center
Omaha, NE 68506-6495
cprice_at_molbio.unmc.edu
(402) 559-9527
(402) 559-4077 (FAX)
Received on Thu Feb 17 2000 - 17:38:49 NZDT