PyDocs

Command-line interface libraries

curses.ascii

Constants and membership tests for ASCII characters
Symbols in curses.ascii

a

ACK
Acknowledgement
alt
Return the 8-bit character corresponding to the given ASCII character (the character bit value is bitwise-ored with 0x80).
ascii
Return the ASCII value corresponding to the low 7 bits of c.

b

BEL
Bell
BS
Backspace

c

CAN
Cancel
controlnames
A 33-element string array that contains the ASCII mnemonics for the thirty-two ASCII control characters from 0 (NUL) to 0x1f (US), in order, plus the mnemonic SP for the space character.
CR
Carriage return
ctrl
Return the control character corresponding to the given character (the character bit value is bitwise-anded with 0x1f).

d

DC1
XON, for flow control
DC2
Device control 2, block-mode flow control
DC3
XOFF, for flow control
DC4
Device control 4
DEL
Delete
DLE
Data-link escape

e

EM
End of medium
ENQ
Enquiry, goes with ACK flow control
EOT
End of transmission
ESC
Escape
ETB
End transmission block
ETX
End of text

f

FF
Form feed
FS
File separator

g

GS
Group separator

h

HT
Alias for TAB: “Horizontal tab”

i

isalnum
Checks for an ASCII alphanumeric character; it is equivalent to isalpha(c) or isdigit(c).
isalpha
Checks for an ASCII alphabetic character; it is equivalent to isupper(c) or islower(c).
isascii
Checks for a character value that fits in the 7-bit ASCII set.
isblank
Checks for an ASCII blank character; space or horizontal tab.
iscntrl
Checks for an ASCII control character (in the range 0x00 to 0x1f or 0x7f).
isctrl
Checks for an ASCII control character (ordinal values 0 to 31).
isdigit
Checks for an ASCII decimal digit, '0' through '9'.
isgraph
Checks for any ASCII printable character except space.
islower
Checks for an ASCII lower-case character.
ismeta
Checks for a non-ASCII character (ordinal values 0x80 and above).
isprint
Checks for any ASCII printable character including space.
ispunct
Checks for any ASCII printable character which is not a space or an alphanumeric character.
isspace
Checks for ASCII white-space characters; space, line feed, carriage return, form feed, horizontal tab, vertical tab.
isupper
Checks for an ASCII uppercase letter.
isxdigit
Checks for an ASCII hexadecimal digit.

l

LF
Line feed

n

NAK
Negative acknowledgement
NL
Alias for LF: “New line”

r

RS
Record separator, block-mode terminator

s

SI
Shift-in, resume default character set
SO
Shift-out, begin alternate character set
SOH
Start of heading, console interrupt
SP
Space
STX
Start of text
SUB
Substitute
SYN
Synchronous idle

t

TAB
Tab

u

unctrl
Return a string representation of the ASCII character c.
US
Unit separator

v

VT
Vertical tab