Limited number of iterations in rote_vt_update to avoid infinite loop with ever-avail...
[apps/madtty.git] / README
1 ROTE - OUR OWN TERMINAL EMULATION LIBRARY
2 Copyright (c) 2004 Bruno T. C. de Oliveira
3 Licensed under the GNU Lesser General Public License
4 See the COPYING file for more details on the license terms.
5
6 [[ AUTHOR AND PROJECT HOMEPAGE ]]
7 This library was written by Bruno Takahashi C. de Oliveira, a
8 Computer Science student at Universidade de São Paulo, Brazil.
9 The project home page is:
10
11                 http://rote.sourceforge.net
12
13 [[ OTHER PEOPLE INVOLVED IN DEVELOPING THIS LIBRARY ]]
14
15 * Phil Endecott (phil_achbq_endecott@chezphil.org)
16
17 [[ WHAT IS IT? ]]
18
19 ROTE is a simple C library for VT102 terminal emulation. It allows the
20 programmer to set up virtual 'screens' and send them data. The virtual
21 screens will emulate the behavior of a VT102 terminal, interpreting
22 escape sequences, control characters and such. The library supports
23 ncurses as well so that you may render the virtual screen to the real
24 screen when you need to.
25
26 [[ MORE DETAILS ]]
27
28 There are several programs that do terminal emulation, such as xterm, rxvt,
29 screen and even the Linux console driver itself. However, it is not easy to
30 isolate their terminal emulation logic and put it in a module that can be
31 easily reused in other programs. That's where the ROTE library comes in.
32
33 The goal of the ROTE library is to provide terminal emulation support
34 for C/C++ applications, making it possible to write programs that display
35 terminals in embedded windows within them, or even monitor the display
36 produced by other programs.
37
38 The ROTE library does not depend on any other library (except libc, of course),
39 and ncurses support can be enabled or disabled at compile-time. With ncurses
40 support compiled in, the ROTE library is able to render the virtual screens
41 to the physical screen (actually any ncurses window) and can also translate
42 ncurses key codes to the escape sequences the Linux console would have
43 produced (and feed them into the terminal). Ncurses support is not mandatory
44 however, and ROTE will work fine without it, but in that case the application
45 must take care of drawing the terminal to the screen in whichever way it
46 sees fit.
47
48 ROTE also encapsulates the functionality needed to execute a child process
49 using the virtual screen as the controlling terminal. It will handle the
50 creation of the pseudo-terminal and the child process. All the application
51 has to do is tell it the command to run in the terminal and call an update
52 function at regular intervals to allow the terminal to update itself.
53
54