bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Control chars during an escape sequence


From: Bryan Christ
Subject: Re: Control chars during an escape sequence
Date: Wed, 7 Aug 2019 09:38:49 -0500

Tim,

Thanks for the reply.  In my escape parser, I look for both 0x9c and 0x07 as termination strings.  I never found 0x07 in any documentation but rather as a matter of testing my emulator on the Linux console.  You can see from the attached hex edit that 0x9c never occurs but 0x07 appears in it's place instead.

On Tue, Aug 6, 2019 at 7:23 PM Tim Allen <address@hidden> wrote:
On Tue, Aug 06, 2019 at 06:02:35PM -0500, Bryan Christ wrote:
> The reason I ask is because the the string which accompanies the OSC
> "set window title" sequence is often terminated by 0x7 (bell) so that
> seems to be an issue. In the "vttest" scenario, only "backspace" and
> "vertical tab" are injected into the escape string. Is that because
> they're the only two that are permissible?

The vt100.net state diagram[1] says that all control characters inside
an OSC sequence are ignored, except for ESC (which starts a new
sequence), CAN, and SUB (which are both "executed", and I think cancel
the sequence). On the other hand, it doesn't say anything about BEL
executing the sequence, only ST (0x9C).

[1]: https://vt100.net/emu/dec_ansi_parser


--
Bryan
<><

Attachment: linux_console_0x07.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]