Create window for ascii game

I am trying to write an ascii game for a job. The program should be completely written in c, no C ++. How can I make a program open a window capable of displaying ascii art? I want to create a window of a certain size that can print in several colors. A simple console window is not enough.

In addition, in the corresponding note, can someone show me a function that will write directly to the buffer? printf is too slow and doesn't seem universal enough for the graphics I want to create.

Any help would be greatly appreciated. Thanks in advance.

+3
source share
3 answers

A simple console window is not enough.

. , . , ascii, ...

, , - , ? printf ,

? printf, .

+3

ncurses

altho , (v5.7)

AAlib

0

You want the Windows Console API , there are functions to do exactly what you ask for. For example, to change the size of the console, use SetConsoleDisplayMode .

0
source

Source: https://habr.com/ru/post/1729467/


All Articles