On Mon, Jun 18 2018, "Todd C. Miller" <todd.mil...@sudo.ws> wrote:
> On Sun, 17 Jun 2018 15:52:34 -0600, "Todd C. Miller" wrote:
>
>> On Sun, 17 Jun 2018 17:29:31 +0200, Mark Kettenis wrote:
>>
>> > If folks indeed think that this is a must-have feature, this is
>> > certainly a better approach.  I wonder though if the setupterm() call
>> > should happen earlier when interactive mode is initialized?
>>
>> This turns out to be simpler than expected.  Now whenever TERM is
>> set (including at startup) it will call setupterm().
>
> Hopefully final diff that better handles unknown term types.  Now
> if you set TERM=gobbledegook the old cur_term will be invalidated
> and clear-screen will not try to the escape sequence for the old
> terminal.
>
> I think this is good enough to commit.

Since this went in, I'm using it on my machines instead of a bind -m hack.

Can't we make ^L=clear-screen the default behavior?  I don't see
discussions about that.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to