1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00
elua/doc/en/term_doc.html

97 lines
1.8 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Language" content="en-us">
<title>Product</title><link rel="stylesheet" type="text/css" href="./style.css"></head>
<body bgcolor="#ffffff">
<h3><a name="over"></a>term</h3>
<p>
<br>
</p>
<p>
[term.clear] term.clrscr(): clear the screen
</p>
<p>
&nbsp;
</p>
<p>
[term.cleareol] term.clreol(): clear from the current cursor position to the end of the line
</p>
<p>
&nbsp;
</p>
<p>
[term.moveto] term.gotoxy( x, y ): position the cursor at the given coordinates
</p>
<p>
&nbsp;
</p>
<p>
[term.moveup] term.up( delta ): move the cursor up "delta" lines
</p>
<p>
&nbsp;
</p>
<p>
[term.movedown] term.down( delta ): move the cursor down "delta" lines
</p>
<p>
&nbsp;
</p>
<p>
[term.moveleft] term.left( delta ): move the cursor left "delta" lines
</p>
<p>
&nbsp;
</p>
<p>
[term.moveright] term.right( delta ): move the cursor right "delta" lines
</p>
<p>
&nbsp;
</p>
<p>
[term.getlinecount] Lines = term.lines(): returns the number of lines
</p>
<p>
&nbsp;
</p>
<p>
[term.getcolcount] Cols = term.cols(): returns the number of columns
</p>
<p>
&nbsp;
</p>
<p>
[term.printchar] term.put( c1, c2, ... ): writes the specified character(s) to the terminal
</p>
<p>
&nbsp;
</p>
<p>
[term.printstr] term.putstr( s1, s2, ... ): writes the specified string(s) to the terminal
</p>
<p>
&nbsp;
</p>
<p>
[term.getx] Cx = term.cursorx(): return the cursor X position
</p>
<p>
&nbsp;
</p>
<p>
[term.gety] Cy = term.cursory(): return the cursor Y position
</p>
<p>
&nbsp;
</p>
<p>
<font size="2">[term.inputchar] c = term.getch( term.WAIT | term.NOWAIT ): returns a char read from the </font>
</p>
<font size="2">&nbsp; terminal.</font></body></html>