[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: still having cursor problems on MacOSX Terminal and iTerm
From: |
Chet Ramey |
Subject: |
Re: still having cursor problems on MacOSX Terminal and iTerm |
Date: |
Fri, 22 Dec 2006 18:14:43 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
sci-fi@hush.ai wrote:
> I have it set thusly now:
> PS1='\[\e[0;7m\]\h[\w]\n\u\$\[\e[0m\] '
> . ^^ two-line prompt
> Is \n considered a printing character or not?
Yes. It causes the visual display to change: the cursor moves to the
next line. Readline takes the newline into account when performing its
redisplay.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/