Reputation: 11
ANSI.SYS
is missing in windows 8.1; so how do I create cursor control in a console display?
I am currently using C; if it cannot be done in C, can it be done in C++? Config.sys
is supposed to have DEVICE=ANSI.SYS
.
Upvotes: 1
Views: 104
Reputation: 11598
You want to mix the ancient ancient ancient MS-DOS technologies with the modern Windows NT console. ANSI.SYS is missing because it's looong dead.
What you want to do instead is take advantage of the NT console. Here's a starting point in the API documentation. In particular, there's a guide on handling mouse input that you can use as a starting point.
You may find it easier to use a library like Termbox or pdcurses, depending on the type of program you want to write. There are even some text-based user interface (TUI) libraries, such as Turbo Vision, if you want to write that kind of program instead.
Upvotes: 1