Writing a “real” interactive terminal program like vim, htop, … in C/C++ without ncurses
问题 No, I don't want to use ncurses , because I want to learn how the terminal works and have fun programming it on my own. :) It doesn't have to be portable, it has to work on linux xterm-based terminal emulators only. What I want to do is programming an interactive terminal application like htop and vim are. What I mean is not the output of characters which look like boxes or setting colors, this is trivial; also to make the content fit to the window size. What I need is how to get mouse