home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / pcmail / termcap / console.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  2.3 KB  |  67 lines

  1. /*++
  2. /* NAME
  3. /*      console 3
  4. /* SUMMARY
  5. /*      encoded ibm pc console terminal capabilities
  6. /* PROJECT
  7. /*       ms-dos/unix compatibility
  8. /* PACKAGE
  9. /*      termcap
  10. /* SYNOPSIS
  11. /*      #include "termcap.h"
  12. /* DESCRIPTION
  13. /*      The terminal capabilities for the ibm pc ANSI.SYS console driver
  14. /*      are stored in a static data structure named "_console". 
  15. /*      User access proceeds through the tget{num|str|flag} functions.
  16. /*
  17. /*      The escape character at the start of function key codes are
  18. /*      imaginary; the PC hardware actually returns a nul byte.
  19. /* SEE ALSO
  20. /*      tgetnum(3), tgetstr(3), tgetflag(3).
  21. /*      termcap(3), Berkeley extensions to UNIX.
  22. /* FILES
  23. /*      ANSI.SYS, ibm pc console driver.
  24. /* AUTHOR(S)
  25. /*      W.Z. Venema
  26. /*      Eindhoven University of Technology
  27. /*      Department of Mathematics and Computer Science
  28. /*      Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  29. /* CREATION DATE
  30. /*      Wed Jan  1 19:01:13 GMT+1:00 1986
  31. /* LAST MODIFICATION
  32. /*      90/01/22 13:56:58
  33. /* VERSION/RELEASE
  34. /*      2.1
  35. /*--*/
  36.  
  37. #include "termcap.h"
  38.  
  39. Cap     _console[] = {
  40.     "am", 0,                /* auto CR-LF at right margin */
  41.     "bs", 0,                /* terminal can backspace */
  42.     "cd", "\033[J",            /* clear to end of screen */
  43.     "ce", "\033[K",            /* clear to end of line */
  44.     "cl", "\033[;H\033[2J",        /* clear whole screen */
  45.     "cm", "\033[%i%d;%dH",        /* cursor movement */
  46.     "co", "80",                /* nbr of columns on screen */
  47.     "cr", "\r",                /* carriage-return */
  48.     "do", "\033[B",            /* cursor down */
  49.     "ku", "\033H",            /* up-arrow key */
  50.     "kd", "\033P",            /* down-arrow key */
  51.     "kl", "\033L",            /* left-arrow key */
  52.     "kr", "\033N",            /* right-arrow key */
  53.     "le", "\010",            /* cursor left */
  54.     "li", "25",                /* nbr of lines on screen */
  55.     "nd", "\033[C",            /* cursor right */
  56.     "nl", "\n",                /* linefeed character */
  57.     "pt", "",                /* has hardware tabs */
  58.     "PU", "\033I",            /* page up key (non-std code) */
  59.     "PD", "\033Q",            /* page down key (non-std code) */
  60.     "se", "\033[m",            /* end standout mode */
  61.     "so", "\033[1m",            /* enter standout (bold) mode */
  62.     "ue", "\033[m",            /* end underscore mode */
  63.     "up", "\033[A",            /* cursor up */
  64.     "us", "\033[4m",            /* enter underscore mode */
  65.     0, 0,                /* terminator */
  66. };
  67.