ANSI Escape sequence unexpected output

Michael Richardson mcr at sandelman.ca
Fri Feb 19 04:37:47 AEDT 2021


Johnathan Mantey <johnathanx.mantey at intel.com> wrote:
    > David, I see a garbage sequence like this all the time.

    > I run an Expect script that controls my terminal emulator (kermit), and
    > I see a sequence like this: [[39;88R I have tried multiple times to

That's the result of a Device-Status Report.
https://en.wikipedia.org/wiki/ANSI_escape_code#CSIsection, see "DSR" or "CSI 6n"
39 88 is the size of your terminal, or the one that Kermit is emulating for you.
(I seem to recall think that kermit has a full-screen mode. So many different
versions of it over the decades)
You may be able to turn kermit responding off, or change it's terminal type
to dumb.

The shell is emitting ESC [ 6n to set the stty size of the terminal.
"resize" does this, but I think gnureadline does too.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr at sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210218/a76055f3/attachment.sig>


More information about the openbmc mailing list