Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to write a simple console application that clears the screen. The standard ESC [2J does not work. What do I need to set to have it use ASCII codes?

 

Do samples of simple console applictions exist anywhere?

 

 

Module Module1

 

Dim X As String

 

Sub Main()

 

Console.WriteLine("HELLO!")

 

Console.Write(Convert.ToChar(91))

Console.Write(Convert.ToChar(50))

Console.Write(Convert.ToChar(74))

 

Console.WriteLine("HELLO AGAIN!")

 

Console.Read()

 

End Sub

 

End Module

 

This code returns:

 

HELLO!

[2JHELLO AGAIN!

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...