Hi,
I am running into an issue while trying the following program with
readline 7.0.003-1:
#include <stdio.h>
#include <readline/readline.h>
int main(int argc, char **argv) {
char prompt[] = "\x1B[36;1m> \x1B[0m";
printf("prompt length: %i\n", sizeof prompt);
while (readline(prompt)) { }
return 0;
}
If I type a long word and then try to delete it with ctrl-w like this:
> aaaaaaaaaaaaaaaaaaaaaaa^W
The result would be (being unable to clean the rest):
> aaaaaaaaaaa
Note that this have a length of 13 characters, the same size of PROMPT
(without \0). The actual content of the returned buffer is just an empty
string.
Thanks
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline