Ciel
Ciel

Reputation: 6281

Developing a game(or any programs) in command line interface

I am trying to develop a game(or any programs) in command line interface. I have the idea that how to develop an app in iOS or any other GUI platforms. I am really a basic c programmer. I only know printf to output the information. So actually I use printf("\n\n\n\n\n\n\n\n\n\n") to redraw the screen. It is definitely not the correct idea to develop with cli.

Just some simple questions:

Upvotes: 0

Views: 871

Answers (2)

Joe Bentley
Joe Bentley

Reputation: 296

Look up ncurses.

It won't work on non-posix systems, but ncurses is a C library that will let you arbitrarily print characters anywhere on the screen. It's used a lot on linux to create user interfaces on the command line.

Source: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

Upvotes: 2

Bruno Machado - vargero
Bruno Machado - vargero

Reputation: 2730

There is a famous console library that goes by the name of NCURSES but I'm not exactly sure it would be useful to you. By googling it I was able to discover that it is possible to build it on iOS.

Upvotes: 0

Related Questions