Skip to content

Commit

Permalink
Merge branch '380-save_senddialog_options'
Browse files Browse the repository at this point in the history
  • Loading branch information
zmatsuo committed Nov 28, 2024
2 parents 69eb9df + 9799f7d commit bcf53d1
Show file tree
Hide file tree
Showing 41 changed files with 500 additions and 196 deletions.
7 changes: 5 additions & 2 deletions doc/en/html/about/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ <h3 id="teraterm_5.4">YYYY.MM.DD (Ver 5.4 not released yet)</h3>
</ul>
<li>All available character codes can be specified using command line options.</li>
<li>Supports "COM%d" style serial ports of com0com (virtual serial port driver), which are not Ports class.</li>
<li>Changed initial directory for file select dialog of send file to <a href="../setup/folder.html#FileDir">File transfer folder</a>.</li>
<li>SendFile options are saved in TERATERM.INI.</li>
</ul>
</li>

Expand All @@ -70,6 +72,7 @@ <h3 id="teraterm_5.4">YYYY.MM.DD (Ver 5.4 not released yet)</h3>
<li>Fixed to handle U+20000 to U+3FFFF of UTF-8.</li>
<li>Fixed display characters containing surrogate pair character when "<a href="../menu/setup-additional-font.html#ResizedFont">Drawing resized font to fit cell width</a>"
<li>MACRO: Fixed <a href="../macro/command/getenv.html">getenv</a>, <a href="../macro/command/expandenv.html">expandenv</a> and <a href="../macro/command/setenv.html">setenv</a> macro commands were not Unicode-compatible.</li>
<li>Fixed B-plus send is not working</li>
</ul>
</li>

Expand Down Expand Up @@ -101,7 +104,7 @@ <h3 id="teraterm_5.3">2024.09.08 (Ver 5.3)</h3>
<li>General setup dialog is now shown the information from <a href="../menu/setup-additional-general.html#UILanguageFile">Language file</a> which is selected.</a>
<li>"Default port" settings is moved to <a href="../menu/setup-additional-general.html#Port">General tab</a> of Additional settings dialog from General setup dialog.</li>
<li>Removed Language setting from General setup dialog.</li>
<li>Download folder setting is moved to <a href="../menu/setup-additional-general.html#DownloadFolder">General tab</a> of Additional settings dialog.</li>
<li>Download folder setting is moved to <a href="../menu/setup-additional-general.html#FileFolder">General tab</a> of Additional settings dialog.</li>
<li>Added ViewlogEditor argument on <a href="../menu/setup-additional-log.html#ViewlogEditorArg">Log Tab</a> in Additional settings dialog.</li>
<li>Setup - Font was integrated into <a href="../menu/setup-additional-font.html">Font tab</a> of Additional settings dialog.</li>
<li>Keyboard setup dialog is moved to <a href="../menu/setup-additional-keyboard.html">Keyboard tab</a> of Additional settings dialog.</li>
Expand Down Expand Up @@ -152,7 +155,7 @@ <h3 id="teraterm_5.3">2024.09.08 (Ver 5.3)</h3>
<li>Apply changes even if only No Frame is changed at Window setup dialog.</li>
<li>Fixed the issue where specifying the <a href="../commandline/teraterm.html#v">/V option</a> with ttermpro.exe would cause a crash upon exit.</li>
<li>Fixed window maximization works immediately after startup.</li>
<li>Added <a href="../setup/folder.html#DownloadDir">download folder</a> for log saving folder same as Tera Term 4.</li>
<li>Added <a href="../setup/folder.html#FileDir">download folder</a> for log saving folder same as Tera Term 4.</li>
<li>MACRO: Fixed <a href="../macro/command/send.html">send</a> macro command could not send $00.</li>
<li>MACRO: Fixed <a href="../macro/command/clipb2var.html">clipb2var</a> macro command is not working.</li>
<li>MACRO: Fixed path of <a href="../macro/command/basename.html">basename</a> and <a href="../macro/command/dirname.html">dirname</a> macro commands were not Unicode-compatible.</li>
Expand Down
16 changes: 11 additions & 5 deletions doc/en/html/macro/command/changedir.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1>changedir</h1>

<p>
Changes the Download directory.
Changes the File transfer directory.
</p>

<pre class="macro-syntax">
Expand All @@ -24,19 +24,25 @@ <h1>changedir</h1>
<h2>Remarks</h2>

<p>
Changes the Download directory for Tera Term to &lt;path&gt;.
Changes the File transfer directory for Tera Term to &lt;path&gt;.
</p>

<p>
File names specified for the communication commands (e.g. kmtsend) are based on the current directory for Tera Term.
File name specified for the send communication commands (e.g. sendfile, kmtsend) and destination folder for receive commands (e.g. zmodemrecv) are based on the "File transfer directory for Tera Term."
</p>

<p>
You must specify a fullpath name to the communication commands (e.g. sendfile, kmtsend) because these commands are not affected by `changedir' command.
You must specify a fullpath name to the communication commands because these commands are not affected by `changedir' command.
</p>

<h3>Note</h3>

<p>
The changedir command changes "File transfer directory for Tera Term."<br>
The <a href="setdir.html">setdir</a> command changes "current working directory for MACRO."<br>
</p>
<p>
The download folder also affects log storage.
The File transfer folder also affects log save location.
Reffer to <a href="../../setup/folder.html#TermLogDir">Folder to put setup files</a>.
</p>

Expand Down
10 changes: 9 additions & 1 deletion doc/en/html/macro/command/setdir.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ <h2>Remarks</h2>
</p>

<p>
File names specified for other commands (e.g. fileopen) are based on the current directory for MACRO.
File names specified for other commands (e.g. fileopen) are based on the "current working directory for MACRO."
</p>

<h3>Note</h3>

<p>
The setdir command changes "current working directory for MACRO."<br>
The <a href="changedir.html">changedir</a> command changes "File transfer directory for Tera Term."
</p>

<h2>Example</h2>
Expand All @@ -39,6 +46,7 @@ <h2>Example</h2>

<h2>See also</h2>
<ul>
<li><a href="getdir.html">setdir</a></li>
<li><a href="changedir.html">changedir</a></li>
</ul>

Expand Down
2 changes: 1 addition & 1 deletion doc/en/html/menu/file-chdir.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<body>
<h1>Change directory ([File] menu)</h1>
<p>
Open <a href="../menu/setup-additional-general.html#DownloadFolder">General tab</a> of Additional settings dialog.
Open <a href="../menu/setup-additional-general.html#FileFolder">General tab</a> of Additional settings dialog.
</p>
</body>
</html>
18 changes: 13 additions & 5 deletions doc/en/html/menu/file-sendfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>"Send file" dialog box (to input the file name)</h2>
By dropping a file into dialog, You can also enter file name.
</dd>

<dt>Send in same way as Tera Term 4</dt>
<dt id="Method4">Send in same way as Tera Term 4</dt>
<dd>
<dl>
<dt>Checked(same way as Tera Term 4)</dt>
Expand All @@ -38,14 +38,14 @@ <h2>"Send file" dialog box (to input the file name)</h2>
</dl>
</dd>

<dt>Binary</dt>
<dt id="Binary">Binary</dt>
<dd>
If you select this option, received characters are sent without any
modifications. Otherwise, new-line codes are converted and control
characters (except TAB, LF and CR) are stripped out.
</dd>

<dt>delay type</dt>
<dt id="DelayType">delay type</dt>
<dd>
<dl>
<dt>no delay</dt>
Expand All @@ -71,17 +71,25 @@ <h2>"Send file" dialog box (to input the file name)</h2>

</dd>

<dt>send size</dt>
<dt id="Size">send size</dt>
<dd>
Send size (valid when delay type is "per sendsize")
</dd>

<dt>delay time(ms)</dt>
<dt id="DelayTick">delay time(ms)</dt>
<dd>
Delay time (valid when delay type is not "no delay")
</dd>
</dl>

<h3>Special options in the Tera Term setup file</h3>
See also the following settings
<ul>
<li><a href="../setup/teraterm-trans.html#FileSendHighSpeedMode">High Speed File Transfer on Serial Connection (When [same way as Tera Term 4]=on)</a>
<li><a href="../setup/teraterm-trans.html#SendfileSkipOptionDialog">Skip Send file dialog</a>
</ul>


<h3>Send size</h3>

<p>
Expand Down
4 changes: 2 additions & 2 deletions doc/en/html/menu/file-transfer-kermit-get.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ <h1>Kermit Get ([File] Transfer menu)</h1>

<h2>"Kermit Get" dialog box</h2>
<p>
Enter the file name to be received. The received file is stored
in the current directory.
Enter the file name to be received.<br>
The received file is stored in the <a href="../setup/folder.html#FileDir">File transfer foler</a>.
</p>
</body>
</html>
8 changes: 4 additions & 4 deletions doc/en/html/menu/setup-additional-general.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ <h1>Additional settings / "General" Tab ([Setup] Menu)</h1>
</dl>
</dd>

<dt id="DownloadFolder">Download Folder</dt>
<dt id="FileFolder">File transfer folder</dt>
<dd>
Sets directory for file transfer.<br>
Sets directory for file transfer (send and receive).<br>
Environment variables (ex "%USERPROFILE%\Downloads") are expanded when included.<br>
If not set, <a href="../setup/folder.html#DownloadDir">default download folder</a> is used.<br>
If not set, Download folder of Windows <a href="../setup/folder.html#FileDir">is used</a>.<br>
The current folder can be check in <a href="../menu/setup-directory.html">Setup Directory</a>.<br>
This can be change with <a href="../macro/command/changedir.html">changedir macro command</a>.
From MACRO, this can be change with <a href="../macro/command/changedir.html">changedir macro command</a>.
</dd>
</dl>

Expand Down
12 changes: 6 additions & 6 deletions doc/en/html/setup/folder.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ <h1>Folders used by Tera Term</h1>
<li><code>%LOCALAPPDATA%\teraterm5</code></li>
</ul>
</li>
<li id="DownloadDir">download folder(Priority order, below is used when not set)
<li id="FileDir">File transfer (Priority order, below is used when not set)
<ol>
<li><a href="../menu/setup-additional-general.html#DownloadFolder">download folder</a></li>
<li><a href="../menu/setup-additional-general.html#FileFolder">File transfer folder</a></li>
<li><code>%USERPROFILE%\Downloads</code></li>
</ol>
</li>
<li id="TermLogDir">Terminal log folder(Priority order, below is used when not set)
<ol>
<li><a href="../menu/setup-additional-log.html#LogDefaultPath">Default log save folder</a></li>
<li><a href="../menu/setup-additional-general.html#DownloadFolder">download folder</a></li>
<li><a href="../menu/setup-additional-general.html#FileFolder">File transfer folder</a></li>
<li><code>%LOCALAPPDATA%\teraterm5</code></li>
</ol>
</li>
Expand All @@ -56,16 +56,16 @@ <h1>Folders used by Tera Term</h1>
<li>a folder which is exist exe file + <code>\log</code></li>
</ul>
</li>
<li>download folder(Priority order, below is used when not set)
<li>File transfer (Priority order, below is used when not set)
<ol>
<li><a href="../menu/setup-additional-general.html#DownloadFolder">download folder</a></li>
<li><a href="../menu/setup-additional-general.html#FileFolder">File transfer folder</a></li>
<li><code>%USERPROFILE%\Downloads</code></li>
</ol>
</li>
<li>Terminal log folder(Priority order, below is used when not set)
<ol>
<li><a href="../menu/setup-additional-log.html#LogDefaultPath">Default log save folder</a></li>
<li><a href="../menu/setup-additional-general.html#DownloadFolder">download folder</a></li>
<li><a href="../menu/setup-additional-general.html#FileFolder">File transfer folder</a></li>
<li>a folder which is exist exe file + <code>\log</code></li>
</ol>
</li>
Expand Down
32 changes: 31 additions & 1 deletion doc/en/html/setup/teraterm-ini.html
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,36 @@ <h2>Tera Term</h2>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="SendfileDelayTick"><a href="../menu/file-sendfile.html#DelayTick">SendfileDelayTick</a></td>
<td style="width:250px;">0</td>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="SendfileDelayType"><a href="../menu/file-sendfile.html#DelayType">SendfileDelayType</a></td>
<td style="width:250px;">NoDelay</td>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="SendfileMethod4"><a href="../menu/file-sendfile.html#Method4">SendfileMethod4</a></td>
<td style="width:250px;">off</td>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="SendfileSize"><a href="../menu/file-sendfile.html#Size">SendfileSize</a></td>
<td style="width:250px;">4096</td>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="SendfileSkipOptionDialog"><a href="../setup/teraterm-trans.html#SendfileSkipOptionDialog">SendfileSkipOptionDialog</a></td>
<td style="width:250px;">off</td>
<td style="width:250px;">&lt;-</td>
<td></td>
</tr>
<tr>
<td id="ScpSendDir">ScpSendDir</td>
<td style="width:250px;"></td>
Expand Down Expand Up @@ -1298,7 +1328,7 @@ <h2>Tera Term</h2>
<td></td>
</tr>
<tr>
<td id="TransBin">TransBin</td>
<td id="TransBin"><a href="../menu/file-sendfile.html#Binary">TransBin</a></td>
<td style="width:250px;">off</td>
<td style="width:250px;">&lt;-</td>
<td></td>
Expand Down
19 changes: 19 additions & 0 deletions doc/en/html/setup/teraterm-trans.html
Original file line number Diff line number Diff line change
Expand Up @@ -483,5 +483,24 @@ <h1 id="FileSendHighSpeedMode">High Speed File Transfer on Serial Connection</h1
</pre>


<h1 id="SendfileSkipOptionDialog">Skip Send file dialog</h1>

<p>
When <a href="../menu/file-sendfile.html">[File]-[Send file...]</a> is selected, Send file dialog box appears.<br>
If same options are always used, you can send files only by file selection.
</p>

<pre>
SendfileSkipOptionDialog=on
</pre>

<pre>
default:
SendfileSkipOptionDialog=off
</pre>

When [File]-[Send file...] is selected with holding down CTRL key,
You can temporarily switch on/off behavior.

</BODY>
</HTML>
1 change: 1 addition & 0 deletions doc/en/html/setup/teraterm.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ <h3>File transfer</h3>
<li><a href="teraterm-trans.html#draganddrop">Confirmation of File Transfer by Drag &amp; Drop</a></li>
<li><a href="teraterm-trans.html#hidetransdialog">File Transfer Dialog is hidden</a></li>
<li><a href="teraterm-trans.html#FileSendHighSpeedMode">High Speed File Transfer on Serial Connection</a></li>
<li><a href="teraterm-trans.html#SendfileSkipOptionDialog">Skip Send file dialog</a></li>
</ul>

<h3>Printing</h3>
Expand Down
5 changes: 4 additions & 1 deletion doc/ja/html/about/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ <h3 id="teraterm_5.4">YYYY.MM.DD (Ver 5.4 not released yet)</h3>
</ul>
<li>コマンドラインオプションで使用可能文字コードを全て指定できるようにした。</li>
<li>com0com(virtual serial port driver) の Ports class ではない "COM%d" 形式のシリアルポートを選択できるようにした。</li>
<li>送信ファイルを選択するダイアログの初期ディレクトリが<a href="../setup/folder.html#FileDir">ファイル転送用のフォルダ</a>になるようにした。</li>
<li>ファイル送信オプションをTERATERM.INIに保存するようにした。</li>
</ul>
</li>

Expand All @@ -70,6 +72,7 @@ <h3 id="teraterm_5.4">YYYY.MM.DD (Ver 5.4 not released yet)</h3>
<li>UTF-8 の U+20000 から U+3FFFF を正しく扱うよう修正した。</li>
<li>"<a href="../menu/setup-additional-font.html#ResizedFont">Drawing resized font to fit cell width</a>" が on のとき、サロゲートペアの文字が存在したとき正しく表示するよう修正した。</li>
<li>MACRO: <a href="../macro/command/getenv.html">getenv</a>, <a href="../macro/command/expandenv.html">expandenv</a>, <a href="../macro/command/setenv.html">setenv</a> マクロコマンド が Unicode に対応していなかったので修正した。</li>
<li>B-Plusの送信ができなくなっていたので修正した。</li>
</ul>
</li>

Expand Down Expand Up @@ -101,7 +104,7 @@ <h3 id="teraterm_5.3">2024.09.08 (Ver 5.3)</h3>
<li>General setup ダイアログで、選択されている <a href="../menu/setup-additional-general.html#UILanguageFile">言語ファイル</a>の情報を表示するようにした。</li>
<li>General setup ダイアログの Language 設定を削除した。</li>
<li>"Default port" 設定を General setup ダイアログから Additional settings の <a href="../menu/setup-additional-general.html#Port">General タブ</a>へ移動した。</li>
<li>ダウンロードフォルダの設定を Additional settings の <a href="../menu/setup-additional-general.html#DownloadFolder">General タブ</a>へ移動した。</li>
<li>ダウンロードフォルダの設定を Additional settings の <a href="../menu/setup-additional-general.html#FileFolder">General タブ</a>へ移動した。</li>
<li>ViewlogEditor の引数を Additional settings の <a href="../menu/setup-additional-log.html#ViewlogEditorArg">Log タブ</a>に追加した。</li>
<li>Setup-Font 設定を Additional settings の <a href="../menu/setup-additional-font.html">Font タブ</a>へ統合した。</li>
<li>Keyboard setup ダイアログを Additional settings の <a href="../menu/setup-additional-keyboard.html">Keyboard タブ</a>へ移動した。</li>
Expand Down
16 changes: 11 additions & 5 deletions doc/ja/html/macro/command/changedir.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1>changedir</h1>

<p>
Tera Term のダウンロードディレクトリを変更する
Tera Term のファイル転送用ディレクトリを変更する
</p>

<pre class="macro-syntax">
Expand All @@ -24,19 +24,25 @@ <h1>changedir</h1>
<h2>解説</h2>

<p>
Tera Term のダウンロードディレクトリを &lt;path&gt; に変更する。
Tera Term のファイル転送用ディレクトリを &lt;path&gt; に変更する。
</p>

<p>
通信コマンド(kmtsend 等)で指定されるファイル名は Tera Term の現在のディレクトリを基準にする
通信コマンドの送信時(sendfile, kmtsend 等)に指定されるファイル名、受信コマンド(zmodemrecv 等)のファイル保存先は "Tera Term のファイル転送用ディレクトリ" を基準にする
</p>

<p>
通信コマンド(sendfile, kmtsend等)に指定されるファイル名は、changedirコマンドの影響を受けないため、絶対パスである必要がある。
通信コマンドに指定されるファイル名は、changedirコマンドの影響を受けないため、絶対パスである必要がある。
</p>

<h3>注意</h3>

<p>
changedir コマンドは "Tera Term のファイル転送用ディレクトリ" を変更する。<br>
<a href="setdir.html">setdir</a> コマンドは "MACRO のカレントディレクトリ" を変更する。<br>
</p>
<p>
ダウンロードフォルダはログの保存にも影響します
ファイル転送用フォルダはログの保存先にも影響します
<a href="../../setup/folder.html#TermLogDir">Tera Term が使用するフォルダ</a>を参照ください。
</p>

Expand Down
4 changes: 2 additions & 2 deletions doc/ja/html/macro/command/getdir.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1>getdir</h1>

<p>
MACRO の現在のディレクトリを得る
MACRO のカレントディレクトリを得る
</p>

<pre class="macro-syntax">
Expand All @@ -24,7 +24,7 @@ <h1>getdir</h1>
<h2>解説</h2>

<p>
(Tera Term ではなく) MACRO の現在のディレクトリを文字列変数 &lt;strvar&gt; に格納する。<br>
(Tera Term ではなく) "MACRO のカレントディレクトリ" を文字列変数 &lt;strvar&gt; に格納する。<br>
ルートディレクトリの場合、文字列の末尾には円記号 (\) が付く。ルート以外のディレクトリの場合、文字列はディレクトリ名で終わり、末尾に円記号は付かない。
</p>

Expand Down
Loading

0 comments on commit bcf53d1

Please sign in to comment.