home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / crssrc16 / intro.2 < prev    next >
Text File  |  1993-07-29  |  1KB  |  65 lines

  1. .\" Copyright 1980 Kenneth C. R. C. Arnold and The Regents of the
  2. .\" University of California.  Permission is granted to freely
  3. .\" distribute curses and its documentation provided that this
  4. .\" notice is left intact.
  5. .\"
  6. .\"    @(#)intro.2    6.1 (Berkeley) 4/23/86
  7. .\"
  8. .sh 1 Variables
  9. .pp
  10. Many variables which are used to describe the terminal environment
  11. are available to the programmer. They are:
  12. .TS
  13. expand;
  14. lw(6m) lw(8n) lw(50n).
  15. type    name    description
  16. _
  17. WINDOW *    curscr    T{
  18. .fi
  19. current version of the screen (terminal screen).
  20. T}
  21. WINDOW *    stdscr    T{
  22. standard screen.  Most updates are usually done here.
  23. T}
  24. char *    Def\*_term    T{
  25. default terminal type if type cannot be determined
  26. T}
  27. bool    My\*_term    T{
  28. use the terminal specification in \fIDef\*_term\fR as terminal,
  29. irrelevant of real terminal type
  30. T}
  31. char *    ttytype    T{
  32. full name of the current terminal.
  33. T}
  34. int    LINES    T{
  35. number of lines on the terminal
  36. T}
  37. int    COLS    T{
  38. number of columns on the terminal
  39. T}
  40. int    ERR    T{
  41. error flag returned by routines on a fail.
  42. T}
  43. int    OK    T{
  44. error flag returned by routines when things go right.
  45. T}
  46. .TE
  47. .pp
  48. There are also several
  49. .q #define
  50. constants and types
  51. which are of general usefulness:
  52. .sp
  53. .ev 1
  54. .ta 11n
  55. .(b L
  56. .nf
  57. reg    storage class ``register'' (\fIe.g.\fP, \fIreg int i;\fR\|)
  58. bool    boolean type, actually a ``char'' (\fIe.g.\fP, \fIbool doneit;\fR\|)
  59. TRUE    boolean ``true'' flag (1).
  60. FALSE    boolean ``false'' flag (0).
  61. .fi
  62. .ev
  63. .)b
  64. .lp
  65.