NetBSD-Bugs archive

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

Re: bin/57072: nvi error "Error: move: l(24 + 0) c(80 + 0)"



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

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/57072: nvi error "Error: move: l(24 + 0) c(80 + 0)"
Date: Sun, 6 Nov 2022 09:37:21 +0000 (UTC)

 On Fri, 4 Nov 2022, Brett Lymn wrote:
 
 > On Thu, Oct 27, 2022 at 11:14:20AM +0900, Rin Okuyama wrote:
 > >
 > > Although, the real fix should be to
 > > - fix curses bug, or
 >
 > I have committed a fix for this.  The issue does not occur for me now.
 >
 
 Curses now adds an extra blank line when printing lines > COLS and it has
 to scroll. Run the program on the source itself in an 80x25 window:
 
 ---START---
 #ifdef USE_NCURSES
 #include <ncursesw/ncurses.h>
 #else
 #include <curses.h>
 #endif
 
 int
 main(int argc, char* argv[])
 {
  	char line[BUFSIZ];
  	WINDOW* w;
  	FILE* fp;
 
  	if (argc != 2 || (fp = fopen(argv[1], "r")) == NULL)
  		return 1;
 
  	w = initscr();
  	scrollok(w, TRUE);
  	while (fgets(line, sizeof line, fp) != NULL) {
  		waddstr(w, line);
  		wrefresh(w);
  	}
  	waddstr(w, "Enter to QUIT: ");
  	getch();
  	endwin();
  	fclose(fp);
  	return 0;
 }
 
 #if 0
 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
 #endif
 ---END---
 
 -RVP
 


Home | Main Index | Thread Index | Old Index