You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attaching to an application that uses curses and sets the keypad in application mode (Python: stdscr.keypad(True), C: keypad(stdscr, TRUE) (ex)) the attaching terminal is not sent the control codes to set its mode correctly.
Steps to reproduce the issue:
docker run -it an application that uses curses (for example)
docker attach to this image in a new terminal
Press arrow keys in the original term and the new terminal.
Describe the results you received:
The arrow keys should give the same values in both cases.
Describe the results you expected:
The arrow keys give different values because the second terminal is not sending them in application mode.
Additional information you deem important (e.g. issue happens only occasionally):
This occurs if rtorrent is run in a docker container, making the up and down arrow keys only work in the original terminal.
This occurs and was tested in Linux using rxvt-unicode-256color and xterm. If the terminal always sends the same values then it might not show up in other test cases.
If run in script the DECCKM command can be seen being sent to the first terminal on start [?1h, but the attaching terminal is never sent this control code.
As a workaround tmux can be run and used to re-attach to the original run instead of using docker attach.
Output of docker version:
Client:
Version: 18.09.1-ce
API version: 1.39
Go version: go1.11.4
Git commit: 4c52b901c6
Built: Thu Jan 10 06:51:04 2019
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.09.1-ce
API version: 1.39 (minimum version 1.12)
Go version: go1.11.4
Git commit: 4c52b901c6
Built: Thu Jan 10 06:50:46 2019
OS/Arch: linux/amd64
Experimental: false
Description
When attaching to an application that uses curses and sets the keypad in application mode (Python:
stdscr.keypad(True)
, C:keypad(stdscr, TRUE)
(ex)) the attaching terminal is not sent the control codes to set its mode correctly.Steps to reproduce the issue:
docker run -it
an application that uses curses (for example)docker attach
to this image in a new terminalDescribe the results you received:
The arrow keys should give the same values in both cases.
Describe the results you expected:
The arrow keys give different values because the second terminal is not sending them in application mode.
Additional information you deem important (e.g. issue happens only occasionally):
This occurs if
rtorrent
is run in a docker container, making the up and down arrow keys only work in the original terminal.This occurs and was tested in Linux using
rxvt-unicode-256color
andxterm
. If the terminal always sends the same values then it might not show up in other test cases.If run in
script
the DECCKM command can be seen being sent to the first terminal on start[?1h
, but the attaching terminal is never sent this control code.As a workaround
tmux
can be run and used to re-attach to the original run instead of usingdocker attach
.Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Tested on ARMv7 as well, with the same results.
The text was updated successfully, but these errors were encountered: