|
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 <f18m_cpp217828@yahoo.it> 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: > > frm@ubuntu:~$ echo hello world > hello world > > frm@ubuntu:~$ Yes. This always puts the prompt at the beginning of the line, and still lets you distinguish newline-terminated output from unterminated output. paul
[Prev in Thread] | Current Thread | [Next in Thread] |