home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / crssrc16 / doc.iv < prev    next >
Text File  |  1993-07-29  |  2KB  |  85 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. .\"    @(#)doc.IV    6.1 (Berkeley) 4/23/86
  7. .\"
  8. .Ds
  9. .Fd gettmode
  10. .De
  11. Get the tty stats.
  12. This is normally called by
  13. .Fn initscr .
  14. .Ds
  15. .Fd mvcur lasty\*,lastx\*,newy\*,newx
  16. int    lasty\*,lastx\*,newy\*,newx;
  17. .De
  18. Moves the terminal's cursor from
  19. .Vn lasty\*,lastx ) (
  20. to
  21. .Vn newy\*,newx ) (
  22. in an approximation of optimal fashion.
  23. This routine uses the functions borrowed from
  24. .i ex
  25. version 2.6.
  26. It is possible to use this optimization
  27. without the benefit of the screen routines.
  28. With the screen routines, this should not be called by the user.
  29. .Fn move
  30. and
  31. .Fn refresh
  32. should be used to move the cursor position,
  33. so that the routines know what's going on.
  34. .Ds
  35. .Fd scroll win
  36. WINDOW    *win;
  37. .De
  38. Scroll the window upward one line.
  39. This is normally not used by the user.
  40. .Ds
  41. .Fd savetty "" \*m
  42. .Fd resetty "" \*m
  43. .De
  44. .Fn savetty
  45. saves the current tty characteristic flags.
  46. .Fn resetty
  47. restores them to what
  48. .Fn savetty
  49. stored.
  50. These functions are performed automatically by
  51. .Fn initscr
  52. and
  53. .Fn endwin .
  54. .Ds
  55. .Fd setterm name
  56. char    *name;
  57. .De
  58. Set the terminal characteristics to be those of the terminal named
  59. .Vn name ,
  60. getting the terminal size from the
  61. .b TIOCGWINSZ
  62. .Fn ioctl "" "" 2
  63. if it exists,
  64. otherwise from the environment.
  65. This is normally called by
  66. .Fn initscr .
  67. .Ds
  68. .Fd tstp
  69. .De
  70. If the new
  71. .b tty (4)
  72. driver is in use,
  73. this function
  74. will save the current tty state
  75. and then put the process to sleep.
  76. When the process gets restarted,
  77. it restores the tty state
  78. and then calls
  79. .Fn wrefresh "" "" curscr
  80. to redraw the screen.
  81. .Fn initscr
  82. sets the signal
  83. SIGTSTP
  84. to trap to this routine.
  85.