bug-ncurses
[Top][All Lists]
Advanced

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

Re: Handling OSC DA (device attribute) inquiry


From: Bryan Christ
Subject: Re: Handling OSC DA (device attribute) inquiry
Date: Tue, 30 Apr 2019 17:05:42 -0500

I'm passing in TCASDRAIN to tcattrset() on the both the call to turn of echo (&= ~ECHO) and the call to restore.  Shouldn't that be sufficient?  Are you saying that I should us TSCANOW for the disposition and then call tcdrain() separately?

On Tue, Apr 30, 2019 at 4:46 PM Thomas Dickey <address@hidden> wrote:
On Tue, Apr 30, 2019 at 01:15:17PM -0500, Bryan Christ wrote:
> I'm moving forward with adding emulation support for "linux" in my library
> (libvterm).  My parsing engine is currently capturing the following
> sequence:
>
> ESC [ 0 c
>
> which is a OSC DA inquiry to which libvterm replies:
>
> ESC [ ? 1 ; 7 c
>
> which means "kitchen sink / all capabilities" according to the VT100 manual.
>
> Now before libvterm replies, I save the current tty attributes (tcgetattr /
> tcsetattr) and turn off local echo (c_lflags).  Then I reply and then
> restore the previous terminal state.  Despite doing this, the escape
> sequence that I transmitted is being echo'd back to me.  Am I going about
> this wrong?  Should I be catching and discarding the echo'd sequence?

perhaps you didn't flush the output before restoring the echo mode

--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net


--
Bryan
<><

reply via email to

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