Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b924bd46
Commit
b924bd46
authored
Jul 27, 2000
by
Eric S. Raymond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second round of curses documentation improvements. Completes and extends
documentation for function keys, special characters.
parent
be28f5b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
17 deletions
+38
-17
Doc/lib/libcurses.tex
Doc/lib/libcurses.tex
+38
-17
No files found.
Doc/lib/libcurses.tex
View file @
b924bd46
...
...
@@ -548,10 +548,11 @@ Sets the background property of the window to the character \var{ch},
with attributes
\var
{
attr
}
. The change is then applied to every
character position in that window:
\begin{itemize}
\item
The attribute of every character in the window is
changed to the new background attribute.
\item
Wherever the former background character appears,
\item
The attribute of every character in the window is
changed to the new background attribute.
\item
Wherever the former background character appears,
it is changed to the new background character.
\end{itemize}
...
...
@@ -977,7 +978,7 @@ Also available as \constant{__version__}.
\end{tableii}
Keys are referred to by integer constants with names starting with
\code
{
KEY
_}
. The exact
name
s available are system dependent.
\code
{
KEY
_}
. The exact
keycap
s available are system dependent.
% XXX this table is far too large!
% XXX should this table be alphabetized?
...
...
@@ -1079,17 +1080,37 @@ Keys are referred to by integer constants with names starting with
\lineii
{
KEY
_
MAX
}{
Maximum key value
}
\end{tableii}
On VT100s and their software emulations such as X terminal emulators,
there are normally at least four function keys (KEY
_
F1, KEY
_
F2,
KEY
_
F3, KEY
_
F4) available and the arrow keys mapped to KEY
_
UP,
KEY
_
DOWN, KEY
_
LEFT and KEY
_
RIGHT in the obvious way. If your machine has a PC
keybboard, it is safe to expect arrow keys and twelve function keys; also,
the following keypad mappings are standard:
\begin{tableii}
{
c|l
}{
code
}{
Keycap
}{
code
}
\lineii
{
Insert
}{
KEY
_
IC
}
\lineii
{
Delete
}{
KEY
_
DC
}
\lineii
{
Home
}{
KEY
_
HOME
}
\lineii
{
End
}{
KEY
_
END
}
\lineii
{
Page Up
}{
KEY
_
NPAGE
}
\lineii
{
Page Down
}{
KEY
_
PPAGE
}
\end{tableii}
The following table lists characters from the alternate character set.
These are inherited from the VT100 terminal, and will generally be
available on software emulations such as X terminals. When there
is no graphic available, curses falls back on a crude printable ASCII
approximation.
\strong
{
Note:
}
These are available only after
\function
{
initscr()
}
has
been called.
\begin{tableii}
{
c|l
}{
code
}{
ACS code
}{
Meaning
}
\lineii
{
ACS
_
BBSS
}{}
\lineii
{
ACS
_
BBSS
}{
alternate name for upper right corner
}
\lineii
{
ACS
_
BLOCK
}{
solid square block
}
\lineii
{
ACS
_
BOARD
}{
board of squares
}
\lineii
{
ACS
_
BSBS
}{}
\lineii
{
ACS
_
BSSB
}{}
\lineii
{
ACS
_
BSSS
}{}
\lineii
{
ACS
_
BSBS
}{
alternate name for horizontal line
}
\lineii
{
ACS
_
BSSB
}{
alternate name for upper left corner
}
\lineii
{
ACS
_
BSSS
}{
alternate name for top tee
}
\lineii
{
ACS
_
BTEE
}{
bottom tee
}
\lineii
{
ACS
_
BULLET
}{
bullet
}
\lineii
{
ACS
_
CKBOARD
}{
checker board (stipple)
}
...
...
@@ -1107,20 +1128,20 @@ been called.
\lineii
{
ACS
_
NEQUAL
}{
not-equal sign
}
\lineii
{
ACS
_
PI
}{
letter pi
}
\lineii
{
ACS
_
PLMINUS
}{
plus-or-minus sign
}
\lineii
{
ACS
_
PLUS
}{
plus sign
}
\lineii
{
ACS
_
PLUS
}{
big
plus sign
}
\lineii
{
ACS
_
RARROW
}{
right arrow
}
\lineii
{
ACS
_
RTEE
}{
right tee
}
\lineii
{
ACS
_
S1
}{
scan line 1
}
\lineii
{
ACS
_
S3
}{
scan line 3
}
\lineii
{
ACS
_
S7
}{
scan line 7
}
\lineii
{
ACS
_
S9
}{
scan line 9
}
\lineii
{
ACS
_
SBBS
}{}
\lineii
{
ACS
_
SBSB
}{}
\lineii
{
ACS
_
SBSS
}{}
\lineii
{
ACS
_
SSBB
}{}
\lineii
{
ACS
_
SSBS
}{}
\lineii
{
ACS
_
SSSB
}{}
\lineii
{
ACS
_
SSSS
}{}
\lineii
{
ACS
_
SBBS
}{
alternate name for lower right corner
}
\lineii
{
ACS
_
SBSB
}{
alternate name for vertical line
}
\lineii
{
ACS
_
SBSS
}{
alternate name for right tee
}
\lineii
{
ACS
_
SSBB
}{
alternate name for lower left corner
}
\lineii
{
ACS
_
SSBS
}{
alternate name for bottom tee
}
\lineii
{
ACS
_
SSSB
}{
alternate name for left tee
}
\lineii
{
ACS
_
SSSS
}{
alternate name for crossover or big plus
}
\lineii
{
ACS
_
STERLING
}{
pound sterling
}
\lineii
{
ACS
_
TTEE
}{
top tee
}
\lineii
{
ACS
_
UARROW
}{
up arrow
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment