How to make a terminal based application
I know this may have been repeated but I want to know how to. I was looking at ALDO morse code teacher and I see it runs in terminal and I was wondering how to make a program that runs like ALDO. I don't want it to do morse code but something similar, I want to know what is it written in like shell or python or ruby or something and also how can I convert whatever it is into a Debian package because if I'm able to build what I want I want to release it.
Some more usable information:
It is going to be a tutorial or a text based game, I haven't decided yet but the ALDO's text terminal interface was exactly what I need and I want to know how was something like that created and what must I learn to create something like it, The text interface not a clone of the application.