Originally Posted by
sean
Cool macros - handy for some light-weight CLIs. However I would still recommend you check out ncurses if you ever do anything like this again. As mentioned above, if you're unable to install and use that library, learning to do so will give you some very crucial Linux / C programming skills and is probably simpler than you think. Ncurses also makes it easier to handle much more complicated interactions with the terminal and deals with any inconsistencies between different terminals/emulators that you might come across. These macros seem simple to you now, but if you do much more interaction they will quickly become more complicated to maintain than just using nurses.