[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]

/prog/ - Programming

Programming

Name
Email
Subject
REC
STOP
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Options

Allowed file types:jpg, jpeg, gif, png, webp,webm, mp4, mov
Max filesize is16 MB.
Max image dimensions are15000 x15000.
You may upload5 per post.


File: 1454925825843.gif (19.11 KB,617x388,617:388,u_term_01.gif)

825ec4 No.3909

Hello /prog/!

Learning myself C at a steady and slow pace. Now I've learn that creating even the most simple TUI using printf is bloody murder. So I've decided to take it to the next level.

Can anyone please tell me if there's a good tutorial on how to create terminals using <curses.h> (or some other library).

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3923

I, too, am interested in a good tutorial.

Everything I've seen is shit.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3940

>>3909

As far as I can tell, the most common library for this kind of thing is ncurses. The original curses was discontinued long ago.

I haven't done much ncurses programming myself, but this here seems reasonably thorough: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3947

>>3940

Thanks a lot!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3952

>>3947

Pirate Visual Basic for DOS.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3953

>>3952

>Visual Basic for DOS

Seems cool! And does that code transslate to C code?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3955

>>3940

>>3909

This one is ok OP, just remember that you have to use pdcurses if you want it to be remotely portable.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.3959

>>3955

Thanks! But the terminal is to make it easier for me to explore and develop core mechanics.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

825ec4 No.4392

>>3909

Curses programs don't tend to look nearly as good as that pic. That looks more like something made with the old DOS Borland TurboVision library. Anyway, Borland eventually released the source code for that library, and you might even get it to compile on your OS.

https://en.wikipedia.org/wiki/Turbo_Vision

You can still make nice stuff in Curses, but it's more work, and usually ends up looking more basic and less consistent than stuff made with TV.

There's also the S-Lang library, and various other alternatives.

https://en.wikipedia.org/wiki/S-Lang_(programming_library)

https://en.wikipedia.org/wiki/Text_user_interface

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Nerve Center][Random][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ]