Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: TERM problem under OSF



As it's generally necessary to set both TERM and one of TERM(CAP|INFO),
initializing the terminal each time any one of those three changed would
be a waste of effort as often as not (because it would immediately be
initialized again when the other parameter changed).

However, we should at least document that assigning to TERM has this
effect, so that people would know that they need to reset it after they
change the others.

Index: Doc/Zsh/params.yo
===================================================================
diff -c -r1.6 params.yo
--- Doc/Zsh/params.yo	2001/07/10 09:05:18	1.6
+++ Doc/Zsh/params.yo	2001/09/24 15:46:43
@@ -993,7 +993,12 @@
 )
 vindex(TERM)
 item(tt(TERM) <S>)(
-The type of terminal in use.  This is used when looking up termcap sequences.
+The type of terminal in use.  This is used when looking up termcap
+sequences.  An assignment to tt(TERM) causes zsh to re-initialize the
+terminal, even if the value does not change (e.g., `tt(TERM=$TERM)').  It
+is necessary to make such an assignment upon any change to the terminal
+definition database or terminal type in order for the new settings to
+take effect.
 )
 vindex(TIMEFMT)
 item(tt(TIMEFMT))(

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author