stdscr(3ncurses)


NAME

   COLORS, COLOR_PAIRS, COLS, ESCDELAY, LINES, TABSIZE, curscr, newscr,
   stdscr - curses global variables

SYNOPSIS

   #include <curses.h>

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

DESCRIPTION

   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.

   COLOR_PAIRS
   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
   true:

   ·   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
       value.

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

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

   ESCDELAY
   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).

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

   TABSIZE
   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.

NOTES

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

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

PORTABILITY

   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.

SEE ALSO

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

                                                curses_variables(3NCURSES)


More Linux Commands

manpages/editdiff.1.html
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

manpages/Tcl_SetChannelErrorInterp.3.html
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

manpages/XpGetAttributes.3x.html
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

manpages/pthread_equal.3.html
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,

manpages/git-pack-redundant.1.html
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

manpages/peekfd.1.html
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

manpages/Mail::SpamAssassin::AICache.3pm.html
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

manpages/confstr.3.html
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

manpages/perlirix.1.html
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

manpages/cpp.1.html
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

manpages/XtVaGetSubvalues.3.html
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

manpages/XkbListComponents.3.html
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.