From: unpingco@mpl.UCSD.EDU (Jose Unpingco)
To: schaefer@nbn.com
Cc: zsh-users@math.gatech.edu
Subject: Re: On the topic of prompts
Date: Fri, 12 Jul 1996 11:36:55 -0700 (PDT) [thread overview]
Message-ID: <9607121836.AA10161@cryptica.UCSD.EDU> (raw)
In-Reply-To: <960711160041.ZM10008@candle.brasslantern.com> from "Bart Schaefer" at Jul 11, 96 04:00:33 pm
I've thought about sticking a highlighted status line on the last line
of a vt100 or xterm which would contain handy info like PWD, but I
could never figure out how. Could you be more specific about what you
mention below? I've never programmed a terminal before and I'm not
sure what you mean by games with the "termcap sequences".
thanks
Bart Schaefer said:
>
> You can play all sorts of games with %{...%} and termcap sequences if
> your terminal can set scrolling regions and so forth. If you're using
> an xterm, you can use something like this to change the title bar:
>
> if [[ "$TERM" =3D xterm* || "$TERM" =3D vs100 || "$TERM" =3D vs100s ]]
> then
> # Set top to introduce titlebar change
> top=3D'=1B]0;'
> # Set back to end titlebar change
> back=3D'=07'
> # Create precmd() to put stuff in the title bar
> precmd() { print -nP "%{$top%m.%l:%2c - %t$back%}" }
> fi
>
--
Thank you for your time and consideration.
_ - - - _
/)- - _ _
/ |_o_/ - _
\__ - _
\ \_ - _ _ _ _ _ _ _ _ _
_
__ __ _ _ -
Jose Unpingco
ECE 0407
(619) 546-8809
next prev parent reply other threads:[~1996-07-12 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-11 6:01 zsh 3pre2: carriage return in prompt Timothy J. Luoma
1996-07-11 13:55 ` Zoltan Hidvegi
1996-07-11 16:47 ` Timothy J. Luoma
1996-07-11 17:51 ` On the topic of prompts DeWitt Clinton
1996-07-11 23:00 ` Bart Schaefer
1996-07-12 18:36 ` Jose Unpingco [this message]
1996-07-13 2:42 ` Bart Schaefer
1996-07-16 6:25 ` Nikita Borisov
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=9607121836.AA10161@cryptica.UCSD.EDU \
--to=unpingco@mpl.ucsd.edu \
--cc=schaefer@nbn.com \
--cc=zsh-users@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).