チケット #27837

Receiving New Line = CR appears to not work correctly

登録: 2012-03-15 08:18 最終更新: 2012-04-11 00:34

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

詳細

When I select "CR"as new line-character in "Settings -> Terminal Settings" (hopefully translated correctly from my German version) for receiving, it appears to behave like "LF" was selected: When a CR is received, no new line is generated, only when LF is reveived. (CR+LF appear to work correct, but this generated 2 new lines when CR+LF is used as end-of-line).

In my application this is quite annoying (as both CR and CR+LF are used as end-of-line), therefore it would be great if this could be fixed. (I am using TeraTerm 4.73)

Thank you and regards,

Thomas

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

2012-03-15 08:18 更新者: None
  • 新しいチケット "Receiving New Line = CR appears to not work correctly" が作成されました
2012-03-15 09:08 更新者: (del#1144)
  • コンポーネント(未割り当て) から Tera Term に更新されました
コメント

Please read "New-line (receive)" section of Manual.

2012-03-19 23:21 更新者: None
コメント

Please read "New-line (receive)" section of Manual.

Thank you very much for the clarification, I was not aware of this.

May I change this report to a "feature request"?

Like mentioned before, I have an application where both CR and CR+LF are used as end-of-lines. Would it be possible to add one of this two behaviors for receiving:

1. CR is interpreted as "new-line" (CR+LF), LF is ignored, or

2. "Auto-mode": Either CR+LF, LF+CR, LF or CR is accepted as "new-line" (CR+LF), e.g.: text CR LF CR LF text -> 2 new lines, text LF CR LF CR text -> 2 new lines, text CR CR text -> 2 new lines, text CR LF CR text -> 2 new lines

Maybe you can also hint me to where I can find this in the source-code so I can make the change myself.

Thank you,

Thomas

2012-03-27 12:20 更新者: (del#1144)
  • チケットの種類バグ から 機能リクエスト に更新されました
コメント

We will discuss about this request.

Here is svn repository to checkout source code. http://svn.sourceforge.jp/svnroot/ttssh2/trunk

2012-04-02 00:11 更新者: (del#1144)
コメント

What system uses "LF+CR" as new-line?

New-line is parsed in ParseControl()#vtterm.c. If you can send a patch for auto detect, we will apply in trunk.

2012-04-09 09:10 更新者: None
コメント

Reply To maya

What system uses "LF+CR" as new-line? New-line is parsed in ParseControl()#vtterm.c. If you can send a patch for auto detect, we will apply in trunk.

Sorry for the late reply, I just saw your reply now. Thanks for the info, I will try to implement it ASAP (however, right now I am very busy with something else, so it might take a few days...).

Regards,

Thomas

P.S.: LF+CR: I don't know, maybe some embedded system who's programmer mixed it up by mistake ;-)

2012-04-10 01:11 更新者: tentner
コメント

Hi,

I was impatient and did it right away...

Attached you can find the patch, I hope you can accept it. According to my tests, it works fine.

I also realized that "ts->CRReceive" is also used in the ParseFirst() function in tekesc.c, I was not sure what to do about this and did not do any changes there.

Regards,

Thomas

2012-04-10 10:34 更新者: None
コメント

One more thing: I have not (yet) updated the docu and comment in the .ini-file. Do you want me to do that or will you do it?

Regards,

Thomas

2012-04-11 00:34 更新者: (del#1144)
コメント

How can we see the patch?

2012-04-12 09:48 更新者: tentner
コメント

Sorry, for some reason it got not attached the first time... (Maybe forgot to hit the transmit-button?)

添付ファイルリスト

編集

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