unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Matthew Keeter <matt.j.keeter@gmail.com>,
	 "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Readline behavior with colored custom prompt
Date: Thu, 25 Feb 2016 18:05:03 +0000 (UTC)	[thread overview]
Message-ID: <1474022160.2484505.1456423503453.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <ABCC8C42-9759-4B71-9906-6DF6BB0A3C3C@gmail.com>




On Thursday, February 25, 2016 9:21 AM, Matthew Keeter <matt.j.keeter@gmail.com> 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	other threads:[~2016-02-25 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-25 17:20 Readline behavior with colored custom prompt Matthew Keeter
2016-02-25 18:05 ` Mike Gran [this message]
2016-02-25 18:53   ` Matthew Keeter
2016-02-25 22:09     ` Matthew Keeter
2016-02-26  5:09 ` Nala Ginrut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474022160.2484505.1456423503453.JavaMail.yahoo@mail.yahoo.com \
    --to=spk121@yahoo.com \
    --cc=guile-user@gnu.org \
    --cc=matt.j.keeter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).