|
From: | dearvoid |
Subject: | Re: still having cursor problems on MacOSX Terminal and iTerm |
Date: | Fri, 22 Dec 2006 22:40:21 +0800 |
On 12/22/06, sci-fi@hush.ai <sci-fi@hush.ai> wrote:
On 2006-12-22 04:34:22 -0600, dearvoid <dearvoid@gmail.com> said: I will need to "close" each prompt line with an end-hilight code, do the \n, then begin the next line with a start-hilight code, such as: PS1='\[\e[0;7m\]\h[\w]\[\e[0m\]\n\[\e[0;7m\]\u\$\[\e[0m\] ' . ^^^^^^^^^ ^^^^^^^^^^^
But do I put \[ \] around a \n (or include it there-in) ? Bash knows exactly what \n means in PS1 and can handle it well so we need not put \[ \] around \n . BTW: I also use MacOSX on my iBook G4.
[Prev in Thread] | Current Thread | [Next in Thread] |