From owner-freebsd-bugs Sun Sep 26 11:10:10 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A55E15339 for ; Sun, 26 Sep 1999 11:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA01072; Sun, 26 Sep 1999 11:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (Postfix) with ESMTP id E69C315339 for ; Sun, 26 Sep 1999 05:02:03 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id OAA02579 for ; Sun, 26 Sep 1999 14:02:02 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m11VD0D-002ZjZC; Sun, 26 Sep 99 13:02 MET Received: from bert.kts.org([194.55.156.2]) (2829 bytes) by ernie.kts.org via sendmail with P:smtp/R:smart_host/T:uux (sender: ) id for ; Sun, 26 Sep 1999 13:38:40 +0200 (CEST) (Smail-3.2.0.103 1998-Oct-9 #5 built 1999-Apr-19) Received: from localhost (2331 bytes) by bert.kts.org via sendmail with P:stdio/R:smart_host/T:smtp (sender: ) (ident using unix) id for ; Sun, 26 Sep 1999 13:44:26 +0200 (CEST) (Smail-3.2.0.103 1998-Oct-9 #4 built 1998-Dec-26) Message-Id: Date: Sun, 26 Sep 1999 13:44:26 +0200 (CEST) From: hm@kts.org Reply-To: hm@kts.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/13978: (n)curses bug in FreeBSD-current Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13978 >Category: misc >Synopsis: a write to last column bug appears since ncurses conversion >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 26 11:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Hellmuth Michaelis >Release: FreeBSD 4.0-CURRENT i386 >Organization: Kitchen Table Systems >Environment: FreeBSD ernie.kts.org 3.2-STABLE FreeBSD 3.2-STABLE #5: Thu Sep 16 16:44:33 CEST 1999 and FreeBSD bert.kts.org 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Sat Sep 25 15:53:18 CEST 1999 >Description: In contrast to FreeBSD 3.2-Stable, it is no longer possible in a curses window (with scrollok enabled - if that matters) to write to the last column without causing a newline to occur. Running the program below compiled on 3.2 displaying in an xterm on a 4.0 machine gives one output line beneath the other without blank lines between output lines. Running the same program compiled on 4.0 displaying in the same xterm on a 4.0 machine gives a blank line after each line of output from the program. >How-To-Repeat: Compile the program on a 3.2-stable system and on a 4.0 current system (later or equal to September 25, 1999) with: cc test.c -lcurses and run each compilation result in a standard xterm (my termcap entry used was "xterms|vs100s" on 4.0 current) as described above in the Description section. The effect is also visible on the console using the pcvt driver in 3.2 and 4.0. #include #define MAXJ 10 main() { WINDOW *windowp; int i, j; initscr(); noecho(); raw(); if((windowp = newwin(10, COLS, 5, 0)) == NULL) { endwin(); fprintf(stderr, "ERROR, curses init window\n"); exit(1); } scrollok(windowp, 1); wmove(windowp, 0, 0); for(j=0; j < MAXJ; j++) { char buf[] = "BUFFER"; char what[] = "WHAT"; char msg[] = ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"; wprintw(windowp, "%d %s %s %-.*s\n", j, buf, what, COLS-((strlen(buf))+(strlen(what))+4), msg); wrefresh(windowp); sleep(1); } endwin(); } >Fix: None. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message