Sample Header Ad - 728x90

How to use ESC sequences to make terminal region scrollable

9 votes
2 answers
7630 views
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.
Asked by Ruslan Popov (191 rep)
Nov 23, 2014, 10:21 AM
Last activity: May 25, 2016, 11:52 PM