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? Probably > best to link against libterminfo to indicate that we don't really want > full-blown curses.
You really need to call setupterm() any time TERM is changed, not just when the shell is started. We could do that but I was trying to keep things simple for now. There is no longer a separate libterminfo, it is all just libcurses. Since ksh is statically linked we only pull in the bits we need anyway. > The man page needs to be adjusted now that you no longer call clear(1). I will do that if we agree this is the way forward. - todd
