任务单 #37617

Status box formatting issues

开放日期: 2017-10-31 05:17 最后更新: 2017-11-13 01:37

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

Details

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)".

任务单历史 (3/12 Histories)

2017-10-31 05:17 Updated by: None
  • New Ticket "Status box formatting issues" created
2017-10-31 15:18 Updated by: (del#1144)
评论

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

2017-10-31 15:18 Updated by: (del#1144)
  • 处理结果 Update from to Works For Me
  • 组件 Update from Tera Term to Tera Term Macro
2017-11-01 00:03 Updated by: 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 Updated by: 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 Updated by: 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:51 Updated by: (del#1144)
评论

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

2017-11-13 01:37 Updated by: (del#1144)
评论

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,

Attachment File List

编辑

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