guile-user
[Top][All Lists]
Advanced

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

Re: Readline behavior with colored custom prompt


From: Mike Gran
Subject: Re: Readline behavior with colored custom prompt
Date: Thu, 25 Feb 2016 18:05:03 +0000 (UTC)



On Thursday, February 25, 2016 9:21 AM, Matthew Keeter <address@hidden> wrote:

>
>Run this and you’ll get a Guile shell.  Into that shell, type
>
>    '(1 2 3 4 5 6 7 8 9 10)
>
>The final parenthesis will highlight a character midway through the string
>(instead of the first parenthesis).
>
>The same issues happen if you try to scroll through history: lines end up
>overlapping in strange ways.
>
>Removing the ANSI codes from custom-prompt resolves the issue, but I’d really
>like to have a colored prompt and correct readline behavior.
>
>Does anyone have any ideas?

The conflict is likely between your codes and the bounce-parens functionality
of the readline prompt.
 
(readline-set! bounce-parens 0)  should disable that functionality and make the
colored prompt work.
 
To get your escape sequences and bounce-parens working would probably require
more thinking...
 
-Mike


reply via email to

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