Home > Software design >  Setting the console application text before the cursor
Setting the console application text before the cursor

Time:12-24

In Console Applications how do you set the text before the cursor?

For those who may have worked on ArcInfo Workstation a command line application, they had different modules and depending on the module you work in the command line would change to show the different modules. e.g.

GRID:\>[Cursor here.]
GRID:\>TIN [Enter Key Press]
TIN:>[Cursor here.]

Basic Console App

The Title property and WriteLine() methods are well known but how do you set the text before the cursor?

CodePudding user response:

Console.WriteLine() sets your cursor on the next line, while Console.Write() - doesn't.

Hope that helps!

  •  Tags:  
  • c#
  • Related