VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Incoming CR -> CR/LF (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Incoming CR -> CR/LF
#1229
Incoming CR -> CR/LF 14 Years, 11 Months ago  
HyperTerminal, which I despise, has a feature that I unfortunately need. When doing simple terminal emulation (not telnet), and connected to a COM port, under the File/Properties/Settings/ASCII Setup menu there is an "Append Line Feeds to Incoming Line Ends" check box, and the strange application I am communicating to needs that. Is there anyway to make AbsoluteTelnet do this too? In other words, when the application I'm talking to sends a carriage return, I want a line feed added.

[ December 14, 2005, 05:12 PM: Message edited by: Brian T. Pence ]
edmunds007 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1230
Re: Incoming CR -> CR/LF 14 Years, 11 Months ago  
Nick,

I'll look into it. Shouldn't be hard.

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1231
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
Nick,

Give this a try:

http://www.celestialsoftware.net/telnet/...teTelnet4.04RC22.exe

Your option is at the top right on the Options->Properties->VTOptions page.

Let me know how it goes.
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1232
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
This doesn't work exactly right. When I set CR->CR/LF (and LF->LF), I get what looks like two CR/LFs. I can't find any permutation that changes the incoming CR to just a LF/CR, if I understand it correctly. Is it possible that when the original CR is translated to a CR/LF, the "new" CR gets translated a second time into CR/LF?

I don't think the system I'm communicating to ever sends a LF itself.

Thanks for working on this.

-- Nick
edmunds007 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1233
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
I should make this a bit clearer -- when the system I'm communicating to sends a CR on its own your software correctly replaces it with CR/LF, which is great. When I send a CR via completing a command on the keyboard when talking to the system (i.e. >foo CR) and it is echoed back, the CR is echoed twice, as it were. This isn't the end of the world, however, and if it's hard to fix that's not really a problem.
edmunds007 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1234
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
What you're probably seeing is a result of a CR/LF being sent from the host. The first CR is changed to a CR/LF, then the LF linefeeds again.

Perhaps a better behavior would be to only add a LF after the CR if one does not already exist.

In your situation, you may have different behaviors inside of your application and at the command line.

I'll see what I can do.

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1235
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
Brian,

Without your change, a CR from the command prompt (i.e., sent to the system) would be echoed back as a CR only -- no LF attached. It appears now the I get two CR/LF's, as the command prompt is echoed twice. That is:

Prompt> foo <CR>

comes back with

Prompt>
Prompt>

on the next two lines. Ideally there would be just one 'Prompt>' afterwards. But as I said this isn't a very big deal, and your change fixes my largest problem.
edmunds007 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#1236
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
What is the value of your setting of
Options->Properties->VTOptions->Enter Sends?

If you get two prompts, it seems unlikely to be related to the new feature, which would only interpret data on the way in. If you got two prompts, it must be something else.

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1237
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
Nick,

Just wanted to ping you on whether you've been able to research this further. Before I can release this feature into the mainstream release, we need to clear up the remaining issues to ensure that is implemented correctly. Can you send me a logfile of your session (File->Open Log/File->Close LOG)

Brian
bpence (Admin)
Admin
Posts: 1343
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#1238
Re: Incoming CR -> CR/LF 14 Years, 10 Months ago  
Brian,

Thanks, I emailed you an annotated log file.

-- Nick
edmunds007 (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
Go to top