openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

tmux: doesn't show up on the console #5721

Open alive4ever opened 6 years ago

alive4ever commented 6 years ago

Maintainer: @diizzyy Environment: x86_64, qemu, snapshot r6395-a70db57

Description: When launching tmux directly on the OpenWrt console or serial, tmux doesn't show up. Input works, but there is no tmux panel shown at all.

tmux_doesnt_show_up

mstorchak commented 6 years ago

Maybe console doesn't provide all capabilities tmux requires. How should the fix look like?

alive4ever commented 6 years ago

The fix may involves fixing procd console initialization to add capabilities tmux needs.

alive4ever commented 6 years ago

comparing output of stty on the openwrt console to actual linux console, the openwrt console output lacks the following capabilities:

-cmspar
-flusho
-extproc
alive4ever commented 6 years ago

procd seems to lack console initialization to set terminal configuration. busybox init does have console_init.

neheb commented 4 years ago

I assume this is still an issue.

mstorchak commented 4 years ago

Is it a procd issue then?

plntyk commented 4 years ago

tested on LEDE 17.01.7, 18.06.7, 19.07.3 and snapshot on x86_64 VM and snapshot qemu Malta VM

as written before no input or output from tmux visible on serial or graphic output but tmux itself works , with hotkeys tmux capture-pane -pt 0 show hidden input if tmux isnt in foreground tmux log on server side doesnt show obvious errors tmux refresh-client -t/dev/ttyS0 does not work

running tmux inside a screen session works

plntyk commented 4 years ago

opened a bug report: https://bugs.openwrt.org/index.php?do=details&task_id=3170

might be related to permissions or features of device nodes involved