From: Jason S on
Hey all, I'm relatively new to the whole UNIX programming scene, and
want to get into programming for the terminal. I want to make programs
that have a textual user interface (such as Tin, IRSSI, etc.), but have
no idea what APIs or tools I'd need to get the job done. I'm a pretty
good C programmer, and am in the process of learning C++. Also, I'm new
to Usenet so I'm not sure if this is even the right newsgroup in which
to post this; if it's not, point me in the right direction please.

Thanks!!

--Jason
From: Tim Harig on
On 2010-05-17, Jason S <jasonsavlov(a)me.com> wrote:
> This is a multi-part message in MIME format.
> Hey all, I'm relatively new to the whole UNIX programming scene, and
> want to get into programming for the terminal. I want to make programs
> that have a textual user interface (such as Tin, IRSSI, etc.), but have
> no idea what APIs or tools I'd need to get the job done. I'm a pretty

You are looking for the curses library.
From: Rui Maciel on
Jason S wrote:

> Hey all, I'm relatively new to the whole UNIX programming scene, and
> want to get into programming for the terminal. I want to make programs
> that have a textual user interface (such as Tin, IRSSI, etc.), but have
> no idea what APIs or tools I'd need to get the job done. I'm a pretty
> good C programmer, and am in the process of learning C++. Also, I'm new
> to Usenet so I'm not sure if this is even the right newsgroup in which
> to post this; if it's not, point me in the right direction please.

Why not stick to command line applications? In order to write them you only need to handle the
standard streams, which means that you can simply rely on fprintf() to output messages. The input
is a bit more tricky, as you will need to define/adopt a language and implement/adopt a parser for
it. Yet, I believe that in the end it will end up being simpler than having to learn how to use and
debug yet another API.

And regarding curses-type of GUI libraries, unless you have a pretty strong reason to use them, I
believe you are better off adopting any other GUI library such as Qt.


Hope this helps,
Rui Maciel

[1] http://www.gnu.org/software/ncurses/ncurses.html
From: Jason S on
Thanks for the input. I'll look into Qt. But I think I might just stick
to command-line applications. I just wanted my program to look a little
better. But I guess I could make it look nice as a command-line program.

--
Jason

 | 
Pages: 1
Prev: ANN: Seed7 Release 2010-05-16
Next: seg fault