Xref: utzoo comp.unix.shell:485 comp.unix.questions:26040 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!bu.edu!nntp-read!composer From: composer@chem.bu.edu (Jeff Kellem) Newsgroups: comp.unix.shell,comp.unix.questions Subject: tcsh $sl and $el variables (was Re: Title bar flicker fix for XTerm..) Summary: fix to make $sl/$el variables work in tcsh 5.18 Message-ID: Date: 8 Oct 90 04:02:28 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> <1990Oct3.011511.2263@mlb.semi.harris.com> <1990Oct2.232740@Pkg.Mcc.COM> Sender: news@bu.edu.bu.edu Reply-To: composer@chem.bu.edu Followup-To: comp.unix.shell Organization: Boston University Chemistry Department Lines: 55 In-reply-to: rhoward@msd.gatech.edu's message of 3 Oct 90 20:02:31 GMT In article rhoward@msd.gatech.edu (Robert L. Howard) writes: > Date: 3 Oct 90 20:02:31 GMT > > However the tcsh feature, $sl and $el (for status lines), is not set > by tcsh on my system. > > Sun Sparc > SunOS 4.1 > tcsh version tcsh 5.19 (Cornell) 9/26/90 Patch level 1 > Running xterm under > X11r4 (PL 18). > > When tcsh starts it sets term, TERM, TERMCAP and a lot of others but > sl and el are left blank. Am I doing something wrong? (The value > of TERMCAP shows that the xterm definition contains strings for ts and > fs.) > > Has anyone had success using this under tcsh? Back in March, I sent a patch to Paul Placeway that would set the sl and el variable properly. There was a mistake in the source; tcsh was looking up termcap capabilities named sl and el, instead of ts and fs. Oops... The fix is included below. This was made from tcsh 5.18 (BBN) 2/20/90 pl 0. Enjoy... -jeff Jeff Kellem Internet: composer@chem.bu.edu ===CUT HERE===diff -c ed.screen.c{-orig,}=== *** ed.screen.c-orig Tue Feb 20 14:41:09 1990 --- ed.screen.c Wed Mar 21 00:11:47 1990 *************** *** 609,616 **** so = Mytgetstr("so", &area); /* inverse video on */ se = Mytgetstr("se", &area); /* inverse video off */ ! sl = Mytgetstr("sl", &area); ! el = Mytgetstr("el", &area); set("el",el); /* So it can be used in cwdcmd alias */ set("sl",sl); --- 609,616 ---- so = Mytgetstr("so", &area); /* inverse video on */ se = Mytgetstr("se", &area); /* inverse video off */ ! sl = Mytgetstr("ts", &area); ! el = Mytgetstr("fs", &area); set("el",el); /* So it can be used in cwdcmd alias */ set("sl",sl);