X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_inopts.3x.html;h=a468d00a14f8242796a167cd2fc158993baf4a78;hp=995fbaee304a9d2ca59edfb4dfb87adc2b1454d2;hb=349761f30e7fc0b4bf2718f7fc3da34e09ea6735;hpb=8d3ea9021573747ecd129228ba7782a03243f62c diff --git a/doc/html/man/curs_inopts.3x.html b/doc/html/man/curs_inopts.3x.html index 995fbaee..a468d00a 100644 --- a/doc/html/man/curs_inopts.3x.html +++ b/doc/html/man/curs_inopts.3x.html @@ -1,6 +1,7 @@ - + curs_inopts 3x - + @@ -46,9 +47,9 @@

NAME

-       cbreak, nocbreak, echo, noecho, halfdelay, intrflush, keypad, meta,
-       nodelay, notimeout, raw, noraw, noqiflush, qiflush, timeout, wtimeout,
-       typeahead - curses input options
+       cbreak, nocbreak, echo, noecho, halfdelay, intrflush, keypad, meta, nl,
+       nonl, nodelay, notimeout, raw, noraw, qiflush, noqiflush, timeout,
+       wtimeout, typeahead - curses input options
 
 
 

SYNOPSIS

@@ -56,20 +57,29 @@
 
        int cbreak(void);
        int nocbreak(void);
+
        int echo(void);
        int noecho(void);
-       int halfdelay(int tenths);
+
        int intrflush(WINDOW *win, bool bf);
        int keypad(WINDOW *win, bool bf);
        int meta(WINDOW *win, bool bf);
        int nodelay(WINDOW *win, bool bf);
+       int notimeout(WINDOW *win, bool bf);
+
+       int nl(void);
+       int nonl(void);
+
        int raw(void);
        int noraw(void);
-       void noqiflush(void);
+
        void qiflush(void);
-       int notimeout(WINDOW *win, bool bf);
+       void noqiflush(void);
+
+       int halfdelay(int tenths);
        void timeout(int delay);
        void wtimeout(WINDOW *win, int delay);
+
        int typeahead(int fd);
 
 
@@ -82,7 +92,7 @@
        behavior is needed.
 
 
-

cbreak

+

cbreak/nocbreak

        Normally, the tty driver buffers typed characters until  a  newline  or
        carriage  return  is typed.  The cbreak routine disables line buffering
        and erase/kill character-processing (interrupt and flow control charac-
@@ -141,7 +151,7 @@
 
 

meta

        Initially,  whether the terminal returns 7 or 8 significant bits on in-
-       put depends on the control mode of the tty driver [see termio(7)].   To
+       put depends on the control mode of the tty driver [see termios(3)].  To
        force  8  bits  to be returned, invoke meta(win, TRUE); this is equiva-
        lent, under POSIX, to setting the CS8 flag on the terminal.  To force 7
        bits to be returned, invoke meta(win, FALSE); this is equivalent, under
@@ -152,73 +162,78 @@
        FALSE) is called.
 
 
-

nodelay

+

nl/nonl

+       The nl and nonl routines control whether the underlying display  device
+       translates the return key into newline on input.
+
+
+

nodelay/notimeout

        The nodelay option causes getch to be a non-blocking call.  If no input
-       is  ready,  getch  returns ERR.  If disabled (bf is FALSE), getch waits
+       is ready, getch returns ERR.  If disabled (bf is  FALSE),  getch  waits
        until a key is pressed.
 
-       While interpreting an input escape sequence, wgetch(3x)  sets  a  timer
-       while  waiting  for  the  next  character.   If notimeout(win, TRUE) is
-       called, then wgetch does not set a timer.  The purpose of  the  timeout
-       is  to differentiate between sequences received from a function key and
+       While  interpreting  an  input escape sequence, wgetch(3x) sets a timer
+       while waiting for the  next  character.   If  notimeout(win,  TRUE)  is
+       called,  then  wgetch does not set a timer.  The purpose of the timeout
+       is to differentiate between sequences received from a function key  and
        those typed by a user.
 
 
 

raw/noraw

-       The raw and noraw routines place the terminal into or out of raw  mode.
-       Raw  mode is similar to cbreak mode, in that characters typed are imme-
-       diately passed through to the user program.  The differences  are  that
-       in  raw mode, the interrupt, quit, suspend, and flow control characters
-       are all passed through uninterpreted, instead of generating  a  signal.
-       The  behavior  of the BREAK key depends on other bits in the tty driver
+       The  raw and noraw routines place the terminal into or out of raw mode.
+       Raw mode is similar to cbreak mode, in that characters typed are  imme-
+       diately  passed  through to the user program.  The differences are that
+       in raw mode, the interrupt, quit, suspend, and flow control  characters
+       are  all  passed through uninterpreted, instead of generating a signal.
+       The behavior of the BREAK key depends on other bits in the  tty  driver
        that are not set by curses.
 
 
-

noqiflush

-       When the noqiflush routine is used, normal flush of  input  and  output
-       queues  associated  with the INTR, QUIT and SUSP characters will not be
-       done [see termio(7)].  When qiflush  is  called,  the  queues  will  be
-       flushed  when  these control characters are read.  You may want to call
-       noqiflush in a signal handler if you want output to continue as  though
+

qiflush/noqiflush

+       When  the  noqiflush  routine is used, normal flush of input and output
+       queues associated with the INTR, QUIT and SUSP characters will  not  be
+       done  [see  termios(3)].   When  qiflush  is called, the queues will be
+       flushed when these control characters are read.  You may want  to  call
+       noqiflush  in a signal handler if you want output to continue as though
        the interrupt had not occurred, after the handler exits.
 
 
 

timeout/wtimeout

        The timeout and wtimeout routines set blocking or non-blocking read for
-       a given window.  If delay is negative, blocking  read  is  used  (i.e.,
-       waits  indefinitely  for  input).   If delay is zero, then non-blocking
+       a  given  window.   If  delay is negative, blocking read is used (i.e.,
+       waits indefinitely for input).  If delay  is  zero,  then  non-blocking
        read is used (i.e., read returns ERR if no input is waiting).  If delay
-       is  positive,  then read blocks for delay milliseconds, and returns ERR
-       if there is still no input.  Hence, these  routines  provide  the  same
-       functionality  as nodelay, plus the additional capability of being able
+       is positive, then read blocks for delay milliseconds, and  returns  ERR
+       if  there  is  still  no input.  Hence, these routines provide the same
+       functionality as nodelay, plus the additional capability of being  able
        to block for only delay milliseconds (where delay is positive).
 
 
 

typeahead

        The curses library does "line-breakout optimization" by looking for ty-
        peahead periodically while updating the screen.  If input is found, and
-       it is coming from a tty, the current  update  is  postponed  until  re-
-       fresh(3x)  or doupdate is called again.  This allows faster response to
-       commands typed in advance.  Normally, the input FILE pointer passed  to
+       it  is  coming  from  a  tty, the current update is postponed until re-
+       fresh(3x) or doupdate is called again.  This allows faster response  to
+       commands  typed in advance.  Normally, the input FILE pointer passed to
        newterm, or stdin in the case that initscr was used, will be used to do
        this typeahead checking.  The typeahead routine specifies that the file
-       descriptor  fd  is to be used to check for typeahead instead.  If fd is
+       descriptor fd is to be used to check for typeahead instead.  If  fd  is
        -1, then no typeahead checking is done.
 
 
 

RETURN VALUE

-       All routines that return an integer return  ERR  upon  failure  and  OK
+       All  routines  that  return  an  integer return ERR upon failure and OK
        (SVr4 specifies only "an integer value other than ERR") upon successful
-       completion, unless otherwise noted in the  preceding  routine  descrip-
+       completion,  unless  otherwise  noted in the preceding routine descrip-
        tions.
 
-       X/Open  does  not define any error conditions.  In this implementation,
-       functions with a window parameter will return an error if it  is  null.
+       X/Open does not define any error conditions.  In  this  implementation,
+       functions  with  a window parameter will return an error if it is null.
        Any function will also return an error if the terminal was not initial-
        ized.  Also,
 
               halfdelay
-                   returns an error if its  parameter  is  outside  the  range
+                   returns  an  error  if  its  parameter is outside the range
                    1..255.
 
 
@@ -226,13 +241,20 @@
        These functions are described in the XSI Curses standard, Issue 4.
 
        The ncurses library obeys the XPG4 standard and the historical practice
-       of the AT&T curses implementations, in that the  echo  bit  is  cleared
-       when  curses  initializes the terminal state.  BSD curses differed from
-       this slightly; it left the echo bit on at initialization, but  the  BSD
-       raw  call  turned  it  off as a side-effect.  For best portability, set
-       echo or noecho explicitly just after initialization, even if your  pro-
+       of  the  AT&T  curses  implementations, in that the echo bit is cleared
+       when curses initializes the terminal state.  BSD curses  differed  from
+       this  slightly;  it left the echo bit on at initialization, but the BSD
+       raw call turned it off as a side-effect.   For  best  portability,  set
+       echo  or noecho explicitly just after initialization, even if your pro-
        gram remains in cooked mode.
 
+       The XSI Curses standard is ambiguous on the  question  of  whether  raw
+       should  disable  the  CRLF translations controlled by nl and nonl.  BSD
+       curses did turn off these translations; AT&T curses (at least  as  late
+       as  SVr1)  did not.  We chose to do so, on the theory that a programmer
+       requesting raw input wants a clean  (ideally  8-bit  clean)  connection
+       that the operating system will not alter.
+
        When keypad is first enabled, ncurses loads the key-definitions for the
        current terminal description.  If the terminal description includes ex-
        tended string capabilities, e.g., from using the -x option of tic, then
@@ -262,8 +284,8 @@
 
 
 

NOTES

-       Note that echo, noecho, halfdelay, intrflush, meta, nodelay, notimeout,
-       noqiflush, qiflush, timeout, and wtimeout may be macros.
+       Note that echo, noecho, halfdelay, intrflush, meta, nl, nonl,  nodelay,
+       notimeout, noqiflush, qiflush, timeout, and wtimeout may be macros.
 
        The  noraw  and  nocbreak calls follow historical practice in that they
        attempt to restore to normal ("cooked") mode from raw and cbreak  modes
@@ -274,7 +296,7 @@
 
 

SEE ALSO

        curses(3x),   curs_getch(3x),   curs_initscr(3x),   curs_util(3x),  de-
-       fine_key(3x), termio(7)
+       fine_key(3x), termios(3)
 
 
 
@@ -286,15 +308,16 @@
 
  • SYNOPSIS
  • DESCRIPTION