A console app to save your notes.
I wanted to see how console programs like nano, htop work. So, I tried to build a really simple application that will be only run from a terminal shell and it's user interface is within the console.
As this is a simple console app, there is not many external packages or services used here. I only used the Ruby language and it's curses
package. That package is used to create the user interface and catch user input from terminal.
- Clone this repository
- Change working directory to cloned repository's directory
- Run the following command -
ruby program.rb
After starting the app, Ctrl-A
can be used to add a new note and Ctrl-C
to close the app. All available actions on a screen are shown at the bottom of the screen.
- Terminal window resize support
- Scrolling
To build an app like this, the below resources were very helpful -
- Ruby Curses Tutorial
- NCurses Programming HOWTO
- NCurses Manual
- Ruby Curses Documentation
- Ruby Curses Examples
This work is under the MIT License.