| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 6 |
<title>dispstr</title> |
| 7 |
<meta http-equiv="Content-Style-Type" content="text/css"> |
| 8 |
<link rel="stylesheet" href="../../style.css" type="text/css"> |
| 9 |
</head> |
| 10 |
|
| 11 |
<body> |
| 12 |
|
| 13 |
|
| 14 |
<h1>dispstr</h1> |
| 15 |
|
| 16 |
<p> |
| 17 |
Displays character on the client terminal screen. <em>(version 4.67 or later)</em> |
| 18 |
</p> |
| 19 |
|
| 20 |
<pre class="macro-syntax"> |
| 21 |
dispstr <data1> [<data2>....] |
| 22 |
</pre> |
| 23 |
|
| 24 |
<h2>Remarks</h2> |
| 25 |
|
| 26 |
<p> |
| 27 |
Causes Tera Term to display characters on the client terminal screen.<br> |
| 28 |
If the <data> is a string type, the string is directly displayed on the terminal screen. <br> |
| 29 |
If the <data> is an integer type, its lowest-order byte (0-255) is regarded as an ASCII code of the character, and the corresponding character is displayed on the terminal screen. |
| 30 |
</p> |
| 31 |
|
| 32 |
<h2>Example</h2> |
| 33 |
|
| 34 |
<pre class="macro-example"> |
| 35 |
dispstr 'ABC' |
| 36 |
|
| 37 |
; Display "ABC". (ASCII code of the character "A" is 65.) |
| 38 |
dispstr 65 66 67 |
| 39 |
myname='Tera Term' |
| 40 |
dispstr 'My name is ' myname '.' |
| 41 |
|
| 42 |
; Clear your terminal screen by using the escape sequence. |
| 43 |
dispstr #$1B"[2J" |
| 44 |
|
| 45 |
; Display "Message" string along the X=20, Y=10 coordinate in your terminal screen. |
| 46 |
dispstr #$1B"[10;20HMessage" |
| 47 |
|
| 48 |
; Move your terminal screen to the X=100, Y=200 coordinate in the desktop. |
| 49 |
dispstr #$1B"[3;100;200t" |
| 50 |
</pre> |
| 51 |
|
| 52 |
<pre class="macro-example"> |
| 53 |
; Change terminal size to 80x24 |
| 54 |
dispstr #$1b"[8;24;80t" |
| 55 |
|
| 56 |
; demo |
| 57 |
for y 24 30 |
| 58 |
x = 80 |
| 59 |
while x < 100 |
| 60 |
sprintf #$1b"[8;%d;%dt" y x |
| 61 |
dispstr inputstr |
| 62 |
x = x + 5 |
| 63 |
pause 1 |
| 64 |
endwhile |
| 65 |
next |
| 66 |
</pre> |
| 67 |
|
| 68 |
<pre class="macro-example"> |
| 69 |
connect '/C=1' |
| 70 |
if result == 1 then |
| 71 |
dispstr 'Error opening COM1' ; Command error because of not connection. |
| 72 |
elseif result == 2 then |
| 73 |
dispstr 'Successfully opened COM1' |
| 74 |
endif |
| 75 |
end |
| 76 |
</pre> |
| 77 |
|
| 78 |
<h2>Note</h2> |
| 79 |
|
| 80 |
<p> |
| 81 |
The remote host can not recognize the dispstr output data. So, the terminal screen may not display properly because the buffer of the terminal screen differs from the remote host screen. |
| 82 |
</p> |
| 83 |
|
| 84 |
<p> |
| 85 |
When Tera Term does not connect to the host, this macro command can not be executed. |
| 86 |
</p> |
| 87 |
|
| 88 |
</body> |
| 89 |
</html> |