X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_getch.3x;h=b8d6a82b05c242a0e23880bc94fdd4e36aa0a701;hp=1196b3d61285592c4430b3f558f1e6b287d994d7;hb=dcfe712cb3492636e8d50c9867cf05aec089a576;hpb=603f0cb25b7acc8f04f4b18d2a2fe6f90039829a;ds=inline diff --git a/man/curs_getch.3x b/man/curs_getch.3x index 1196b3d6..b8d6a82b 100644 --- a/man/curs_getch.3x +++ b/man/curs_getch.3x @@ -27,7 +27,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getch.3x,v 1.47 2016/06/11 22:56:33 tom Exp $ +.\" $Id: curs_getch.3x,v 1.49 2016/10/15 16:44:01 tom Exp $ .TH curs_getch 3X "" .na .hy 0 @@ -289,7 +289,7 @@ string (see \fBkey_defined\fP(3X)). .PP .SH RETURN VALUE All routines return the integer \fBERR\fR upon failure and an integer value -other than \fBERR\fR (\fBOK\fR in the case of ungetch()) upon successful +other than \fBERR\fR (\fBOK\fR in the case of \fBungetch\fP) upon successful completion. .RS 3 .TP 5 @@ -300,7 +300,9 @@ if there is no more room in the FIFO. \fBwgetch\fP returns ERR if the window pointer is null, or -if its timeout expires without having any data. +if its timeout expires without having any data, or +if the execution was interrupted by a signal (\fBerrno\fR will be set to +\fBEINTR\fR). .RE .PP Functions with a "mv" prefix first perform a cursor movement using @@ -385,8 +387,6 @@ Programmers concerned about portability should be prepared for either of two cases: (a) signal receipt does not interrupt \fBgetch\fR; (b) signal receipt interrupts \fBgetch\fR and causes it to return ERR with \fBerrno\fR set to \fBEINTR\fR. -Under the \fBncurses\fR implementation, handled signals never -interrupt \fBgetch\fR. .PP The \fBhas_key\fR function is unique to \fBncurses\fR. We recommend that