clear screen, please help

I used Windows API in my vb.net program to clear screen.
It works from telnet session using ANSI terminal. But when I executed the same program  using a vt220 emulation terminal, the user input will not be cleared.
Any help will be appreciated...

Thanks.

Ann

weizhang700Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
meidanzeConnect With a Mentor Commented:
What are the escape you are using?
try ESC+[H+ESC+[J.
when escape is 27 dec or 33 octal.
0
 
weizhang700Author Commented:
Thanks for your reply.

I use console.writeLine("\033[H\033[J") in vb.net, but it prints the the exact string.
Any idea for that?

Thanks again for your help.

Ann
0
 
weizhang700Author Commented:
Thanks. Fixed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.