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

/prog/ - Programming

Programming
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.

Name
Email
Subject
REC

0:00

Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶Show post options & limits]
Confused? See the FAQ.
Expand all images

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

[–]

825ec4 (9) No.3909 >>3940 >>3955 >>4392 [Watch Thread][Show All Posts]

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 (9) 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 (9) No.3940>>3947 >>3955

>>3909 (OP)

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 (9) No.3947>>3952

>>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 (9) No.3952>>3953

>>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 (9) 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 (9) No.3955>>3959

>>3940

>>3909 (OP)

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 (9) 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 (9) No.4392

>>3909 (OP)

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][Screencap][Nerve Center][Random][Update] ( Scroll to new posts) ( Auto) 4
8 replies | 0 images | 1 UIDs | Page 4
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / random / 93 / biohzrd / hkacade / hkpnd / tct / utd / uy / yebalnia ][ watchlist ]