ANSI Escape sequence unexpected output

David Wang (王振宇) DavidWang at quantatw.com
Thu Feb 18 18:11:40 AEDT 2021


Hi all,
    when I use the host console via uart to log in to os, sometimes some unexpected output is print to stdout, such as:

login: root
Password:
Last Login:  Thu   Jan   7  06:52:18  UTC  2021  on ttyS0
root at intel-corei7-64:~#  ;153R     <-------  This is the unexpected output

It also happen when using obmc-console-client or ipmitool sol activate.
It looks like an ANSI Escape sequence
"EscLine;ColumnR	Response: cursor is at v,h	CPR"
ref: http://ascii-table.com/ansi-escape-sequences-vt-100.php
ref: https://stackoverflow.com/questions/16026858/reading-the-device-status-report-ansi-escape-sequence-reply

My question is,
how to prevent this escape sequence from printing to the stdout?
Which package in openbmc is doing this?
Has anyone had a similar problem?
Please leave any comments.
Thanks

David



More information about the openbmc mailing list