副标题:无

作   者:

分类号:

ISBN:9780937175224

微信扫一扫,移动浏览光盘

简介

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.

目录

Preface
What This Book Contains p. xii
Typographic Conventions p. xiv
Acknowledgements p. xv
Part 1 Tutorial
Chapter 1 Introduction
The Coming of Termcap p. 3
The Coming of Terminfo p. 6
What Termcap and Terminfo Do and Don''t Control p. 8
Chapter 2 Reading Termcap and Terminfo Entries Where the Database is Stored p. 11
Reading a Simple Entry p. 14
Complete Sample Termcap Entries p. 20
Complete Sample Terminfo Entries p. 24
Chapter 3 More Termcap and Terminfo Syntax Terminal Naming Conventions p. 31
Padding p. 33
Encoding Run Time Arguments p. 37
Chapter 4 Termcap, Terminfo and the Shell Environment Variables p. 46
Default Terminal Type Specification p. 48
Setting TERM with tset p. 50
Initializing the Terminal with tset p. 55
Initializing the Terminal with tput p. 56
Using Terminfo Capabilities in Shell Programs p. 57
Chapter 5 Writing Termcap and Terminfo Entries Strategies for Obtaining Terminal Descriptions p. 60
Modifying an Entry p. 63
Creating an Entry From Scratch p. 65
Writing the Entry p. 70
Testing the New Entry p. 73
Installing a Finished Entry p. 76
Chapter 6 Converting Between Termcap and Terminfo Converting From Termcap to Terminfo: captoinfo p. 80
Converting From Terminfo to Termcap: infocmp p. 81
Some Problems When Translating p. 83
Other Uses of infocmp p. 84
Comparing Termcap Entries 86
Part 2 Capability Reference
Chapter 7 Introduction to the Capabilities Syntax Used in Part 2 p. 92
How to Read the Reference p. 93
Chapter 8 Screen Dimensions and Cursor Movement Screen Dimensions p. 96
Local Cursor Movement p. 97
Parameterized Local Cursor Movement p. 100
Absolute Cursor Movement p. 101
Scrolling p. 104
Miscellaneous Local Movements p. 107
Status Lines p. 109
Chapter 9 Editing the Screen Adding to the Screen p. 112
Deleting From the Screen p. 114
Insert Mode p. 118
Chapter 10 Initialization and Reset Termcap Initialization and Reset p. 123
Terminfo Initialization and Reset p. 125
Program Initialization p. 127
Setting and Using Tabs p. 129
Margins p. 132
Chapter 11 Special Effects Standout Mode p. 134
Underlining p. 137
Miscellaneous Highlight Modes and Alternate Character Sets p. 139
Bells p. 143
Cursor Intensity p. 144
Chapter 12 Special Keys Special Function Keys p. 147
Extended Function Key Definitions p. 149
Programmable Function Keys p. 150
Keypad Keys p. 153
Other Special Keyboard Keys p. 155
Extended Special Key Descriptions p. 158
Extended Special Key Descriptions (cont''d) p. 159
Non-Standard Control Characters p. 161
Chapter 13 Padding and XON/XOFF Padding Capabilities p. 163
XON/XOFF Flow Control p. 165
Chapter 14 Special Terminals Glitch Capabilities p. 168
Hardcopy Terminals p. 172
Terminals With Local Printers p. 174
Line Graphics p. 176
Meta Modes p. 178
Chapter 15 Equivalent Terminals Equivalent Terminal p. 180
Disabling Capabilities p. 181
Chapter 16 Miscellaneous Miscellaneous p. 184
Miscellaneous (obsolete) 189
Part 3 Appendices
Appendix A Capabilities Used by vi p. 193
Appendix B Accessing Termcap From a C Program The Termcap Library p. 197
Test Program p. 201
Appendix C Accessing Terminfo From C Program The Terminfo Routines p. 205
Test Program p. 209
Capability Variable Names p. 211
Appendix D List of Capabilities p. 215
Index p. 235

已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon