From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: Readline behavior with colored custom prompt Date: Thu, 25 Feb 2016 18:05:03 +0000 (UTC) Message-ID: <1474022160.2484505.1456423503453.JavaMail.yahoo@mail.yahoo.com> References: Reply-To: Mike Gran NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456423553 9116 80.91.229.3 (25 Feb 2016 18:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 18:05:53 +0000 (UTC) To: Matthew Keeter , "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Feb 25 19:05:42 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aZ0IC-0005ZR-CP for guile-user@m.gmane.org; Thu, 25 Feb 2016 19:05:36 +0100 Original-Received: from localhost ([::1]:45058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ0IB-0007rV-Qt for guile-user@m.gmane.org; Thu, 25 Feb 2016 13:05:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ0Hn-0007bi-0y for guile-user@gnu.org; Thu, 25 Feb 2016 13:05:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ0Hi-0008WC-OZ for guile-user@gnu.org; Thu, 25 Feb 2016 13:05:10 -0500 Original-Received: from nm24-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.246]:52781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ0Hi-0008UR-Gg for guile-user@gnu.org; Thu, 25 Feb 2016 13:05:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1456423504; bh=VBBEThGeRJnB6BuYJjgU67S4XEj4gxzVMf5ubmu6h7M=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=Qw74wxppNH1Vh4WOh4ySnpXbxYJxpmVfVliY6gpFhk0hmQm+LbDF7n4JKnTGBL3Qt7G60MdX4I7W/02azwH0lmjhaVocnbO3gb2iy8xcYOqNMSQ+XHMUBHwtuSH+EV/M7yNHubsiLIveCeiHhoSRpmEbqc1t6iYivNfWnLn2q+ubCE0QynAu7gwslJPwH8xZRPgzI+jRU7lQSY6ykeu6aXi7r4K5dfArslYAN3hHlOmglMkCzM6xFM7qHk1hhZFuyVqiPy+6imEZF5bfDF05EYhGoODiUvqq2P4VRay8fRZS58+hQR2hxdg/lEplTm6pDJK4zulcBviU953pT1JilA== Original-Received: from [98.138.100.118] by nm24.bullet.mail.ne1.yahoo.com with NNFMP; 25 Feb 2016 18:05:04 -0000 Original-Received: from [98.138.89.168] by tm109.bullet.mail.ne1.yahoo.com with NNFMP; 25 Feb 2016 18:05:04 -0000 Original-Received: from [127.0.0.1] by omp1024.mail.ne1.yahoo.com with NNFMP; 25 Feb 2016 18:05:04 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 274890.320.bm@omp1024.mail.ne1.yahoo.com X-YMail-OSG: YWpMHNkVM1kOMnwNcdREWjcS6lN8YnSMqG7yArvX1xfJ21Wy8Yrzb1I7vZwUfax uOLfhVwo0FDMAw9DipRUYQdw8tTEDBBaZ_ml7u8Cqc6Y007WaMRJYJRA_9tK9IOlEimH695sAS_Z oz2B6Zd0Rxgk6znCLV6LDVz0x76opFAPRGILeR6e7wYuRNLsrEpJR8J8gJgsgI3IVL2LHlSU8I6i 71BfM3Yu2AqOenYEujtKlNVuBc2jp8EmaJHoCpBeX1CdWpZlzr.BBOuN6RY.4OcgJ.wM.2oS1IRF c8.Sx7qxaW2KC0DZbS58SlFJyvi4lbBkp9U72djdLPdfWXCg6k3o.TT32v4oPCCeMUYSKiOJZ8yg 9kMtUgFRd9kIOJn2pBo36XXhs5kn1Kmz8KvG2MO6ojGRV.mBqcUNFUqey9P0XikjM7y6xlYeMO0I _gWsKSFdWES80LXFWcL6ZBYF2k1haszgLqqcBKOYLb6kfmjGgzf.Z3vXRQ1513Z0lk1nYAS4AzAF _pllkC45YJDhrKX0ky1jr9D3dy7XK Original-Received: by 98.138.105.241; Thu, 25 Feb 2016 18:05:03 +0000 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 98.138.91.246 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12447 Archived-At: On Thursday, February 25, 2016 9:21 AM, Matthew Keeter wrote: > >Run this and you=E2=80=99ll 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=E2=80= =99d 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 functionali= ty of the readline prompt. =20 (readline-set! bounce-parens 0) should disable that functionality and make= the colored prompt work. =20 To get your escape sequences and bounce-parens working would probably requi= re more thinking... =20 -Mike