Skip to main content

Keyboard Entry and Displaying Text

  • Chapter
  • First Online:
Low Level X Window Programming
  • 543 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ross J. Maloney .

5.1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (gz 6 KB)

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics