PDA

Click to See Complete Forum and Search --> : Telnet Command


Jeremy Martin
Feb 25th, 2000, 02:22 PM
As I am close to finishing my telnet server I only have one issue to wrap up, maybee someone here can help. The last part of my program needs, or I would very much like, it to clear the screen of the client. Does anyone know of a telnet command that I can send of the winsock connection that will tell the client to clear the screen. If there is not I guess it wouldn't be then end of the work it would be kind of nice if there was.

Jeremy :)

privoli
Feb 26th, 2000, 10:21 AM
Jeremy,

Did you want to type in a command when connected to your telnet server via telnet that clears the clients telnet window?

For example... in telnet I type in...

"clear"

without the " " and your telnet server clears the telnet screen. If thats what you are after, I dont know how to do that, all I can think of is when you send a specific keyword, such as 'clear' your server sends say 20 blank lines....

sckOutbound.senddata vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf & vbcrlf

That won't give you the clear screen effect but will give you something somewhat similar...

Cheers

Jeremy Martin
Feb 26th, 2000, 01:09 PM
That is infact what I am looking for, that is when the user sends the command "clear" to the server I want the server to tell the client to clear the screen. I am having the server send like 20 blank lines to the client, which I guess will have to be ok, but I wish there was away just to clear the screen because it just looks kind of funny when text starts scrolling up on a blank page.

Jeremy :)