Re: To Change PS1 automatically
- From: Keith Willis <me@xxxxxxxxxxx>
- Date: Fri, 02 Nov 2007 09:31:09 +0000
On Fri, 02 Nov 2007 09:13:28 GMT, Stephane CHAZELAS
<this.address@xxxxxxxxxx> wrote:
2007-11-01, 16:03(+00), Doug McIntyre:
[...]
None of the respondants get what you are asking. What you are asking
for can't be done.
You have to think of the Unix CLI in terms of that it was designed for TTY's.
Print a line on the paper, read a line the user types in.
It doesn't have provisions for updating the data display continously.
Not that some new program couldn't be written to do that, but in general,
the shells are still stuck in the day and age of TTYs. Hard copy print.
I can't see why not. Fish does syntax higlighting on the fly,
zsh provides with a completion system where completions are
being displayed in colors (à la GNU ls) and selectable with the
cursor keys. A curses module for zsh is currently being
developped which promisses some nice future zsh features.
Most modern terminal emulators have enhanced capabilities
including a wide range of colors (most support 256 now), mouse
support, font switching... A shell (when interactive) being a
terminal application like any other, I can't see why it couldn't
use those capabilities.
The fact that the shell is capable of displaying colours and so on is
irrelevant. The point Doug was making was that when the shell is
waiting for input, it is just _waiting_. There is no 'background'
thread running which can update the display while the main thread is
waiting.
--
PGP key ID 0xEB7180EC
.
- Follow-Ups:
- Re: To Change PS1 automatically
- From: Stephane CHAZELAS
- Re: To Change PS1 automatically
- References:
- Re: To Change PS1 automatically
- From: meenakshi
- Re: To Change PS1 automatically
- From: Logan Shaw
- Re: To Change PS1 automatically
- From: Doug McIntyre
- Re: To Change PS1 automatically
- From: Stephane CHAZELAS
- Re: To Change PS1 automatically
- Prev by Date: Re: To Change PS1 automatically
- Next by Date: Re: Why localize structures in this case.
- Previous by thread: Re: To Change PS1 automatically
- Next by thread: Re: To Change PS1 automatically
- Index(es):
Relevant Pages
|