[問題] screen裡看不到超過一個螢幕的訊息
先舉個例子... 假設blah_blah_blah.py是個可執行檔
$ ./blah_blah_blah.py
version: 1.2.3.4
usage: blah_blah_blah [option] [file]
options:
-aaa_001 xxxx
-aaa_002 xxxx
...
-aaa_999 xxxx
$
當黃色的部份太長 超過一個螢幕時
要把terminal client(ex:PieTTY)的scrollbar往上拉才可看到整個訊息
但若是在(GNU)screen中把scrollbar往上拉
在一個螢幕之外所看到的訊息
會是未進入screen前的訊息(而非blah_blah_blah.py顯示的完整訊息)
也就是說在screen中執行blah_blah_blah.py 看到的可能是這樣:
$ screen -r workspace
-aaa_997 xxxx
-aaa_998 xxxx
-aaa_999 xxxx
$
請問:
1. 如何使用less瀏覽blah_blah_blah.py顯示的訊息?
2. 若1.其實做不到的話 有什麼其他好方法?
(除了detach screen後執行blah_blah_blah.py
或把訊息寫到檔案中用文字編輯器看)
感謝回答~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.32
→
10/14 16:11, , 1F
10/14 16:11, 1F
→
10/14 16:15, , 2F
10/14 16:15, 2F
推
10/14 16:21, , 3F
10/14 16:21, 3F
直接按PageUp(或PageDn)的話
command line會出現~
$ ~~~~~~~
囧
※ 編輯: Holocaust123 來自: 140.112.30.32 (10/14 16:31)
推
10/14 16:38, , 4F
10/14 16:38, 4F
→
10/14 16:45, , 5F
10/14 16:45, 5F
推
10/14 23:14, , 6F
10/14 23:14, 6F
--
找到另外一個解法
http://serverfault.com/questions/32313/putty-and-screen-and-scroll-back-buffer
http://pank.org/blog/archives/000978.html
在.screenrc中加入這行:
termcapinfo xterm ti@:te@
※ 編輯: Holocaust123 來自: 140.112.30.46 (02/14 09:00)