* New zle_misc.c patch (fixes terminal initialization in putprompt)
@ 1996-03-01 19:07 Eskandar Ensafi
0 siblings, 0 replies; only message in thread
From: Eskandar Ensafi @ 1996-03-01 19:07 UTC (permalink / raw)
To: zsh-workers
Hello,
In order for %-sequences to be recognized in prompts (e.g., PROMPT3 in
"select" loops) and "print -P" statements, the terminal escape sequences
must be initialized in noninteractive shells. The following patch does
exactly this, on demand, when putprompt() is called.
Later,
- Eskandar
*** zle_misc.c.orig Fri Mar 1 09:58:13 1996
--- zle_misc.c Fri Mar 1 10:19:22 1996
***************
*** 742,747 ****
--- 742,750 ----
return ztrdup("");
}
+ if (!termok && (unset(INTERACTIVE)))
+ init_term();
+
bracepos = -1;
fm = fmin;
lensb = 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-03-01 19:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-01 19:07 New zle_misc.c patch (fixes terminal initialization in putprompt) Eskandar Ensafi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).