[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't think it'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'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.<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 <<a \
href="mailto:cpage@apple.com">cpage@apple.com</a>> 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 <<a href="https://feedbackassistant.apple.com/" \
rel="noreferrer" target="_blank">https://feedbackassistant.apple.com/</a>>.<br> \
<br>
-- <br>
Chris Page<br>
macOS Terminal<br>
<br>
> On Jun 5, 2019, at 4:10 PM, <a href="mailto:herbie.robinson@stratus.com" \
target="_blank">herbie.robinson@stratus.com</a> wrote:<br> > <br>
> 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> > <br>
> From: Bug-ncurses <bug-ncurses-bounces+herbie_robinson=<a \
href="mailto:stratus.com@gnu.org" target="_blank">stratus.com@gnu.org</a>> On \
Behalf Of Dan Gookin<br> > Sent: Wednesday, June 5, 2019 6:52 PM<br>
> To: Bryan Christ <<a href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a>><br> > Cc: <a \
href="mailto:bug-ncurses@gnu.org" target="_blank">bug-ncurses@gnu.org</a><br> > \
Subject: [EXTERNAL] Re: Strange OSX behavior<br> > <br>
> [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> > <br>
> Bryan,<br>
> <br>
> 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> > <br>
> Best,<br>
> DAN<br>
> <br>
>> On Jun 5, 2019, at 3:41 PM, Bryan Christ <<a \
href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a><mailto:<a \
href="mailto:bryan.christ@gmail.com" \
target="_blank">bryan.christ@gmail.com</a>>> wrote:<br> >> <br>
>> 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.<br> >> <br>
>> --<br>
>> Bryan<br>
>> <><<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" \
class="gmail_signature">Bryan<br><><</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