raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.92k stars 125 forks source link

[BUG] broken pipe using shell redirections #702

Closed NyaaaWhatsUpDoc closed 1 week ago

NyaaaWhatsUpDoc commented 1 month ago

for example i get the following every time, without fail:

$ tr -cd 'a-z' < /dev/urandom | head -c 10
ymbrconkfrtr: write error: Broken pipe
raphamorim commented 1 month ago

Hey @NyaaaWhatsUpDoc thanks for the issue, I am unable to reproduce it.

Screenshot 2024-10-09 at 19 47 28

I get same result in alacritty and kitty

Screenshot 2024-10-09 at 19 48 21
NyaaaWhatsUpDoc commented 1 month ago

oh right you're on macOS, in which case try setting export LC_CTYPE=C before running the above (that will be why tr: is throwing a byte sequence error)

raphamorim commented 1 month ago

It works for me Screenshot 2024-10-09 at 20 05 43

NyaaaWhatsUpDoc commented 1 month ago

let me just enable debug logging and see if i can reveal anything

raphamorim commented 1 week ago

Hey @NyaaaWhatsUpDoc did you find anything?

i still can’t repro 🙏

NyaaaWhatsUpDoc commented 1 week ago

this seems to be fixed in v0.1.17 it seems :) version of rio on Void is currently v0.1.16 which is what i was seeing this with. i'm going to submit an update to void-packages to update theirs