Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Modern." What about this was impossible in 1996? 1986? 1976?


TUI frameworks are a lot nicer and terminal emulators are a lot more featureful. If you could write something like this that far back it'd be like pulling teeth compared to now.


It would not be like pulling teeth.

This TUI only use Python's curses module. The first curses support was added in 1994, and the current incarnation added in 2000. I spot checked a few curses calls and they were available in the 2000 version.

Now, there's all sort of things that make Python programming easier now than 22 years ago (f-strings, datetime, pathlib, subprocess, enum, and @decorators).

Plus, the Unicode/emoji support didn't really exist (so other characters would need to be used).

And probably it wouldn't support the Persian calendar, which it does using the "jdatetime" calender.

But other than the emoji substitution, none of that is related to modern TUI frameworks or terminal emulators.


Modern here means that it uses Unicode icons for the interface, which makes it much cleaner than many TUI programs, and that it adopts to mobile phone screen size.


emoji




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: