Skip to main content
14 events
when toggle format what by license comment
Mar 25, 2024 at 16:41 comment added Whimusical Thanks one more time, Stéphane
Mar 25, 2024 at 16:03 comment added Stéphane Chazelas @Whimusical, I also wondered about that and tested sending expensive escape sequences such as switching back and forth between normal and alternate screen and couldn't fault it. In any case, there would be the same question with my approach where it's cat within the tmux session that writes to the tty, but that's essentially the same.
Mar 25, 2024 at 13:06 vote accept Whimusical
Mar 25, 2024 at 12:13 comment added Kamil Maciorowski @Whimusical This I do not know.
Mar 25, 2024 at 9:36 comment added Whimusical Is there any guarantee that when we do tmux capture-pane all the printed output is already capturable by the direct echo > tty method ?
Mar 25, 2024 at 7:10 history edited Kamil Maciorowski CC BY-SA 4.0
removed reference to code removed by the previous editor
Mar 25, 2024 at 6:55 history edited Stéphane Chazelas CC BY-SA 4.0
Removed unnecessary dance with fd 3.
Mar 24, 2024 at 21:33 comment added Whimusical I opened a new question to understand why your tail command fixes my approach unix.stackexchange.com/questions/773056/…
Mar 24, 2024 at 20:41 comment added Whimusical OK, I reproduced my previous error with the exact lines I did my test. MY_PROMPT%> tmux new-session -d -s aux -PF "#{pane_tty}" /dev/ttys017 MY_PROMPT%> echo -n foo > /dev/ttys017 && tput cr > /dev/ttys017 && echo bar > /dev/ttys017 MY_PROMPT%> tmux capture-pane -t "aux" -p -S0 -E3 and the result was the incorrectly undeterministicly ordered sequence foo MY_PROMPT %> bar
Mar 24, 2024 at 20:36 comment added Whimusical Can you believe this was my first and foremost approach, and I swear I did EXACTLY the same as you but I got the results as if the input was the terminal prompt in the shape of commands, not the screen itself (I assumed it was by design). Now I could not believe it so I am repeating exactly same experiment as you and it works flawlessly so obviously I did something wrong
Mar 24, 2024 at 19:29 history edited Kamil Maciorowski CC BY-SA 4.0
added 356 characters in body
Mar 24, 2024 at 19:08 history edited Kamil Maciorowski CC BY-SA 4.0
added 10 characters in body
Mar 24, 2024 at 19:01 history edited Kamil Maciorowski CC BY-SA 4.0
added 370 characters in body
Mar 24, 2024 at 18:55 history answered Kamil Maciorowski CC BY-SA 4.0