Abstract
Entering information to a program from a keyboard is a common task. The data entered is one form of text. In X Window, each key on a keyboard is considered to be like a mouse button in that they raise events. Like a mouse button, each keyboard key can raise two different types of events: a key press event and a key release event (although on some PC keyboards, the key release event may not be implemented). Since each key is identified uniquely, different patterns for presentation of the meaning of a key and displayed on a screen can be changed by selection of a mapping between the key identifier and a pattern. Because a keyboard is a complex mouse consisting of many buttons, it justifies a chapter of its own. Like a mouse, keyboards are serviced by the events they generate. Such events can be linked to achieve a variety of effects.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
5.1 Electronic supplementary material
Below is the link to the electronic supplementary material.
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG, part of Springer Nature
About this chapter
Cite this chapter
Maloney, R.J. (2017). Keyboard Entry and Displaying Text. In: Low Level X Window Programming . Springer, Cham. https://doi.org/10.1007/978-3-319-74250-2_5
Download citation
DOI: https://doi.org/10.1007/978-3-319-74250-2_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-74249-6
Online ISBN: 978-3-319-74250-2
eBook Packages: Computer ScienceComputer Science (R0)