containers / containers/toolbox
Paste weirdness in console
- Dominant language
- Go
- Stars
- 3.5k
- Forks
- 262
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Description
**Describe the bug**
I ran into a strange problem that occurs when pasting ascii content (larger than ~17k) into the terminal which is started by `toolbox enter`. It can be reproduced with vim as shown below. I'm using the Gnome Terminal.
**Steps how to reproduce the behaviour**
1. Run `toolbox enter` (stock fedora 37 toolbox, up to date)
2. Create output with more than 17416 bytes: `python3 -c 'print("a" * 17417)'`
2. Copy that content to the clipboard by selecting it with the mouse
3. Open "vi", enter insert mode by typing "i"
4. Paste the content into vi
**Expected behaviour**
Content pops up in vi.
**Actual behaviour**
The application (vi) freezes, no further keyboard input (i.e. _Ctrl + z_) is possible. Needs to be killed.
**Output of `toolbox --version`**
toolbox version 0.0.99.3
**Toolbox package info (`rpm -q toolbox`)**
toolbox-0.0.99.3-7.fc37.x86_64
**Output of `podman version`**
```
Client: Podman Engine
Version: 4.4.2
API Version: 4.4.2
Go Version: go1.19.6
Built: Wed Mar 1 12:22:59 2023
OS/Arch: linux/amd64
```
**Podman package info (`rpm -q podman`)**
podman-4.4.2-2.fc37.x86_64
**Info about your OS**
Fedora Silverblue 37
**Additional context**
The paste works, if you start a nested (non login) bash from the `toolbox enter` prompt. The paste works on the host. The paste works if you don't use `toolbox enter`, but `toolbox run /bin/bash`.
I'm completely unsure whose problem this is. As it only happens in toolbox, I tend to point here, but I can't find anything buffer related in the code/container config what could be responsible for that. On the other hand, there's a *login shell* vs *shell* _bash_ involved. And a _vim_. Maybe someone has an idea...
Contributor guide
Assessment
This issue has not been assessed yet.