Scrolling input text

My error was in the new line character in the switch.

it should be /n instead of \n.

I now have a new problem!

I am able to send a string to the print_data function, but sometimes, as the text is scrolling, The get_serial data seems to hang. Am I doing something wrong? or is there a simpler way to achieve this?
also, there seems to a lot of lag between the inputs, how can I clean up all the delays in between?

Thanks!