Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ArtOfWarfare

macrumors G3
Original poster
Nov 26, 2007
9,670
6,211
I had always been under the impression curses was complicated and not worth learning.

2 days ago I started learning and writing a Python program using Curses and holy hell, why don't all programs that don't need graphics use Curses? Why would you ever write a program that uses print and input (Python... If you're talking C then printf/scanf...). Or why would you build a UI that only programmers will ever use?

And now I'm about done with a fairly capable Python debugging utility. It seems so polished and it was so easy to write that I just keep thinking, holy crap, I never want to write a single input or scanf line again, and further, I'm scrapping those functions from the programming language I'm developing. You'll learn and use Curses and you'll like it, if you want to make a command line program in my language.

In fact, I feel a UI made in Curses would often be better than a GUI, even for non-savvy computer users.

Am I missing something? Is there anyone here who has made an application using Curses and feels otherwise?
 
I had always been under the impression curses was complicated and not worth learning.

2 days ago I started learning and writing a Python program using Curses and holy hell, why don't all programs that don't need graphics use Curses? Why would you ever write a program that uses print and input (Python... If you're talking C then printf/scanf...). Or why would you build a UI that only programmers will ever use?

And now I'm about done with a fairly capable Python debugging utility. It seems so polished and it was so easy to write that I just keep thinking, holy crap, I never want to write a single input or scanf line again, and further, I'm scrapping those functions from the programming language I'm developing. You'll learn and use Curses and you'll like it, if you want to make a command line program in my language.

In fact, I feel a UI made in Curses would often be better than a GUI, even for non-savvy computer users.

Am I missing something? Is there anyone here who has made an application using Curses and feels otherwise?

Curses is from a time when there was no GUI, while there are times when it can be appropriate, say example pagers, top, terminal based text editors etc. In most cases today, you are probably better of making a real GUI application.

The reason command line programs are line based is the idea that a program is this small utility that does one thing. You then use pipes and redirects to make something larger by combining small tools. Data that is in turn line based can then also be fed into and out of these small utilities, also in a line based manner.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.