任务单 #23072

dispstr macro command bug

开放日期: 2010-09-08 02:13 最后更新: 2011-03-30 21:15

报告人:
(匿名)
属主:
(无)
类型:
状态:
开启
组件:
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
文件:
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

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 Histories)

2010-09-08 02:13 Updated by: None
  • New Ticket "dispstr macro command bug" created
2011-03-30 21:15 Updated by: (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

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名