Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_tty()</b> - tty terminal emulator http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_tty() - TTY terminal emulator

   nReturn := tp_tty(nPort, nTop, nLeft, nBottom, nRight,
       nKey|cFunction)

   nPort       Serial port number.
   nTop        Top row of window.
   nLeft       Left edge of window.
   nBottom     Bottom row of window.
   nRight      Right edge of window.
   nKey        Exit key.
   cFunction   Exception handler name.

   Returns     Value returned by exception handler.

   Starts a TTY terminal emulator in the specified window.  See Terminal
   Emulators for details.

   If nKey is specified, it is the INKEY() value of the key which will
   exit from the emulator.  If cFunction is given, it is the name of an
   exception handler function, as described in the Terminal Emulators
   reference.

   The initial text color is the current SET COLOR foreground color.
   The emulator window is not cleared on entry.

   Example:

       #include "inkey.ch"
       #include "telepath.ch"

       tp_tty(1, 0, 0, maxrow(), maxcol(), "TermException")
           // Port 1, uses full screen.

       function TermException(nCode, nParam)
           do case
           case nCode == TTY_UNKEY     // Special key
               if nParam == K_ALT_X    // When Alt-X hit..
                   return 1            // ...the emulator exits
               endif
           endcase
           return 0

See Also: tp_ansi() tp_tflags() tp_vt102() Terminal Emulators

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson