![]()
|
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52">
Terminal input and outputDisplay outputThe terminal engine receives display data from one of 2 sources.
Any input from any of the sources is treated the same - as xterm escape sequences or escape sequence fragments and simple text. It would generally not make sense to use both methods of display generation at the same time as the display state may not be known between calls to the parser. Inserting keystrokesWithin the ZvtTerm object definition there is available a file descriptor which is assigned to the application to "add" extra keystrokes to the child's input. This file descriptor is stored in term->vx->vt.keyfd. Input to this file descriptor will be processed as if they were typed in by the user. zvt_term_feed() cannot be used for this purpose as it by-passes the child's input and output streams and writes directly to the display engine. Of course, this file descriptor is only valid if zvt_term_forkpty() was executed successfully on the terminal object. Example 1. Adding characters to the input stream
|