Edit: Actually issue is not solved. I get the same issue on build. I will dig into more of this.
So, what is odd is the arch linux package works just fine. However, no matter where I try it on, or what image I use, for some reason when I execute incus exec mycontainer -- login
it uses the /dev/pts/1 terminal in the container and everything works properly specifically scaling without a problem. When I execute incus console mycontainer
on the other hand it uses /dev/console as the terminal which this has the scaling issues. It isnât that big of a deal, but hey, glad I found a solution.
So thatâs normal, incus console
doesnât spawn a command that we control, it just attaches to the serial console of the instance.
This is a normal serial link, while Incus knows about your window size and sends it to the server, we canât actually resize a serial console, youâll notice the same if you connect to some embedded device or switch or something over a serial link, resizing your terminal, while it may send the appropriate signal to the driver, will not lead to the âphysicalâ terminal size changing on the remote device.
In general, incus console
is only really useful to see early boot messages, it shouldnât be used day to day to interact with instances as itâs a single serial console (canât run multiple incus console
and get different sessions) and itâs also attached to a ring buffer for log gathering so everything thatâs sent through it is temporarily held in memory and is retrievable over the API, again because itâs really meant to get early boot logs, not day to day interactions.
Ah, so it was my fault the entire time. I am so sorry for bothering you with this. Thank you for your help regardless and for this useful information.
Well, Iâm glad we figured out what was going on and Iâm sure it will be useful for others
I tried it in an Incus Arch VM, installing Incus in there and launching a container.
As noted above, the differentiating factor was the way to get a shell into the container.
incus exec mycontainer -- sudo -l ubuntu
: Itâs good, TUI applications scale properly.ssh ubuntu@mycontainer.incus
: Itâs good, TUI applications scale properly.incus console mycontainer
: Not good, TUI applications do not scale properly. TUI applications stick to the default 80x25 or something around there.