Reputation: 6281
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:
scanf
and printf
to interrupt with users.Upvotes: 0
Views: 871
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
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