• R/O
  • SSH
  • HTTPS

ttssh2: コミット


コミットメタ情報

リビジョン7098 (tree)
日時2018-04-16 21:51:54
作者doda

ログメッセージ

setspeed マクロコマンドを追加 #38183

setcomspeed とかの方がいいかもしれない

変更サマリ

差分

--- trunk/teraterm/common/helpid.h (revision 7097)
+++ trunk/teraterm/common/helpid.h (revision 7098)
@@ -368,6 +368,7 @@
368368 #define HlpMacroCommandSetMulticastName 92146
369369 #define HlpMacroCommandSetPassword 92196
370370 #define HlpMacroCommandSetrts 92136
371+#define HlpMacroCommandSetspeed 92217
371372 #define HlpMacroCommandSetsync 92084
372373 #define HlpMacroCommandSettime 92085
373374 #define HlpMacroCommandSettitle 92086
--- trunk/teraterm/ttpmacro/ttmparse.c (revision 7097)
+++ trunk/teraterm/ttpmacro/ttmparse.c (revision 7098)
@@ -377,6 +377,7 @@
377377 else if (_stricmp(Str,"setflowctrl")==0) *WordId = RsvSetFlowCtrl;
378378 else if (_stricmp(Str,"setpassword")==0) *WordId = RsvSetPassword; // add 'setpassword' (2012.5.23 yutaka)
379379 else if (_stricmp(Str,"setrts")==0) *WordId = RsvSetRts; // add 'setrts' (2008.3.12 maya)
380+ else if (_stricmp(Str,"setspeed")==0) *WordId = RsvSetBaud;
380381 else if (_stricmp(Str,"setsync")==0) *WordId = RsvSetSync;
381382 else if (_stricmp(Str,"settime")==0) *WordId = RsvSetTime;
382383 else if (_stricmp(Str,"settitle")==0) *WordId = RsvSetTitle;
--- trunk/doc/ja/html/macro/command/setbaud.html (revision 7097)
+++ trunk/doc/ja/html/macro/command/setbaud.html (revision 7098)
@@ -53,7 +53,7 @@
5353 <h2>例</h2>
5454
5555 <pre class="macro-example">
56-; change speed to 115200bps
56+; change speed to 115200 bps
5757
5858 ; less than version 4.66
5959 setbaud 12
--- trunk/doc/ja/html/macro/command/getmodemstatus.html (revision 7097)
+++ trunk/doc/ja/html/macro/command/getmodemstatus.html (revision 7098)
@@ -66,9 +66,9 @@
6666
6767 <h2>参照</h2>
6868 <ul>
69- <li><a href="setbaud.html">setbaud</a></li>
7069 <li><a href="setdtr.html">setdtr</a></li>
7170 <li><a href="setrts.html">setrts</a></li>
71+ <li><a href="setspeed.html">setspeed</a></li>
7272 </ul>
7373
7474 </body>
--- trunk/doc/ja/html/macro/command/index.html (revision 7097)
+++ trunk/doc/ja/html/macro/command/index.html (revision 7098)
@@ -69,6 +69,7 @@
6969 <li><a href="setflowctrl.html">setflowctrl</a> (バージョン 4.94以降)
7070 <li><a href="setmulticastname.html">setmulticastname</a> (バージョン 4.62以降)
7171 <li><a href="setrts.html">setrts</a> (バージョン 4.59以降)
72+ <li><a href="setspeed.html">setspeed</a> (バージョン 4.99以降)
7273 <li><a href="setsync.html">setsync</a>
7374 <li><a href="settitle.html">settitle</a>
7475 <li><a href="showtt.html">showtt</a>
--- trunk/doc/ja/html/macro/command/setspeed.html (revision 0)
+++ trunk/doc/ja/html/macro/command/setspeed.html (revision 7098)
@@ -0,0 +1,37 @@
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=Shift_JIS">
6+ <title>setspeed</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>setspeed</h1>
15+
16+<p>
17+シリアルポートのスピードを変更する。
18+</p>
19+
20+<pre class="macro-syntax">
21+setspeed &lt;value&gt;
22+</pre>
23+
24+<h2>解説</h2>
25+<p>
26+シリアルポートのスピードを &lt;value&gt; bps に変更します。
27+</p>
28+
29+<h2>例</h2>
30+
31+<pre class="macro-example">
32+; change speed to 115200 bps
33+setspeed 115200
34+</pre>
35+
36+</body>
37+</html>
--- trunk/doc/ja/html/about/history.html (revision 7097)
+++ trunk/doc/ja/html/about/history.html (revision 7098)
@@ -37,6 +37,7 @@
3737 <ul>
3838 <li>コマンドラインオプションでポート番号の代わりにサービス名を受け付けるようにした。</li>
3939 <li><a href="../commandline/teraterm.html#speed">/SPEED=</a> コマンドラインオプションを追加した。動作は <a href="../commandline/teraterm.html#baud">/BAUD=</a>と同じ。</li>
40+ <li><a href="../macro/command/setspeed.html">setspeed</a> マクロコマンドを追加した。</li>
4041 </ul>
4142 </li>
4243
--- trunk/doc/en/html/macro/command/setbaud.html (revision 7097)
+++ trunk/doc/en/html/macro/command/setbaud.html (revision 7098)
@@ -53,7 +53,7 @@
5353 <h2>Example</h2>
5454
5555 <pre class="macro-example">
56-; change speed to 115200
56+; change speed to 115200 bps
5757
5858 ; less than version 4.66
5959 setbaud 12
--- trunk/doc/en/html/macro/command/index.html (revision 7097)
+++ trunk/doc/en/html/macro/command/index.html (revision 7098)
@@ -69,6 +69,7 @@
6969 <li><a href="setflowctrl.html">setflowctrl</a> (version 4.94 or later)
7070 <li><a href="setmulticastname.html">setmulticastname</a> (version 4.62 or later)
7171 <li><a href="setrts.html">setrts</a> (version 4.59 or later)
72+ <li><a href="setspeed.html">setspeed</a> (version 4.99 or later)
7273 <li><a href="setsync.html">setsync</a>
7374 <li><a href="settitle.html">settitle</a>
7475 <li><a href="showtt.html">showtt</a>
--- trunk/doc/en/html/macro/command/getmodemstatus.html (revision 7097)
+++ trunk/doc/en/html/macro/command/getmodemstatus.html (revision 7098)
@@ -66,9 +66,9 @@
6666
6767 <h2>See also</h2>
6868 <ul>
69- <li><a href="setbaud.html">setbaud</a></li>
7069 <li><a href="setdtr.html">setdtr</a></li>
7170 <li><a href="setrts.html">setrts</a></li>
71+ <li><a href="setspeed.html">setspeed</a></li>
7272 </ul>
7373
7474 </body>
--- trunk/doc/en/html/macro/command/setspeed.html (revision 0)
+++ trunk/doc/en/html/macro/command/setspeed.html (revision 7098)
@@ -0,0 +1,39 @@
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>setspeed</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>setspeed</h1>
15+
16+<p>
17+Causes Tera Term to change speed of serial port.
18+</p>
19+
20+<pre class="macro-syntax">
21+setspeed &lt;value&gt;
22+</pre>
23+
24+<h2>Description</h2>
25+
26+<p>
27+Causes Tera Term to change speed of serial port to &lt;value&gt; bps.
28+</p>
29+
30+
31+<h2>Example</h2>
32+
33+<pre class="macro-example">
34+; change speed to 115200 bps
35+setspeed 115200
36+</pre>
37+
38+</body>
39+</html>
--- trunk/doc/en/html/about/history.html (revision 7097)
+++ trunk/doc/en/html/about/history.html (revision 7098)
@@ -37,6 +37,7 @@
3737 <ul>
3838 <li>Accept service name instead of the port number on the command line option.</li>
3939 <li>added the <a href="../commandline/teraterm.html#speed">/SPEED=</a> command line option which behavior is same as the <a href="../commandline/teraterm.html#baud">/BAUDE=</a> command line option.</li>
40+ <li>added the <a href="../macro/command/setspeed.html">setspeed</a> command.</li>
4041 </ul>
4142 </li>
4243
旧リポジトリブラウザで表示