Browse Subversion Repository
Contents of /trunk/doc/en/html/macro/command/loginfo.html
Parent Directory
| Revision Log
Revision 8939 -
( show annotations)
( download)
( as text)
Thu Oct 1 16:06:58 2020 UTC
(3 years, 7 months ago)
by nmaya
File MIME type: text/html
File size: 1722 byte(s)
マクロコマンドが Tera Term バージョンいくつから存在するか、それぞれのマクロコマンドのヘルプページに記載
ticket #40808
MFT to: 4-stable
| 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>loginfo</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>loginfo</h1> |
| 15 |
|
| 16 |
<p> |
| 17 |
Retrieves Tera Term log status. <em>(version 4.73 or later)</em> |
| 18 |
</p> |
| 19 |
|
| 20 |
<pre class="macro-syntax"> |
| 21 |
loginfo <strvar> |
| 22 |
</pre> |
| 23 |
|
| 24 |
<h2>Remarks</h2> |
| 25 |
|
| 26 |
<p> |
| 27 |
When Tera Term is logging, the file name stores in the strvar variable and the flag status of log starting is stored in the system variable "result".<br> |
| 28 |
On the contrary, when Tera Term is not logging, the system variable "result" is set to -1. |
| 29 |
</p> |
| 30 |
<p> |
| 31 |
The system variable "result" is bitwise OR in the following value: |
| 32 |
</p> |
| 33 |
|
| 34 |
<table> |
| 35 |
<tr> |
| 36 |
<th>Value</th> |
| 37 |
<th>Meaning</th> |
| 38 |
</tr> |
| 39 |
<tr> |
| 40 |
<td>1</td> |
| 41 |
<td>Binary flag</td> |
| 42 |
</tr> |
| 43 |
<tr> |
| 44 |
<td>2</td> |
| 45 |
<td>Append flag</td> |
| 46 |
</tr> |
| 47 |
<tr> |
| 48 |
<td>4</td> |
| 49 |
<td>Plain text flag</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td>8</td> |
| 53 |
<td>Timestamp flag</td> |
| 54 |
</tr> |
| 55 |
<tr> |
| 56 |
<td>16</td> |
| 57 |
<td>Hide dialog flag</td> |
| 58 |
</tr> |
| 59 |
</table> |
| 60 |
|
| 61 |
|
| 62 |
<h2>Example</h2> |
| 63 |
|
| 64 |
<pre class="macro-example"> |
| 65 |
loginfo logfile |
| 66 |
|
| 67 |
if result == -1 then |
| 68 |
; When Tera Term is not logging, a new log is started. |
| 69 |
logopen "test.log" 0 0 0 1 |
| 70 |
|
| 71 |
elseif result & 8 == 0 then |
| 72 |
flags = result |
| 73 |
; When the log timestamp is disabled, a new log with timestamp is re-opened. |
| 74 |
logclose |
| 75 |
logopen logfile 0 1 flags&4 1 flags&16 |
| 76 |
endif |
| 77 |
</pre> |
| 78 |
|
| 79 |
|
| 80 |
<h2>See also</h2> |
| 81 |
<ul> |
| 82 |
<li><a href="logopen.html">logopen</a></li> |
| 83 |
</ul> |
| 84 |
|
| 85 |
</body> |
| 86 |
</html> |
|