OK, so I've found some of the escape codes to move the cursor around the screen, but I've looked at what the escape codes provide, and I cant seem to figure out how I could do what I need it to do.. here is the algorithm...
User is typing input at the bottom of the screen
Insert a blank line 2nd row up from the bottom (everything moves up except for user input)
Print incoming message above the current user input line
Return cursor to previous point.
I dont know if what I want can be done, especially since it seems my terminal doesnt support save/restore cursor positions. If it isnt, does anyone have any way to do what I want (keep input where it is, add a new line from the incoming message). I was thinking ncurses, but it seems so much more complex vs the amount of effort I want to exert for this project (and the time constraints).