940
Magic (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] thesdev@feddit.org 12 points 2 days ago

Curses is a Python standard library module (for those who like me have never had anything to do with Python).

[-] brotundspiele@sh.itjust.works 26 points 2 days ago

Actually, curses is much older than Python. It's a generic library to allow standardized output on non-standardized text terminals. If you see text based user interfaces on Posix systems, you can be 99% sure that it's based on curses (or its successor ncurses).

Developed for C in the late 1970s, it now has bindings for dozens of languages from Ada to Zig

[-] esc@piefed.social 4 points 2 days ago

Do people still use original curses and not ncurses (which is a bit newer than python)?

[-] brotundspiele@sh.itjust.works 5 points 2 days ago* (last edited 2 days ago)

I'm not too deep into the history of curses, but as far as I read, ncurses was just a rebranding of pcurses when a new maintainer took over. And pcurses is an open source clone of curses from 1983.

So whether python or ncurses is newer depends on if you consider the renaming as the birth of ncurses, or the date when its first line of code was written.

[-] Malgas@beehaw.org 5 points 2 days ago

Not just Python. It's a terminal control library for Unix-like systems (originally BSD, but widely ported).

[-] Venator 3 points 2 days ago
[-] brotundspiele@sh.itjust.works 11 points 2 days ago

It's a console tool for image manipulation. Basically Photoshop with a command line interface. It's working in the background of a lot of other software for image editing. Though it had problems with an unstable CLI interface in the past, so if you plan to use it in scripts, you might want to look at graphicsmagick which is a fork aiming for a more stable API.

this post was submitted on 12 Oct 2026
940 points (99.2% liked)

Programmer Humor

33615 readers
1898 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS