Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
matti
Mar 31, 2019

Silver Alicorn posted:

curses is pretty simple and it's available on many systems

it does not work though

Adbot
ADBOT LOVES YOU

matti
Mar 31, 2019

it's a library from 1978 before unix even had asynchronous interfaces

slightly papered over by system v and later by the open group

just absolutely abysmal

matti
Mar 31, 2019

term.h feels relatively modern in comparison

matti fucked around with this message at 04:53 on Feb 25, 2024

matti
Mar 31, 2019

matti posted:

it's a library from 1978 before unix even had asynchronous interfaces

this is a lie btw because terminal i/o was specifically the first async interface added to unix

see <termios.h> and VMIN and VTIME

just wanted to correct my earlier post that was factually wrong

matti fucked around with this message at 00:26 on Mar 17, 2024

matti
Mar 31, 2019

Sweevo posted:

curses is classic unix-ism - "abstract everything away until it's a chore to actually use"

i think it's more that its from that awkward era when you still needed to heavily conform your abstractions to the machine you were programming against, for performance reasons, but you still wanted to make it abstract drat it! so it is kind of bad at being "near the metal" so to say and also being portable both

mind that in late 70s and early 80s unix was super loving slapdash also

Adbot
ADBOT LOVES YOU

matti
Mar 31, 2019

but the video game "rogue" was partly co-developed with the library so at least something good came out of it

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply