[Ttssh2-commit] [5760] チケット #34788

svnno****@sourc***** svnno****@sourc*****
2015年 1月 9日 (金) 00:54:41 JST


Revision: 5760
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5760
Author:   yutakapon
Date:     2015-01-09 00:54:37 +0900 (Fri, 09 Jan 2015)
Log Message:
-----------
チケット #34788
"CD DSR CTS RI"の信号レベルを検出するコマンド

getmodemstatus マクロコマンドのヘルプを記載した。

Ticket Links:
------------
    http://sourceforge.jp/projects/ttssh2/tracker/detail/34788

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/macro/command/index.html
    trunk/doc/en/teraterm.hhc
    trunk/doc/en/teraterm.hhp
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/macro/command/index.html
    trunk/doc/ja/teraterm.hhc
    trunk/doc/ja/teraterm.hhp

Added Paths:
-----------
    trunk/doc/en/html/macro/command/getmodemstatus.html
    trunk/doc/ja/html/macro/command/getmodemstatus.html

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/en/html/about/history.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -35,6 +35,7 @@
   <li>Changes
     <ul>
       <li>When the [Reset Terminal] on the <a href="../menu/control.html">[Control]</a> is called, the color setup with OSC 10/11 will be reseted.</li>
+      <li>added the <a href="../macro/command/getmodemstatus.html">getmodemstatus</a> command.</li>
     </ul>
   </li>
 

Copied: trunk/doc/en/html/macro/command/getmodemstatus.html (from rev 5758, trunk/doc/en/html/macro/command/gettitle.html)
===================================================================
--- trunk/doc/en/html/macro/command/getmodemstatus.html	                        (rev 0)
+++ trunk/doc/en/html/macro/command/getmodemstatus.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -0,0 +1,73 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+  <title>getmodemstatus</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>getmodemstatus</h1>
+
+<p>
+Retrieves the modem control-register values.
+</p>
+
+<pre class="macro-syntax">
+getmodemstatus &lt;intvar&gt;
+</pre>
+
+<h2>Remarks</h2>
+
+<p>
+Retrieves the modem control-register values from the serial port.
+</p>
+
+The &lt;intvar&gt; variable can be one or more of the following values.
+<pre>
+1  The CTS (clear-to-send) signal is on.
+2  The DSR (data-set-ready) signal is on.
+4  The ring indicator signal is on.
+8  The RLSD (receive-line-signal-detect) signal is on.
+</pre>
+
+<p>
+If the command succeeds, the system variable "result" is set to 0.
+If the command fails, the variable is set to 1.
+</p>
+
+<h2>Example</h2>
+
+<pre class="macro-example">
+testlink
+if result=0 then
+  connect '/C=1'
+  pause 3
+endif
+
+getmodemstatus val
+
+if result=0 then
+  sprintf2 str "val = %d(%x)" val val
+  messagebox str "Result value"
+  if val & 2 > 0 then
+    ; DSR signal is enabled.
+    messagebox "DSR on" "Message"
+  endif
+else
+  messagebox "failed" "ERROR"
+endif
+</pre>
+
+<h2>Reference</h2>
+
+<a href="setbaud.html">setbaud</a><br>
+<a href="setdtr.html">setdtr</a><br>
+<a href="setrts.html">setrts</a><br>
+
+</body>
+</html>

Modified: trunk/doc/en/html/macro/command/index.html
===================================================================
--- trunk/doc/en/html/macro/command/index.html	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/en/html/macro/command/index.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -32,6 +32,7 @@
  <li><a href="enablekeyb.html">enablekeyb</a>
  <li><a href="flushrecv.html">flushrecv</a>
  <li><a href="gethostname.html">gethostname</a> (version 4.61 or later)
+ <li><a href="getmodemstatus.html">getmodemstatus</a> (version 4.86 or later)
  <li><a href="gettitle.html">gettitle</a>
  <li><a href="kmtfinish.html">kmtfinish</a>
  <li><a href="kmtget.html">kmtget</a>

Modified: trunk/doc/en/teraterm.hhc
===================================================================
--- trunk/doc/en/teraterm.hhc	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/en/teraterm.hhc	2015-01-08 15:54:37 UTC (rev 5760)
@@ -687,6 +687,11 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="getmodemstatus">
+					<param name="Local" value="html\macro\command\getmodemstatus.html">
+					<param name="ImageNumber" value="11">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="gettitle">
 					<param name="Local" value="html\macro\command\gettitle.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/en/teraterm.hhp
===================================================================
--- trunk/doc/en/teraterm.hhp	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/en/teraterm.hhp	2015-01-08 15:54:37 UTC (rev 5760)
@@ -225,6 +225,7 @@
 HlpMacroCommandGethostname=html\macro\command\gethostname.html
 HlpMacroCommandGetipv4addr=html\macro\command\getipv4addr.html
 HlpMacroCommandGetipv6addr=html\macro\command\getipv6addr.html
+HlpMacroCommandGetmodemstatus=html\macro\command\getmodemstatus.html
 HlpMacroCommandGetpassword=html\macro\command\getpassword.html
 HlpMacroCommandGetspecialfolder=html\macro\command\getspecialfolder.html
 HlpMacroCommandGettime=html\macro\command\gettime.html

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/ja/html/about/history.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -35,6 +35,7 @@
   <li>\x95ύX
     <ul>
       <li><a href="../menu/control.html">[Control]</a> \x83\x81\x83j\x83\x85\x81[\x82\xCC [Reset Terminal] \x82\xC5 OSC 10/11 \x82Őݒ肵\x82\xBD\x90F\x82\xE0\x83\x8A\x83Z\x83b\x83g\x82\xB7\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li>
+      <li><a href="../macro/command/getmodemstatus.html">getmodemstatus</a> \x83}\x83N\x83\x8D\x83R\x83}\x83\x93\x83h\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B</li>
     </ul>
   </li>
 

Copied: trunk/doc/ja/html/macro/command/getmodemstatus.html (from rev 5758, trunk/doc/ja/html/macro/command/gettitle.html)
===================================================================
--- trunk/doc/ja/html/macro/command/getmodemstatus.html	                        (rev 0)
+++ trunk/doc/ja/html/macro/command/getmodemstatus.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -0,0 +1,74 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
+  <title>getmodemstatus</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>getmodemstatus</h1>
+
+<p>
+\x83\x82\x83f\x83\x80\x82̐\xA7\x8C䃌\x83W\x83X\x83^\x92l\x82\xF0\x8E擾\x82\xB7\x82\xE9\x81B
+</p>
+
+<pre class="macro-syntax">
+getmodemstatus &lt;intvar&gt;
+</pre>
+
+<h2>\x89\xF0\x90\xE0</h2>
+
+<p>
+\x83V\x83\x8A\x83A\x83\x8B\x83|\x81[\x83g\x82\xA9\x82烂\x83f\x83\x80\x90\xA7\x8C䃌\x83W\x83X\x83^\x82̒l\x82\xF0\x93ǂݏo\x82\xB7\x81B
+</p>
+
+&lt;intvar&gt; \x95ϐ\x94\x82́A\x89\xBA\x8BL\x82̒萔\x82̑g\x82ݍ\x87\x82킹\x82ƂȂ\xE9\x81B
+<pre>
+1  CTS\x81i \x91\x97\x90M\x89j\x90M\x8D\x86\x82\xAA\x83I\x83\x93\x82ł\xB7\x81B
+2  DSR\x81i \x83f\x81[\x83^\x83Z\x83b\x83g\x83\x8C\x83f\x83B\x81j\x90M\x8D\x86\x82\xAA\x83I\x83\x93\x82ł\xB7\x81B
+4  \x8CĂяo\x82\xB5\x90M\x8D\x86\x82\xAA\x83I\x83\x93\x82ł\xB7\x81B
+8  RLSD\x81i \x8E\xF3\x90M\x90\xFC\x90M\x8D\x86\x8C\x9F\x8Fo\x81j\x90M\x8D\x86\x82\xAA\x83I\x83\x93\x82ł\xB7\x81B
+</pre>
+
+<p>
+\x93ǂݏo\x82\xB5\x82ɐ\xAC\x8C\x{1C2D42}\xBD\x8Fꍇ\x82\xCD result \x95ϐ\x94\x82\xAA 0 \x82ƂȂ邪\x81A\x8E\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x82\xCD 1 \x82ƂȂ\xE9\x81B
+</p>
+
+
+<h2>\x97\xE1</h2>
+
+<pre class="macro-example">
+testlink
+if result=0 then
+  connect '/C=1'
+  pause 3
+endif
+
+getmodemstatus val
+
+if result=0 then
+  sprintf2 str "val = %d(%x)" val val
+  messagebox str "Result value"
+  if val & 2 > 0 then
+    ; DSR\x90M\x8D\x86\x82\xAA\x83I\x83\x93\x8E\x9E\x82̏\x88\x97\x9D
+    messagebox "DSR on" "Message"
+  endif
+else
+  messagebox "failed" "ERROR"
+endif
+</pre>
+
+
+<h2>\x8EQ\x8F\xC6</h2>
+
+<a href="setbaud.html">setbaud</a><br>
+<a href="setdtr.html">setdtr</a><br>
+<a href="setrts.html">setrts</a><br>
+
+</body>
+</html>

Modified: trunk/doc/ja/html/macro/command/index.html
===================================================================
--- trunk/doc/ja/html/macro/command/index.html	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/ja/html/macro/command/index.html	2015-01-08 15:54:37 UTC (rev 5760)
@@ -32,6 +32,7 @@
  <li><a href="enablekeyb.html">enablekeyb</a>
  <li><a href="flushrecv.html">flushrecv</a>
  <li><a href="gethostname.html">gethostname</a> (\x83o\x81[\x83W\x83\x87\x83\x93 4.61\x88ȍ~)
+ <li><a href="getmodemstatus.html">getmodemstatus</a> (\x83o\x81[\x83W\x83\x87\x83\x93 4.86\x88ȍ~)
  <li><a href="gettitle.html">gettitle</a>
  <li><a href="kmtfinish.html">kmtfinish</a>
  <li><a href="kmtget.html">kmtget</a>

Modified: trunk/doc/ja/teraterm.hhc
===================================================================
--- trunk/doc/ja/teraterm.hhc	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/ja/teraterm.hhc	2015-01-08 15:54:37 UTC (rev 5760)
@@ -699,6 +699,10 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="getmodemstatus">
+					<param name="Local" value="html\macro\command\getmodemstatus.html">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="gettitle">
 					<param name="Local" value="html\macro\command\gettitle.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/ja/teraterm.hhp
===================================================================
--- trunk/doc/ja/teraterm.hhp	2015-01-08 15:19:02 UTC (rev 5759)
+++ trunk/doc/ja/teraterm.hhp	2015-01-08 15:54:37 UTC (rev 5760)
@@ -235,6 +235,7 @@
 HlpMacroCommandGethostname=html\macro\command\gethostname.html
 HlpMacroCommandGetipv4addr=html\macro\command\getipv4addr.html
 HlpMacroCommandGetipv6addr=html\macro\command\getipv6addr.html
+HlpMacroCommandGetmodemstatus=html\macro\command\getmodemstatus.html
 HlpMacroCommandGetpassword=html\macro\command\getpassword.html
 HlpMacroCommandGetspecialfolder=html\macro\command\getspecialfolder.html
 HlpMacroCommandGettime=html\macro\command\gettime.html



Ttssh2-commit メーリングリストの案内