89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
10.17k stars 420 forks source link

[Error] pagination in exported apps doesn't work #1572

Open scarf005 opened 1 month ago

scarf005 commented 1 month ago

Describe the bug

pagination does not work for every single CLI programs including less, delta and https://github.com/sharkdp/bat.

To Reproduce

$ distrobox create --verbose --image archlinux:latest --name arch-distrobox-repro
$ distrobox enter arch-distrobox-repro 
$ distrobox-export --bin $(which less)
$ exit
$ uname | ~/.local/bin/less
Linux

Expected behavior

Logs

distrobox-create.log distrobox-enter.log podman.txt

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

89luca89 commented 1 month ago

This is probably because less inside a pipe uses the main process' pts, in this case it is not possible

This needs further investigation, more help is needed