Jump to ratings and reviews
Rate this book

termcap & terminfo

Rate this book
While termcap and terminfo are no longer as important as they once were, due to the growth of the X terminal market and increased standardization among ASCII terminals, handling different terminal types can still be a headache for system administrators. The termcap and terminfo databases are UNIX's solution to the difficulty of supporting many terminals without writing special drivers for each terminal. Termcap (BSD) and terminfo (System V) describe the features of hundreds of terminals, together with a library of routines that allow programs to use those capabilities.

This book documents hundreds of capabilities and syntax for termcap and terminfo, writing and debugging terminal descriptions, and terminal initialization.

Contents include:


Terminal independence: the need for termcap and terminfo. Reading termcap and terminfo entries. Capability syntax. Initializing the terminal environment. Writing termcap and terminfo entries. Converting between termcap and terminfo. Detailed descriptions of the capabilities. Screen dimensions and cursor movement. Initialization and reset. Special and equivalent terminals. Many useful appendices.

254 pages, Spiral-bound

First published January 1, 1985

1 person is currently reading
16 people want to read

About the author

Linda Mui

11 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (35%)
4 stars
6 (42%)
3 stars
2 (14%)
2 stars
1 (7%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Bernie4444.
2,464 reviews12 followers
December 31, 2022
Not knowing terminfo is driving with your lights off

Several times, I see in newsgroups statements like how do I program keys in UNIX.

Alternatively, I just changed my emulator and get funny characters. This book answers those questions and helps with the understanding of how to build a program that works with any terminal and other applications. Knowing this book can save person-days of speculation on why the control characters do not respond as you expected them to.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.