Closed magicwenli closed 4 months ago
Sorry, I found the answer almost immediately. It was caused by the problem of Shell's LINES
COLUMNS
environment variable.
After doing resize
, the table shows great!
~ ❯ adb shell
sh-5.0# echo $COLUMNS $LINES
80 24
sh-5.0# resize
COLUMNS=117;LINES=21;export COLUMNS LINES;
sh-5.0# eval `resize`
sh-5.0#
sh-5.0# pueue status
Group "default" (1 parallel): running
─────────────────────────────────────────────────────
Id Status Command Path Start End
═════════════════════════════════════════════════════
0 Success pwd / 12:47:04 12:47:04
─────────────────────────────────────────────────────
sh-5.0#
That's what I would have expected as well (the terminal not properly reporting its dimensions) ^^.
comfy-table uses the current tty's width to determine the best way to render it.
If the terminal is way to small, the columns fall back to the smallest possible width, which is 1
.
The comfy-table
readme example works fine, as the table has a fixed width of 80 and doesn't actually use the current terminal's width.
Closing as solved :)
Describe the bug
I was tring use
pueue
in an android device withadb shell
. The output table ofpueue status
andpueue log
seems to be squeezed.The wired thing is, when I tried
comfy-table
's example binaryreadme_table
. It is worked!Steps to reproduce
pueue
pueued
to android devicespueue
pueue status
Debug logs (if relevant)
Operating system
Android
Pueue version
v3.3.3
Additional context
No response