Greetings,
i'm working on an alternative getline (with human user input target) which would behave closer to a textbox. I'd like to see some constructive criticism and/or advices over my code in order to improve myself.
Right now it's strictly Windows only, but it will land on Linux too someday.
thanks for the define advice and for making me notice i forgot the "[]" part.
About getline(), my main concern is how much it will change once i add Linux supprt, having some different escapes, a totally different way to define colors. Maybe i'd just do better encircling the whole getline() function with the OS-specific #ifdef guard and make two totally separate versions of it
Regarding getline, there's so much inline code that the algorithm is lost, and you just need a parenthesis at the wrong level somewhere to break it.
You could use handlers for the switch cases to begin with. You'll be surprised how readable it becomes, and along with that comes maintainability, and you ability review what you've done.