alacritty / vte

Parser for virtual terminal emulators
https://docs.rs/vte/
Apache License 2.0
242 stars 56 forks source link

Parselog for tmux doesn't work as expected #13

Closed nixpulvis closed 4 years ago

nixpulvis commented 6 years ago

Running tmux | target/debug/examples/parselog always outputs simply the following:

[print] '['
[print] 'e'
[print] 'x'
[print] 'i'
[print] 't'
[print] 'e'
[print] 'd'
[print] ']'
[execute] 0a

All actions inside tmux are ignored. Maybe this is actually a expected behavior and I just don't understand how tmux interacts with the terminal.

nixpulvis commented 6 years ago

Hmmm, looks like STDIN's read call is never getting hit. So tmux doesn't use STDOUT in the same way as like every other program I've tried with?

P.S. I don't really know anything about tmux yet, sorry if this is all pretty obvious stuff. P.P.S screen does the same thing, so I'm starting to think this is expected, and that they are just connecting to the terminal at a lower level somehow. P.P.P.S I'm trying to learn about all this stuff now... looks like screen calls setsid which might be how this is all working?

jwilm commented 6 years ago

tmux is probably aware of whether it's running in a tty or not

nixpulvis commented 6 years ago

Right, sorry for all the noise. I'm trying to debug commands passed from tmux to alacritty, and this was where I started. Thoughts for a better approach?

jwilm commented 6 years ago

you can run alacritty -vvv and it will print out every control sequence it handles. It's kind of noisey, though.

nixpulvis commented 4 years ago

:sweat_smile: