By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,044 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,044 IT Pros & Developers. It's quick & easy.

Library for random-access console screen functionality?

P: n/a
Hi,

I'm just learning cpp, and something I've had on my mind for awhile is
to make a little "virtual console screen" class structure.

In it I want to be able to do "text animation" - moving letters across
the screen position-by-position, and whatnot.

First thought was to make a 2d array representing the screen, do
whatever updates i want, then cout it all - update by update, frame by
frame.

I assume this would be absurdly slow?

Is there a library already out there that contains this sort of
functionality? It'd be cool to check approaches taken by others...

Just to be clear - I'm imagining this all taking place in console-text
output - no graphics of any sort are in view here.

Apr 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sat, 15 Apr 2006 10:59:56 -0700, sherifffruitfly wrote:
Hi,

I'm just learning cpp, and something I've had on my mind for awhile is to
make a little "virtual console screen" class structure.

In it I want to be able to do "text animation" - moving letters across the
screen position-by-position, and whatnot.

First thought was to make a 2d array representing the screen, do whatever
updates i want, then cout it all - update by update, frame by frame.

I assume this would be absurdly slow?

Is there a library already out there that contains this sort of
functionality? It'd be cool to check approaches taken by others...

Just to be clear - I'm imagining this all taking place in console-text
output - no graphics of any sort are in view here.


it's not c++ specific, but under unix, curses and its successor ncurses,
are used for text handling on CRTs.
Apr 15 '06 #2

P: n/a
noone wrote:
it's not c++ specific, but under unix, curses and its successor ncurses,
are used for text handling on CRTs.


And even on TFTs, too.

Apr 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.