S
S
Spooky 20202021-02-12 02:59:44
Windows
Spooky 2020, 2021-02-12 02:59:44

Pseudo graphics in the Windows console. How it's done?

OS Windows 10, .NET 5.0

I'm trying to make the console menu in the form of a list, similar to how it's done in FAR or Northon.
I need to somehow highlight the menu item with color when the cursor has been moved (by the keyboard) to it.

What are the options:
Set the cursor to the coordinates of the cell and reprint the content by selecting the text color / background?
Or clear the entire console by setting the desired cell color when the cursor prints the previously selected item?

So far I've tried using the Console.MoveBufferArea method for this. It works, but a little not as it should.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-02-12
@vabka

There is one library. gui.cs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question