irssi icon indicating copy to clipboard operation
irssi copied to clipboard

ctrl-p conflict with detach-keys

Open coryschwartz opened this issue 1 year ago • 1 comments

When using irssi in docker using the instructions on dockerhub, ctrl-p does not work correctly.

The instruction on dockerhub suggests we run like this:

$ docker run -it --name my-running-irssi -e TERM -u $(id -u):$(id -g) \
    --log-driver=none \
    -v $HOME/.irssi:/home/user/.irssi:ro \
    -v /etc/localtime:/etc/localtime:ro \
    irssi

However, the hotkey to move to a previous window ctrl-p is buffered by the docker pseudo-terminal, which causes it not to work as expected.

see https://docs.docker.com/engine/reference/commandline/attach/#description which states the that If the container was run with -i and -t, you can detach from a container and leave it running using the CTRL-p CTRL-q key sequence.

I think the instructions on docker-hub should be updated to change the detach-keys to something that doesn't interfere with irssi default bindings, like this:

$ docker run -it -e TERM -u $(id -u):$(id -g) \
    --log-driver=none \
    -v $HOME/.irssi:/home/user/.irssi:rw \
    -v /etc/localtime:/etc/localtime:ro \
    --detach-keys="ctrl-q,ctrl-q" \
    irssi

coryschwartz avatar Nov 17 '22 23:11 coryschwartz