On 8/7/15 3:21 PM, Nellis, Kenneth wrote:
>> Since you're adding the non-visible characters to the prompt, you can
>> try bracketing them with \001 and \002, but you have to do that yourself.
>>
> Hey, that works! Thanx! Didn't see it in the documentation. My bad?
It's in the readline documentation. The \[ and \] prompt string escapes
are translated into RL_PROMPT_START_IGNORE (\001) and RL_PROMPT_END_IGNORE
(\002) as part of prompt expansion.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/