[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ncurses-bug
Subject:    Re: Strange OSX behavior
From:       Bryan Christ <bryan.christ () gmail ! com>
Date:       2019-06-06 19:37:09
Message-ID: CAPQiZK_6MsF4Bxn7-omZanF+DHAr7RuXZ-Z-U4cFmmhMexC7pg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Chris,

I don't think it's a problem with the terminal.  I found a similar issue
that describes a race condition in the kernel:

https://github.com/dotnet/corefx/issues/13778

So thinking they may have a point, I ran a test.  When poll() tells me
there's POLLIN data, I fake the value as 1 byte of data to be read (even
though ioctl() says it's zero) and then magically everything works.

Where can I report this?

On Wed, Jun 5, 2019 at 8:26 PM Chris Page <cpage@apple.com> wrote:

> Please file bug reports and enhancement requests for Terminal. For example
> <https://feedbackassistant.apple.com/>.
>
> --
> Chris Page
> macOS Terminal
>
> > On Jun 5, 2019, at 4:10 PM, herbie.robinson@stratus.com wrote:
> >
> > I can second that one.  The terminal emulation behavior for OS X
> terminal is very incomplete.  Using the xterm they ship with their port of
> X works much, much better.
> >
> > From: Bug-ncurses <bug-ncurses-bounces+herbie_robinson=
> stratus.com@gnu.org> On Behalf Of Dan Gookin
> > Sent: Wednesday, June 5, 2019 6:52 PM
> > To: Bryan Christ <bryan.christ@gmail.com>
> > Cc: bug-ncurses@gnu.org
> > Subject: [EXTERNAL] Re: Strange OSX behavior
> >
> > [EXTERNAL SENDER: This email originated from outside of Stratus
> Technologies. Do not click links or open attachments unless you recognize
> the sender and know the content is safe.]
> >
> > Bryan,
> >
> > I have no idea what you're reffing to, though I admire your technical
> knowledge and pluck. Often I've found that running code on iTerm instead of
> the OS X terminal application yields more predictable results. FWIW.
> >
> > Best,
> > DAN
> >
> >> On Jun 5, 2019, at 3:41 PM, Bryan Christ <bryan.christ@gmail.com
> <mailto:bryan.christ@gmail.com>> wrote:
> >>
> >> This is a bit off topic so forgive me but it's the only place I know
> where experts on the terminal live :) I've started porting my terminal
> emulation library to OSX and it's been fun to say the least. Now that it
> finally builds, I see strange behavior with my demo program that I don't
> see when it runs on Linux or FreeBSD. Output coming from XYZ application
> running inside the emulator is only echoed when I write data to the slave
> pty file descriptor (for example holding down the cursor key). If anyone
> has even a good guess as to what's going on, I would appreciate it.
> >>
> >> --
> >> Bryan
> >> <><
>
>

-- 
Bryan
<><

[Attachment #5 (text/html)]

<div dir="ltr">Chris,<div><br></div><div>I don&#39;t think it&#39;s a problem with \
the terminal.   I found a similar issue that describes a race condition in the \
kernel:<br><br><a href="https://github.com/dotnet/corefx/issues/13778">https://github.com/dotnet/corefx/issues/13778</a><br><br>So \
thinking they may have a point, I ran a test.   When poll() tells me there&#39;s \
POLLIN data, I fake the value as 1 byte of data to be read (even though ioctl() says \
it&#39;s zero) and then magically everything works.<br><br>Where can I report \
this?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On \
Wed, Jun 5, 2019 at 8:26 PM Chris Page &lt;<a \
href="mailto:cpage@apple.com">cpage@apple.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Please file bug reports and enhancement requests \
for Terminal. For example &lt;<a href="https://feedbackassistant.apple.com/" \
rel="noreferrer" target="_blank">https://feedbackassistant.apple.com/</a>&gt;.<br> \
                <br>
-- <br>
Chris Page<br>
macOS Terminal<br>
<br>
&gt; On Jun 5, 2019, at 4:10 PM, <a href="mailto:herbie.robinson@stratus.com" \
target="_blank">herbie.robinson@stratus.com</a> wrote:<br> &gt; <br>
&gt; I can second that one.   The terminal emulation behavior for OS X terminal is \
very incomplete.   Using the xterm they ship with their port of X works much, much \
better.<br> &gt; <br>
&gt; From: Bug-ncurses &lt;bug-ncurses-bounces+herbie_robinson=<a \
href="mailto:stratus.com@gnu.org" target="_blank">stratus.com@gnu.org</a>&gt; On \
Behalf Of Dan Gookin<br> &gt; Sent: Wednesday, June 5, 2019 6:52 PM<br>
&gt; To: Bryan Christ &lt;<a href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a>&gt;<br> &gt; Cc: <a \
href="mailto:bug-ncurses@gnu.org" target="_blank">bug-ncurses@gnu.org</a><br> &gt; \
Subject: [EXTERNAL] Re: Strange OSX behavior<br> &gt; <br>
&gt; [EXTERNAL SENDER: This email originated from outside of Stratus Technologies. Do \
not click links or open attachments unless you recognize the sender and know the \
content is safe.]<br> &gt; <br>
&gt; Bryan,<br>
&gt; <br>
&gt; I have no idea what you're reffing to, though I admire your technical knowledge \
and pluck. Often I've found that running code on iTerm instead of the OS X terminal \
application yields more predictable results. FWIW.<br> &gt; <br>
&gt; Best,<br>
&gt; DAN<br>
&gt; <br>
&gt;&gt; On Jun 5, 2019, at 3:41 PM, Bryan Christ &lt;<a \
href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a>&lt;mailto:<a \
href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a>&gt;&gt; wrote:<br> &gt;&gt; <br>
&gt;&gt; This is a bit off topic so forgive me but it&#39;s the only place I know \
where experts on the terminal live :) I&#39;ve started porting my terminal emulation \
library to OSX and it&#39;s been fun to say the least. Now that it finally builds, I \
see strange behavior with my demo program that I don&#39;t see when it runs on Linux \
or FreeBSD. Output coming from XYZ application running inside the emulator is only \
echoed when I write data to the slave pty file descriptor (for example holding down \
the cursor key). If anyone has even a good guess as to what&#39;s going on, I would \
appreciate it.<br> &gt;&gt; <br>
&gt;&gt; --<br>
&gt;&gt; Bryan<br>
&gt;&gt; &lt;&gt;&lt;<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature">Bryan<br>&lt;&gt;&lt;</div>


[Attachment #6 (text/plain)]

_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ncurses


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic