I would like to run a persistent session on my router. So far I have tried running using screen and tmux, but ran into problems with both.
With screen the session tends to die periodically, even though both screen and irssi processes still run. There seems to be no way to reconnect to a "dead" session after the screen thinks it has died.
tmux does not have this problem, but on the other hand it has problems keeping irssi properly refreshed. It only updates the second last line, while the rest of the screen remains unchanged. When changing an irssi window and getting back to the original one, it does a proper refresh. I have google this issue and all the suggestions point to setting up a correct terminal "screen-256color" in tmux.conf, but it did not help. Setting other terminal types (vt100, xterm) had no effect either. Any suggestion on what can be done?
Many thanks in advance.