All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Richardson <mcr@sandelman.ca>
To: Johnathan Mantey <johnathanx.mantey@intel.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
	=?UTF-8?B?RGF2aWQgV2FuZyAo546L5oyv5a6HKQ==?=
	<DavidWang@quantatw.com>
Subject: Re: ANSI Escape sequence unexpected output
Date: Thu, 18 Feb 2021 12:37:47 -0500	[thread overview]
Message-ID: <17303.1613669867@localhost> (raw)
In-Reply-To: <47e7db9c-f07d-0b27-5e38-328fb6ba3d53@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]


Johnathan Mantey <johnathanx.mantey@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@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2021-02-18 17:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-18  7:11 ANSI Escape sequence unexpected output David Wang (王振宇)
2021-02-18  9:30 ` Jeremy Kerr
2021-02-18 17:00 ` Johnathan Mantey
2021-02-18 17:37   ` Michael Richardson [this message]
2021-02-18 19:52     ` Johnathan Mantey
2021-02-23  8:12       ` David Wang (王振宇)
2021-02-23 16:23         ` Johnathan Mantey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17303.1613669867@localhost \
    --to=mcr@sandelman.ca \
    --cc=DavidWang@quantatw.com \
    --cc=johnathanx.mantey@intel.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.