bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shouldn't prompt printing be smarter?


From: Paul Jarc
Subject: Re: shouldn't prompt printing be smarter?
Date: Sun, 01 Apr 2007 17:29:07 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Francesco Montorsi <address@hidden> wrote:
> why would you ever want to have the prompt printed at non-zero column of 
> the terminal?

One possible reason: so you can know whether the previous command
ended its output with a newline.  Otherwise the output becomes
slightly ambiguous.

>> If you want the shell to always add an extra newline then you can
>> always add one to your PS1 setting.
>
> unfortunately in that way I suppose the terminal would then show:
>
> address@hidden:~$ echo hello world
> hello world
>
> address@hidden:~$

Yes.  This always puts the prompt at the beginning of the line, and
still lets you distinguish newline-terminated output from unterminated
output.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]