なっく日報

技術やら生活やらのメモ

Moshを使っていてなぜかログを遡れない

現象

ローカルで起動したtmuxから、moshを使って、リモートのサーバにログインし、コマンドの出力結果をコピーモードにして遡ろうとしたら遡れない!

原因

mosh.mit.edu

FAQに書いてました。

Q: Why is my terminal's scrollback buffer incomplete?
Mosh 1.2 synchronizes only the visible state of the terminal. Mosh 1.3 will have complete scrollback support; see this issue and the others which are linked from there. For now, the workaround is to use screen or tmux on the remote side.

1.2だと見えてる範囲しか遡れないそう。1.3なら大丈夫なようです。

次善策としては、リモート側でtmuxを起動しなさいとのことですが、あまりやりたくないなぁ。

これなら普通にSSH使うかな。。