TeraTermProject / teraterm

Other
389 stars 31 forks source link

コマンドの長さが行の幅以上になると、出力ログには行の最後の文字が二重出力されてしまう #237

Open necsk opened 2 weeks ago

necsk commented 2 weeks ago

これ、仕様通りでしょうか。

手動入力の場合、スペースが出力されてしまった。 コマンド: image ログ: image

コピー&ペーストの場合、行末の文字が二回出力されてしまった。 コマンド: image ログ: image

version [Tera Term 4.106]

necsk commented 1 week ago

and I think Ver 5.2 has the same problem.

zmatsuo commented 1 week ago

Thank you for reporting. Are you using a terminal multiplexer such as tmux?

necsk commented 1 week ago

@zmatsuo No, I think I used ttermpro.exe directly.

zmatsuo commented 1 week ago

Hi Please let me know result of running the attached macro.

237.ttl.txt

My result is as follows

export PS1="$ "
[?2004l
[?2004h$ echo -e "\x1b[8;10;20t"
[?2004l

[?2004h$ echo -e 1234567890\\n1234567890\\n1234567890
[?2004l
1234567890
1234567890
1234567890
[?2004h$ echo -e $TERM, $SHELL
[?2004l
xterm, /bin/bash
[?2004h$ echo 1234567890123456789012345678901234567890
[?2004l
1234567890123456789012345678901234567890
[?2004h$ echo 12345678901234567890123456789012345678901234567890123456789012345678901234567890
[?2004l
12345678901234567890123456789012345678901234567890123456789012345678901234567890
[?2004h$
zmatsuo commented 6 days ago

sendtext macro command is very new command. Please replace with send command. Or use snapshot. https://ci.appveyor.com/project/teraterm/github-main/builds/50117897/artifacts

necsk commented 1 day ago

@zmatsuo

sorry for the late replay. here is my running result (yes, I changed sendtext to send as you have said). and I checked my log and some chars were output duplicated :(

237-send.ttl.txt

log.txt

image

zmatsuo commented 1 day ago

Thank you. @necsk

But I can't reproduce. 🤔

どなたか再現できますか?