Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2016 19:38:35 +0100
From:      Sebastian Gniazdowski <>
Subject:   TERM=xterm lacking smcup and rmcup (alternate screen)
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I want to criticize an approach taken in FreeBSD regarding the
alternate screen. It's not available in newcons. One person wrote
that's because Tekken doesn't have such feature, and newcons
implements Tekken.

That's maybe fine. However, newcons doesn't have it's own termcap. It
uses TERM=xterm, which normally has rmcup and smcup. Some smart person
thus decided to remove those codes from TERM=xterm. You see what this
leads to? No alternate screen on X11.

Why doesn't newcon create it's own termcap entry? Why nobody cares
about trashed xterm screens when fullscreen applications are exiting.
In my software I've wrote a special function to handle FreeBSD nuance:

But this should be fixed, really. Newcons could ignore rmcup and
smcup. Why remove them from TERM=xterm, let newcons just ignore it.
FreeBSD could then still use TERM=xterm for its virtual terminal.

Best regards,
Sebastian Gniazdowski

Want to link to this message? Use this URL: <>