Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: Strange symbols receving on after read
coolandy2012

From: Bolton, United Kingdom
Posts: 28
Member Since: 04/04/11
posted May 10, 2011 5:57 AM

I am currently receiving data on telnet session:
//Receive data from connected server
byte[] buffer = new byte[1024];
Data data;
data = teln.Read(buffer, 0, 1024);
string receive = System.Text.Encoding.ASCII.GetString(buffer);

I am then printing the output to a file:
tw.WriteLine("Receive buffer =\n{0}", receive);

However in file,I see strange symbols being output after sending two lines using Telnet.Write (vt100 and zsh):

Receive buffer =
Last successful login for root: Tue May 10 10:35:03 2011 on ttyp1
Last unsuccessful login for root: Mon Mar 28 15:02:56 2011 on ttyp0

             SCO OpenServer(TM) Release 6

       (C) 1976-2005 The SCO Group, Inc. and its suppliers.
               All rights reserved.

            For complete copyright credits,
          enter "copyrights" at the command prompt.

you have mail
TERM = (tty)
Waited on TERM
Sending vt100
Sending zsh
Receive buffer =
vt100

Receive buffer =
zsh

Receive buffer =
>[?3l[?4l[?5l[?7h[?8h
Receive buffer =
>[?3l[?4l[?5l[?7h[?8h
Receive buffer =

Receive buffer =
Terminal type is vt100

Receive buffer =
573E-GILLINGH-JSC#
573E-GILLINGH-JSC#

Why do the strange symbols appear?
Nick B (Admin)

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

Extra Support Options
Custom Application Development

posted May 10, 2011 9:53 AM

Hello,

Those characters are VT control characters and escape sequences sent from your server. Our Emulation for .NET component can interpret those sequences, and format and display the data as indicated by your server. You may find its product page here http://www.dart.com/ptemnet.aspx or contact sales@dart.com for purchasing options.
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX