H
H
hitakiri2019-02-18 21:23:37
C++ / C#
hitakiri, 2019-02-18 21:23:37

Are "cosmetic" improvements possible in a console program without WinAPI?

Good time.
Situation: A small console program like " Hello world! ".
Written in C.
You need to make some changes to the console interface, such as changing the background of the console.
Question: is it possible to do this without using WinAPI ? Because The program is supposed to be cross-platform. I will also be very grateful if there is material (articles, books, videos) on writing console applications in pure C.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-02-18
@hitakiri

In windows, without WinAPI at all, no. Starting from windows 10 the console supports virtual
terminal
On linux it seems to work out of the box.
https://en.wikipedia.org/wiki/Control_sequences...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question