[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Junk at the end on history
From: |
Martin D Kealey |
Subject: |
Re: Junk at the end on history |
Date: |
Thu, 6 Apr 2023 12:57:50 +1200 |
Is there any chance that your history contains a raw escape sequence that
trigger the terminal to report attributes using `CSI…c` as described in the
first answer to
https://stackoverflow.com/questions/29939026/what-is-the-ansi-escape-code-sequence-escc
Using "tail" would limit the output to just the last 10 lines and that
would be enough to omit the triggering sequence. Using "less" would, by
default, not send the raw bytes, and therefore not trigger the response
On Tue, 4 Apr 2023, 21:39 Dan Jacobson, <jidanni@jidanni.org> wrote:
> $ history
> works fine if I pipe it into tail.
> But if I just let it pour out on the screen, I get this junk after it
> sitting at the prompt:
> 9997 Tue, 04 Apr 2023 17:31:36 +0800 history
> 9998 Tue, 04 Apr 2023 17:31:59 +0800 history |tail
> 9999 Tue, 04 Apr 2023 17:32:06 +0800 history
> $
> 64;1;2;6;9;15;16;17;18;21;22;28c64;1;2;6;9;15;16;17;18;21;22;28c64;1;2;....
> GNU bash, version 5.2.15(1)
>
>