NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/58282: Sysinst terminal output size increased because curses



On Fri, Jul 12, 2024 at 08:25:01AM +0000, Andreas Gustafsson wrote:
>  
>  Here's a simple way to reproduce the issue on an existing NetBSD
>  system without actually performing a new install:
>  
>    # script log
>    # TERM=wsvt25 sysinst
>    (choose a language and then exit sysinst without installing)
>    # exit
>    # od -c log | more
>    (look for long stretches of spaces in the output)
>  

This seems to be something to do with how sysinst is initialising the
screen that is triggering this behaviour.  Doing a simple start_color
results in the correct erase line being emitted for all the terminal
types I tried.  The attached sample C demonstrates the incorrect
behaviour.

I am still investigating.

-- 
Brett Lymn
--
Sent from my NetBSD device.

"We are were wolves",
"You mean werewolves?",
"No we were wolves, now we are something else entirely",
"Oh"
#include <curses.h>
int main() {
  WINDOW *mainwin;

  initscr();
  start_color();
  mainwin = newwin(getmaxy(stdscr) - 2, getmaxx(stdscr) - 2, 1, 1);
  wbkgd(stdscr, COLOR_PAIR(1));
  wbkgd(mainwin, COLOR_PAIR(1));
  wattrset(stdscr, COLOR_PAIR(1));
  wattrset(mainwin, COLOR_PAIR(1));
  touchwin(stdscr);
  touchwin(mainwin);
  wrefresh(stdscr);
  wrefresh(mainwin);
  endwin();
}



Home | Main Index | Thread Index | Old Index