Re: subshell prompt fix
- From: Leonard den Ottolander <leonard den ottolander nl>
- To: MC Devel <mc-devel gnome org>
- Subject: Re: subshell prompt fix
- Date: Tue, 23 Nov 2004 13:33:07 +0100
On Thu, 2004-11-18 at 11:16, Jindrich Novy wrote:
> This version of the patches is #ifdef'd only for linux since it's tested
> there.
Not necessary. I think the fact pchel couldn't reproduce it is because
he uses the wrong terminal definition on his remote connection.
But it appears prompt_lastsize gets set in the wrong place, so the patch
doesn't work. The prompt line doesn't get cleared.
Attached patch removes the #ifdef which is most likely *not* necessary.
Stole the %c with ' ', and I clear the whole line. See attached patch.
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
--- src/main.c.000 2004-10-23 13:44:01.000000000 +0200
+++ src/main.c 2004-11-20 17:59:07.000000000 +0100
@@ -434,7 +434,8 @@ void
do_update_prompt (void)
{
if (update_prompt) {
- printf ("%s", subshell_prompt);
+ /* Using 256 as a cap for now. Should be set to something like "MAX_COL". */
+ printf ("\r%*c\r%s", COLS > 256 ? 256 : COLS, ' ', subshell_prompt);
fflush (stdout);
update_prompt = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]