]> granicus.if.org Git - python/commitdiff
Document the new setupterm() function
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 18 Nov 2000 17:57:33 +0000 (17:57 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 18 Nov 2000 17:57:33 +0000 (17:57 +0000)
Doc/lib/libcurses.tex

index 20c2717d57d778e8e6da984a7cab9ad0d56d6779..c82bed2e9aabf8d93beecbc09655fc6bef52377c 100644 (file)
@@ -421,6 +421,13 @@ Sets the virtual screen cursor to \var{y}, \var{x}.
 If \var{y} and \var{x} are both -1, then leaveok is set.  
 \end{funcdesc}
 
+\begin{funcdesc}{setupterm}{\optional{termstr, fd}}
+Initializes the terminal.  \var{termstr} is a string giving the
+terminal name; if omitted, the value of the TERM environment variable
+will be used.  \var{fd} is the file descriptor to which any initialization sequences will be sent; if not supplied, the file descriptor for 
+\code{sys.stdout} will be used.
+\end{funcdesc}
+
 \begin{funcdesc}{start_color}{}
 Must be called if the programmer wants to use colors, and before any
 other color manipulation routine is called.  It is good