チケット #37617

Status box formatting issues

登録: 2017-10-31 05:17 最終更新: 2017-11-13 01:37

報告者: (匿名) 担当者: (未割り当て)
チケットの種類: バグ 状況: オープン
コンポーネント: Tera Term Macro マイルストーン: (未割り当て)
優先度: 5 - 中 重要度: 5 - 中
解決法: 動いてるけど?

詳細

Formatting is incorrect when using status box with special characters ("\n"). For example:

strspecial str '\nInstructions:\n\n  1) Instrument must be unlocked.\n  2) Ensure instrument is off.\n  3) Connect the serial cable.\n  4) Insert SD card with desired version into the instrument.\n  5) Power on instrument.\n '

statusbox str "Instrument Display Board Upgrade"

:WAIT_FOR_BOOT
timeout = 3
waitln 'Blah blah'		
if !result goto WAIT_FOR_BOOT

Last line is cut off, as is the last word in line "4)".

添付ファイルリスト

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

2017-10-31 05:17 更新者: None
  • 新しいチケット "Status box formatting issues" が作成されました
2017-10-31 15:15 更新者: maya
  • 添付ファイル Clipboard01.png (File ID: 5352) が付加されました
2017-10-31 15:18 更新者: maya
コメント

This issue was not reproduced in my environment, Tera Term 4.96 on Windows 8.1.

2017-10-31 15:18 更新者: maya
  • 解決法なし から 動いてるけど? に更新されました
  • コンポーネントTera Term から Tera Term Macro に更新されました
2017-10-31 23:55 更新者: jmckenna
  • 添付ファイル Capture.JPG (File ID: 5353) が付加されました
2017-10-31 23:56 更新者: jmckenna
  • 添付ファイル Capture2.JPG (File ID: 5354) が付加されました
2017-11-01 00:03 更新者: jmckenna
コメント

Reply To (Anonymous)

Thank you for looking at this issue Maya. I am seeing different results, as you can see. I notice there is a slightly newer version available - I will update and try it. I also notice that your font / formatting looks different (for example, the title bar is centered instead of left justified). I am using Windows 10 with (I believe) the default settings for text size / font / style. I'd be happy to change to a different style if that would fix the issue - if you could provide the info for what you're using. Thanks. -James

2017-11-01 00:10 更新者: jmckenna
コメント

Reply To jmckenna

Reply To (Anonymous) Thank you for looking at this issue Maya. I am seeing different results, as you can see. I notice there is a slightly newer version available - I will update and try it. I also notice that your font / formatting looks different (for example, the title bar is centered instead of left justified). I am using Windows 10 with (I believe) the default settings for text size / font / style. I'd be happy to change to a different style if that would fix the issue - if you could provide the info for what you're using. Thanks. -James

I just updated to 4.96. Sadly this did not fix the issue. Any suggestions would be welcome. Thank you.

2017-11-07 02:23 更新者: None
コメント

OK, I found a workaround. It seems that this happens only the first time that TeraTerm opens a status box. So the workaround is to add a "dummy" status box right before you pop the first real status box. For example:

statusbox "foo" "bar"

Note that after using "closesbox", the problem seems to reoccur on the next status box. So you need to open a dummy status box again before popping up the real one.

I admit this is a hack, but it fixes the problem for me.

Note: I am using TeraTerm 4.96 with Windows 10 and current with all Microsoft updates. Problem also existed in 4.93, and though I did not test this workaround I would guess it will probably work.

2017-11-07 12:48 更新者: maya
  • 添付ファイル Win10.png (File ID: 5355) が付加されました
2017-11-07 12:51 更新者: maya
コメント

Hmm. I run this macro at Windows 10, and Tera Term 4.96. But this issue did not reproduce.

2017-11-13 01:37 更新者: maya
コメント

This snapshot shows a debug message box when statusbox command.

https://osdn.net/downloads/users/16/16276/snapshot-20171113-maya-statusbox.zip

Please let us know result of statusbox, like followings:

---------------------------
CStatDlg::Update
---------------------------
WW=116 WH=83 TW=457 TH=162 s.cx=416 s.cy=162
---------------------------
OK   
---------------------------

---------------------------
CStatDlg::Relocation
---------------------------
init=1 TW=457 WW=465 WH=199
---------------------------
OK   
---------------------------

And result of when use dummy statusbox and repeat statusbox.

Thanks,

編集

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