zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Timothy J Luoma <luomat+zsh+users@luomat.peak.org>
Cc: zsh-users@math.gatech.edu
Subject: Re: zsh script wipes out my PROMPT and RPROMPT
Date: Sat, 24 Jan 1998 14:52:41 -0800	[thread overview]
Message-ID: <980124145241.ZM23613@candle.brasslantern.com> (raw)
In-Reply-To: <199801242229.RAA27851@luomat.peak.org>

On Jan 24,  5:29pm, Timothy J Luoma wrote:
} Subject: Re: zsh script wipes out my PROMPT and RPROMPT
}
} > LINES=`wc -l $FILE | awk '{print $1}'`
} 
} AH... I used another variable instead.
} 
} The behavior seems to have stopped.... I'm not sure why.... but since it  
} shouldn't have happened anyway....

Could be that the zsh executing the script was improperly resetting the
tty driver's idea of the terminal dimensions when it saw the assignment
to LINES.  The parent zsh would then see the new tty configuration when
the script exited, and reset its own LINES.  If LINES became sufficiently
small, zle might decide that it couldn't draw a prompt, or some such.

There were a number of changes to zsh's tty-size handling in 3.0.5 that
I still think were bad ideas; in the face of too little information, I'd
rather that the shell did nothing, rather than reconfigure the tty based
on partial data that might be wrong.  However, I can't definitely point
to any particular bug (not even this one) that is directly attributable
to the new code.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


      reply	other threads:[~1998-01-25 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-24 20:23 Timothy J Luoma
1998-01-24 22:13 ` Bart Schaefer
1998-01-24 22:29   ` Timothy J Luoma
1998-01-24 22:52     ` Bart Schaefer [this message]

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

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

  git send-email \
    --in-reply-to=980124145241.ZM23613@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=luomat+zsh+users@luomat.peak.org \
    --cc=zsh-users@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).