home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / emx / bsd / curses / doc / doc.iv < prev    next >
Encoding:
Text File  |  1991-04-17  |  3.5 KB  |  111 lines

  1. .\" Copyright (c) 1980 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\"    notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\"    notice, this list of conditions and the following disclaimer in the
  11. .\"    documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\"    must display the following acknowledgement:
  14. .\"    This product includes software developed by the University of
  15. .\"    California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\"    may be used to endorse or promote products derived from this software
  18. .\"    without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\"    @(#)doc.IV    6.3 (Berkeley) 4/17/91
  33. .\"
  34. .Ds
  35. .Fd gettmode
  36. .De
  37. Get the tty stats.
  38. This is normally called by
  39. .Fn initscr .
  40. .Ds
  41. .Fd mvcur lasty\*,lastx\*,newy\*,newx
  42. int    lasty\*,lastx\*,newy\*,newx;
  43. .De
  44. Moves the terminal's cursor from
  45. .Vn lasty\*,lastx ) (
  46. to
  47. .Vn newy\*,newx ) (
  48. in an approximation of optimal fashion.
  49. This routine uses the functions borrowed from
  50. .i ex
  51. version 2.6.
  52. It is possible to use this optimization
  53. without the benefit of the screen routines.
  54. With the screen routines, this should not be called by the user.
  55. .Fn move
  56. and
  57. .Fn refresh
  58. should be used to move the cursor position,
  59. so that the routines know what's going on.
  60. .Ds
  61. .Fd scroll win
  62. WINDOW    *win;
  63. .De
  64. Scroll the window upward one line.
  65. This is normally not used by the user.
  66. .Ds
  67. .Fd savetty "" \*m
  68. .Fd resetty "" \*m
  69. .De
  70. .Fn savetty
  71. saves the current tty characteristic flags.
  72. .Fn resetty
  73. restores them to what
  74. .Fn savetty
  75. stored.
  76. These functions are performed automatically by
  77. .Fn initscr
  78. and
  79. .Fn endwin .
  80. .Ds
  81. .Fd setterm name
  82. char    *name;
  83. .De
  84. Set the terminal characteristics to be those of the terminal named
  85. .Vn name ,
  86. getting the terminal size from the
  87. .b TIOCGWINSZ
  88. .Fn ioctl "" "" 2
  89. if it exists,
  90. otherwise from the environment.
  91. This is normally called by
  92. .Fn initscr .
  93. .Ds
  94. .Fd tstp
  95. .De
  96. If the new
  97. .b tty (4)
  98. driver is in use,
  99. this function
  100. will save the current tty state
  101. and then put the process to sleep.
  102. When the process gets restarted,
  103. it restores the tty state
  104. and then calls
  105. .Fn wrefresh "" "" curscr
  106. to redraw the screen.
  107. .Fn initscr
  108. sets the signal
  109. SIGTSTP
  110. to trap to this routine.
  111.