Re: To Change PS1 automatically



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
.



Relevant Pages

  • Re: To Change PS1 automatically
    ... waiting for input, it is just _waiting_. ... There's nothing preventing the shell to have a background thread, ... bash, ksh and zsh are able to arm alarms, but only ... That's how I implemented mouse support for zsh with gpm on ...
    (comp.unix.programmer)
  • Re: Disneys fireworks
    ... with the Air Launch Fireworks system to a non-profit org. ... aim where the shell will be launched to in the sky, ... show with increased range and accuracy, precision display ... projectile includes a shell constructed from a binding agent and an ...
    (rec.pyrotechnics)
  • Re: Disneys fireworks
    ... ability to accurately aim where the shell will be launched to in the ... Disney has taken this approach: Title is PRECISION FIREWORKS ... DISPLAY SYSTEM HAVING A DECREASED ENVIRONMENTAL IMPACT ... projectile includes a shell constructed from a binding agent and an ...
    (rec.pyrotechnics)
  • Re: Professional Display Shooters Tricks of the Trade
    ... that's one of the functions that the buckets of water provided. ... What I described in my post on display shooting is the accumulated ... shells with the timing fuse on top of the shell, ... with your flare and throw into the mortar. ...
    (rec.pyrotechnics)
  • Re: Electric matches and firing boxes...
    ... Typically you match one redundant ematch at the start of your finale ... In the world that I travel in, which is classic Italian style fireworks ... Swansea decided that their $5,000+ display would go on come rain ... display shell from the box. ...
    (rec.pyrotechnics)