Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine ttyd and tmux #1396

Open
sircurse opened this issue Aug 28, 2024 · 1 comment
Open

Combine ttyd and tmux #1396

sircurse opened this issue Aug 28, 2024 · 1 comment
Labels

Comments

@sircurse
Copy link

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'
@happyman
Copy link

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

the arrow key works fine in browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants