All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

print-pretty-gesture-spec Function

Summary

Prints a gesture-spec as a keystroke.

Package

system

Signature

print-pretty-gesture-spec gspec stream &key force-meta-to-alt force-shift-for-upcase => gspec

Arguments
gspec
stream
An output stream.
force-meta-to-alt
A boolean.
force-shift-for-upcase
A boolean.
Values
gspec
The gesture-spec that was passed.
Description

The function print-pretty-gesture-spec prints the keystroke represented by gspec to the stream stream.

If force-meta-to-alt is true, then gesture-spec-meta-bit is represented as Alt in the output; otherwise it is represented as Meta. force-meta-to-alt defaults to nil.

If force-shift-for-upcase is true and gspec represents uppercase input such as A, then the Shift modifier is printed, indicating that Shift is pressed to obtain the A character. force-shift-for-upcase defaults to t.

If gspec has a wild modifiers or data component (that is, gesture-spec-modifiers and/or gesture-spec-data return nil) then <Wild> appears in the output.

See also

gesture-spec-data
gesture-spec-meta-bit
gesture-spec-modifiers
make-gesture-spec


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02