From nzanella@cs.mun.ca  Sun May 21 22:08:40 2000
Return-Path: <nzanella@cs.mun.ca>
Received: from garfield.cs.mun.ca (garfield.cs.mun.ca [134.153.1.1])
	by hub.freebsd.org (Postfix) with ESMTP id 179D437B57A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 21 May 2000 22:08:39 -0700 (PDT)
	(envelope-from nzanella@cs.mun.ca)
Received: from localhost (nzanella@localhost)
	by garfield.cs.mun.ca (8.8.5/8.8.5) with ESMTP id CAA18056;
	Mon, 22 May 2000 02:39:46 -0230 (NDT)
Message-Id: <Pine.OSF.4.21.0005220223190.12146-100000@garfield.cs.mun.ca>
Date: Mon, 22 May 2000 02:39:46 -0230 (NDT)
From: Neil Zanella <nzanella@cs.mun.ca>
To: dwmalone@maths.tcd.ie
Cc: FreeBSD-gnats-submit@freebsd.org, bug-ncurses@gnu.org
In-Reply-To: <200005211325.aa00961@walton.maths.tcd.ie>
Subject: Re: getch ncurses man page confuses noecho and echo.

>Number:         18739
>Category:       kern
>Synopsis:       Re: getch ncurses man page confuses noecho and echo.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 21 22:10:00 PDT 2000
>Closed-Date:    Sun May 28 07:50:09 PDT 2000
>Last-Modified:  Wed Oct 26 05:55:46 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hello,
 
 I tested echo mode with curses on SunOS 5.7 and found that the results
 were different than those I got with ncurses. I added an endwin() and
 replaced <ncurses.h> with <curses.h> for correctness. I also changed
 the newline character to 'x' in the looping construct so that the
 result of entering a newline in echo() mode is also tested:
 
 #include <curses.h>
 
 int main(int argc, char **argv) {
 
         initscr();
         cbreak();
 
         clear();
         echo();
         move(0,0);
         printw("Testing with echo.");
         move(1,0);
         while( getch() != 'x' );
 
         endwin();
 
         return 0;
 }
 
 The results I obtained on SunOS agree with the treatment of special
 characters by certain functions such as getch() described at:
 <http://www.opengroup.org/onlinepubs/7908799/xcurses/intov.html#tag_001_004_003>
 The same page has a table of function families which specifies that
 getch() performs special-character processing.
 
 Best Regards,
 
 Neil Zanella
 nzanella@cs.mun.ca
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 28 07:50:09 PDT 2000 
State-Changed-Why:  
Followup to docs/18709. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18739 
>Unformatted:
