user1869743
user1869743

Reputation: 125

Linux C++: How do I display my Text application output outside of stdout?

My objective is to create a game playable in the Linux terminal. However, there is a concept that I don't know how to name, so my searches are coming up empty handed.

How do programs like iptraf access the output on such a low level that they can modify the background, foreground and character content of each cell as well as capturing all keyboard input instead of the shell?

I assume that somewhere, there exists a 2D array that can be modified to display custom terminal window content, but I can't name this concept so I can't search for it. What concept am I describing?

Upvotes: 7

Views: 292

Answers (1)

Stefan M
Stefan M

Reputation: 889

As per the idea of this meta-answer, I'm answering this question so that i will get removed from the "unanswered" listing.

The concept you are looking for was described by @123, it's called ncurses.

Upvotes: 1

Related Questions