This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH 2/2] Cygwin: pty: Disable clear screen on new pty if TERM=dumb or emacs*.
On Wed, 4 Sep 2019 12:47:38 +0200
Corinna Vinschen wrote:
> Why do you check the TERMs again here? After all, need_clear_screen
> is only true if one of these terms are used.
Because, emacs seems to set environment TERM after fixup_after_exec()
is called. At the first check, TERM has the value of the terminal
in which emacs is executed. The first check is just in case.
--
Takashi Yano <takashi.yano@nifty.ne.jp>