Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Setting the console application text before the cursor

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

>Solution :

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

Hope that helps!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading