I have a stm32f1 controlled device that uses USART/USB port to implement a user control interface. Using a standard terminal software (putty/minicom) a user has an ability to enter simple command in device shell.
There is a problem. In case of many incoming info packets, they print over shell prompt making entering new commands hard.
I plan to split a terminal screen on two areas: a one line prompt and a scrollable area for incoming packets.
I have tried to use the following escape sequence:
162 72 r * DECSTBM - Set top and bottom margins (scroll region on VT100)
[4;20r = Set top margin at line 4 and bottom at line 20
but still can not find a good tutorial which is described a right way that will help me to solve my problem.