Hacker News new | past | comments | ask | show | jobs | submit login

For the people who want to try this on OS X run `locate ncurses.h` to see if you have the ncurses library. If you have Xcode installed, you should have it in a few places. Then update the Makefile, set `NCURSES_H = {dir}` and it should make and install just fine.



brew install no-more-secrets

Works.


Sweet, thanks! I'm not sure why I didn't think to try that. Worked for me!


Maybe added that to their github?


This could be done with a single VT100 escape: print multi-line junk, move the cursor back, print less junky junk, repeat.

(Even with some optimization: for any line that is not changing any more, just emit a CR-LF).

You don't even need to put the TTY into raw mode; no termios calls needed, and \n is your CR-LF.


If you have a better implementation, ship it. Don't trash someone else's work from the sidelines.

edit: OP removed the snark from the comment.


Specifically, I removed the text "Seriously?"


Oooh, good one! Do I have your permission to use it in the code review I'm going into in 30 minutes?


If you were releasing your tool to the reviewer free of charge, absolutely.




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

Search: