bug-bash
[Top][All Lists]
Advanced

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

Re: Console Character Limits


From: Jim Gifford
Subject: Re: Console Character Limits
Date: Tue, 17 Aug 2004 12:14:55 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Paul Jarc wrote:
Jim Gifford <address@hidden> wrote:

I have a unique issue, under bash 2.05b and readline 4.3 it works fine, but
under bash 3.00 and readline 5.0, my command line shows only 33 characters
then wraps to the next line. Any ideas or suggestions.


This patch from Chet hasn't made it to the FTP site yet, but it worked
for me.  It fixes that problem for multiline prompts.

diff -ur readline-5.0-orig/display.c readline-5.0/display.c
--- readline-5.0-orig/display.c 2004-05-27 22:57:29.000000000 -0400
+++ readline-5.0/display.c      2004-07-28 19:32:42.110683600 -0400
@@ -351,14 +351,14 @@
       local_prompt = expand_prompt (p, &prompt_visible_length,
                                       &prompt_last_invisible,
                                       (int *)NULL,
-                                      (int *)NULL);
+                                      &prompt_physical_chars);
       c = *t; *t = '\0';
       /* The portion of the prompt string up to and including the
         final newline is now null-terminated. */
       local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
                                                   (int *)NULL,
                                                   
&prompt_invis_chars_first_line,
-                                                  &prompt_physical_chars);
+                                                  (int *)NULL);
       *t = c;
       return (prompt_prefix_length);
     }


paul


Applied that patch, still happens, but not at 33 characters, it seems to be random now.





reply via email to

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