Characters have no implementation-defined or [CLtL1] font and bit attributes. All characters are simple characters.
For backward compatibility, there is a class SYS::INPUT-CHARACTER
representing either a character with font and bits, or a keystroke.
The following functions work with objects of types CHARACTER
and SYS::INPUT-CHARACTER
.
Note that EQL
or EQUAL
are equivalent to EQ
on objects of type
SYS::INPUT-CHARACTER
.
EXT:CHAR-FONT-LIMIT
= 16EXT:CHAR-BITS-LIMIT
= 16Character bits:
key | value |
---|---|
:CONTROL | EXT:CHAR-CONTROL-BIT |
:META | EXT:CHAR-META-BIT |
:SUPER | EXT:CHAR-SUPER-BIT |
:HYPER | EXT:CHAR-HYPER-BIT |
(EXT:CHAR-FONT
object
)
CHARACTER
or SYS::INPUT-CHARACTER
.
(EXT:CHAR-BITS
object
)
CHARACTER
or SYS::INPUT-CHARACTER
.
(EXT:MAKE-CHAR
char
[bits
[font
]])
SYS::INPUT-CHARACTER
, or NIL
if such a
character cannot be created.(EXT:CHAR-BIT
object
name
)
T
if the named bit is set in object
,
else NIL
.(EXT:SET-CHAR-BIT
object
name
new-value
)
SYS::INPUT-CHARACTER
with the named bit set or
unset, depending on the BOOLEAN
new-value
.
SYS::INPUT-CHARACTER
is not a subtype of
CHARACTER
.
SYS::INPUT-CHARACTER
type only to
mention special keys and Control/Alternate/Shift key status on return from
(READ-CHAR
EXT:*KEYBOARD-INPUT*
)
.These notes document CLISP version 2.49.93+ | Last modified: 2018-02-19 |