ttyd icon indicating copy to clipboard operation
ttyd copied to clipboard

Combine ttyd and tmux

Open sircurse opened this issue 1 year ago • 1 comments

Hi there,

I think it might be easy but I have already tried everything possible. I just want to run ttyd connecting to a tmux session and be able to use arrow keys (up and down) to navigate thru the past inputs/commands

I test both alone, tmux and ttyd works to save and browse historical data. The problem I m facing is when I connect both, then every thing I got when using arrow keys are ^[[A...

Do someone know how to make this connection works?

it is my commands being used to start the services:

tmux new-session -d -s server -e TERM=xterm-256color "zsh -c 'trap \"\" SIGINT; cd /app/server; exec ./server'"
exec /server/system/ttyd -W -p 8080 -T xterm-256color bash -c 'tmux attach-session -t server'

sircurse avatar Aug 28 '24 18:08 sircurse

tmux new-session -d -s server "less /etc/passwd"
ttyd -W -p 8080 "tmux att -s server"

the arrow key works fine in browser.

happyman avatar Sep 14 '24 23:09 happyman