On 2015-11-27 09:17 +0100, Petter Reinholdtsen wrote: > [Kacper Wysocki] >> I've inserted a call to clear the screen as of today's git. This will make >> its way to debian soon. > > I do not see this issue with cpm version 0.32-1. Should this bug be closed?
No. To clear the screen, cpm relies on the "clear" command from ncurses-bin and invokes it incorrectly. Here is what it does: ,---- | /* really the least messy way to clear the screen. | * If you don't believe me, check clear.c from ncurses */ | #define clear_screen() do { if(!fork()){exit(execl("/usr/bin/clear", "clear")); }else{int s; wait(&s);}}while(0) `---- Since ncurses version 6.0+20170827-1, /usr/bin/clear no longer ignores arguments (see #371855), and displays an error message when invoked the way cpm does it. ,---- | $ /usr/bin/clear clear | Usage: clear [options] | | Options: | -T TERM use this instead of $TERM | -V print curses-version | -x do not try to clear scrollback `---- Cheers, Sven