From: Eskandar Ensafi <esky@CS.UCLA.EDU>
To: zsh-workers@math.gatech.edu
Subject: New zle_misc.c patch (fixes terminal initialization in putprompt)
Date: Fri, 01 Mar 1996 11:07:00 -0800 [thread overview]
Message-ID: <9603011907.AA00385@marathon.cs.ucla.edu> (raw)
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;
reply other threads:[~1996-03-01 19:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9603011907.AA00385@marathon.cs.ucla.edu \
--to=esky@cs.ucla.edu \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).