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



The following reply was made to PR lib/58282; it has been noted by GNATS.

From: Brett Lymn <blymn%internode.on.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
        Andreas Gustafsson <gson%gson.org@localhost>
Subject: Re: lib/58282: Sysinst terminal output size increased because curses
Date: Fri, 19 Jul 2024 16:47:35 +0930

 --oTccp8BTmLkEdG++
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 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"
 
 --oTccp8BTmLkEdG++
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="pr-58282.c"
 
 #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();
 }
 
 
 --oTccp8BTmLkEdG++--
 


Home | Main Index | Thread Index | Old Index