stdscr - curses global variables


   #include <curses.h>

   int COLORS;
   int COLS;
   int ESCDELAY;
   int LINES;
   int TABSIZE;
   WINDOW * curscr;
   WINDOW * newscr;
   WINDOW * stdscr;


   This page summarizes variables provided by the curses library.  A  more
   complete description is given in the curses(3X) manual page.

   Depending  on  the  configuration,  these  may  be actual variables, or
   macros (see threads(3NCURSES) and opaque(3NCURSES)) which provide read-
   only  access  to  curses's  state.  In either case, applications should
   treat them as read-only to avoid confusing the library.

   After initializing curses, this variable contains the number  of  color
   pairs  which  the  terminal  can  support.  Usually the number of color
   pairs will be the product COLORS*COLORS, however  this  is  not  always

   ·   a few terminals use HLS colors, which do not follow this rule

   ·   terminals  supporting  a  large number of colors are limited by the
       number of color pairs that can be represented  in  a  signed  short

   After  initializing curses, this variable contains the number of colors
   which the terminal can support.

   After initializing curses, this variable  contains  the  width  of  the
   screen, i.e., the number of columns.

   This variable holds the number of milliseconds to wait after reading an
   escape character, to distinguish between an individual escape character
   entered  on  the  keyboard  from  escape  sequences sent by cursor- and
   function-keys (see curses(3X).

   After initializing curses, this variable contains  the  height  of  the
   screen, i.e., the number of lines.

   This  variable  holds  the number of columns used by the curses library
   when converting a tab character to spaces as  it  adds  the  tab  to  a
   window (see curs_addch(3X).

   The Current Screen
   This  implementation  of  curses uses a special window curscr to record
   its updates to the terminal screen.

   The New Screen
   This implementation of curses uses a  special  window  newscr  to  hold
   updates to the terminal screen before applying them to curscr.

   The Standard Screen
   Upon  initializing curses, a default window called stdscr, which is the
   size of the terminal screen, is created.   Many  curses  functions  use
   this window.


   The   curses  library  is  initialized  using  either  initscr(3X),  or

   If curses is configured to use separate curses/terminfo libraries, most
   of these variables reside in the curses library.


   ESCDELAY  and  TABSIZE  are  extensions,  not  provided  in  most other
   implementations of curses.

   ESCDELAY is an extension in AIX curses:

   ·   In AIX, the units for ESCDELAY are fifths of a millisecond.

   ·   The default value for AIX's ESCDELAY is 0.1 seconds.

   ·   AIX also enforces a limit of  10,000  seconds  for  ESCDELAY;  this
       implementation currently has no upper limit.

   This  implementation has long used ESCDELAY with units of milliseconds,
   making it impossible to be completely compatible with  AIX.   Likewise,
   most  users have either decided to override the value, or rely upon its
   default value.


   ncurses(3NCURSES),        opaque(3NCURSES),         terminfo(3NCURSES),
   threads(3NCURSES), terminfo_variables(3NCURSES), terminfo(5).


More Linux Commands

editdiff(1) - fix offsets and counts of a hand-edited diff
editdiff.1 - You can use rediff to correct a hand-edited unified diff. Take a copy of the diff you want to edit, and edit it without changing any offsets or cou

Tcl_SetChannelErrorInterp(3) - functions to create/intercept
The current definition of a Tcl channel driver does not permit the direct return of arbitrary error messages, except for the setting and retrieval of channel op

XpGetAttributes(3x) - Gets an attribute pool from the specif
XpGetAttributes returns a pool, a COMPOUND_TEXT resource string representing the attribute pool specified by type. The caller is expected to free pool when it i

pthread_equal(3) - compare thread IDs - Linux manual page...
The pthread_equal() function compares two thread identifiers. RETURN VALUE If the two thread IDs are equal, pthread_equal() returns a nonzero value; otherwise,

git-pack-redundant(1) - Find redundant pack files (ManPage)
This program computes which packs in your repository are redundant. The output is suitable for piping to xargs rm if you are in the root of the repository. git

peekfd(1) - peek at file descriptors of running processes...
peekfd attaches to a running process and intercepts all reads and writes to file descriptors. You can specify the desired file descriptor numbers or dump all of

Mail::SpamAssassin::AICache(3pm) - provide access to cached
This module allows ArchiveIterator to use cached atime information instead of having to read every message separately. PUBLIC METHODS new() Generates a new cach

confstr(3) - get configuration dependent string variables...
confstr() gets the value of configuration-dependent string variables. The name argument is the system variable to be queried. The following variables are suppor

perlirix(1) - Perl version 5 on Irix systems (Man Page).....
This document describes various features of Irix that will affect how Perl version 5 (hereafter just Perl) is compiled and/or runs. Building 32-bit Perl in Irix

cpp(1) - The C Preprocessor (Commands - Linux man page).....
The C preprocessor, often known as cpp, is a macro processor that is used automatically by the C compiler to transform your program before compilation. It is ca

XtVaGetSubvalues(3) - obtain and set widget resources.......
The XtSetValues function starts with the resources specified for the Core widget fields and proceeds down the subclass chain to the widget. At each stage, it wr

XkbListComponents(3) - List of components for one or more co
You may ask the server for a list of components for one or more component types. The request takes the form of a set of patterns, one pattern for each of the co

We can't live, work or learn in freedom unless the software we use is free.