Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: Escape sequences showing in my app
dblood2

From: USA
Posts: 5
Member Since: 11/13/13
posted August 29, 2014 4:45 PM

Here's the thing. I used the TelnetClient 3.5 sample app and added a few things in to make it do what I needed it to do. I was completely happy until I tried to automate a process within the emulator. 

I copied the vt1 component and the telnet1 component from the sample into another form. My intentions are to have the user view the automated session, but not be able to interact with it. 

The escape sequences in the original sample form are read perfectly with double-high, double-wide characters, and the formatting of the menu driven screens. 

In the new form, the output shows the escape sequences instead of interpreting them.

I've spent the entire day comparing the controls, and going back and forth trying to figure out what's different between the sample and my new form. I find no differences, and I still can't figure out how to make it work the way the sample form does.

I'm out of ideas, could anyone throw out anything else I can try?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted September 2, 2014 11:33 AM

If there are no differences between your usage of the VT and Telnet classes within your application, perhaps the cause is the TerminalType property for VT and/or Telnet, configured within the designer code-behind?
dblood2

From: USA
Posts: 5
Member Since: 11/13/13
posted September 2, 2014 1:04 PM

Nick,

Thanks for responding. I'll check that out. Pretty sure I tried that on Friday but I'll do it again. Will let you know if I find out anything new.
dblood2

From: USA
Posts: 5
Member Since: 11/13/13
posted September 3, 2014 4:12 PM

Nick, (and anyone else who has the same problem)

I finally figured out what was happening, and I feel a little stupid for even posting now. 

In the telnet.Data event, I was using the
vt.Write(string) overload. I misread the documentation multiple times. Apparently, one would use this overload when NO encoding is required. I changed up to use vt.Write(Byte(), Integer, Integer) which does interpret the escape sequences and formats correctly.

Thanks again for trying to help.
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted September 3, 2014 4:55 PM

Thank you for the update and I am glad you were able to find a solution.
 
Please do not hesitate to contact us in the future if needed. We are always here to help.
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX