チケット #23072

dispstr macro command bug

登録: 2010-09-08 02:13 最終更新: 2011-03-30 21:15

報告者:
(匿名)
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
なし
投票
点数: 0
No votes
0.0% (0/0)
0.0% (0/0)

詳細

Today I installed Tera Term 4.67 and tried the new dispstr macro function. I believe there is a bug. I found that the connect command must return a result of 2 in order for dispstr to work. Even though a result of 1 from connect is enough to link the macro to a TeraTerm console, dispstr will not display the string.

For example, I do not have a COM5 on my system, so the following macro opens a TeraTerm console window but does *not* display the string 'hello' in the TeraTerm window:

connect '/C=5'
dispstr 'hello'

I do have a COM1 on my system, so the following macro produces the expected result:

connect '/C=1'
dispstr 'hello'

I believe a macro like this could be useful:

connect '/C=1'
if result == 1 then
  dispstr 'Error opening COM1'
elseif result == 2 then
  dispstr 'Successfully opened COM1'
endif

I also believe that a dispstr command should link MACRO to a new TeraTerm window if one is not already linked, but that is more of a feature request.

チケットの履歴 (2 件中 2 件表示)

2010-09-08 02:13 更新者: None
  • 新しいチケット "dispstr macro command bug" が作成されました
2011-03-30 21:15 更新者: (del#24082)
コメント

Hi,

Currently, the dispstr command can not be executed while Tera Term does not connect to the host. This is not bug but specification. However, the macro document is further explanation, and I have updated the document.

cf. http://ttssh2.sourceforge.jp/manual/en/macro/command/dispstr.html

添付ファイルリスト

添付ファイルはありません

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする