これ「画面」ウィンドウマネージャスクロールバックバッファの希望のサイズを指定できます。
たとえば、新しいセッションを開始したとき:(源泉)
‘-h num’ Set the history scrollback buffer to be num lines high. Equivalent to the defscrollback command (see Copy).
または、すでに画面セッションにいる場合は、次のコマンドを使用します。源泉)
12.1.2 Scrollback — Command: defscrollback num Same as the scrollback command except that the default setting for new windows is changed. Defaults to 100. — Command: scrollback num Set the size of the scrollback buffer for the current window to num lines. The default scrollback is 100 lines. Use C-a i to view the current setting.
num
ただし、上記の方法のうち最大値を表す文書が見つからないようです。
したがって、質問は次のようになります。スクリーンユーティリティの最大スクロールバック長を決定する方法は?
ベストアンサー1
文書化されたコンテンツをどこで見つけることができるかはわかりませんが、ソースコードを詳しく見ると、いくつかの手がかりを見つけることができます。渡すと-h
設定されますhistheight
(参照screen.c)。分析main
は-h
次のとおりです。
case 'h':
if (--argc == 0)
exit_with_usage(myname, NULL, NULL);
nwin_options.histheight = atoi(*++argv);
if (nwin_options.histheight < 0)
exit_with_usage(myname, "-h: %s: negative scrollback size?", *argv);
break;
この構造は、次に定義されるnwin_options
インスタンスです。NewWindow
window.h:
struct NewWindow {
int StartAt; /* where to start the search for the slot */
char *aka; /* aka string */
char **args; /* argv vector */
char *dir; /* directory for chdir */
char *term; /* TERM to be set instead of "screen" */
bool aflag;
bool dynamicaka;
int flowflag;
int lflag;
int histheight;
int monitor;
int wlock; /* default writelock setting */
int silence;
bool wrap;
bool Lflag; /* logging */
int slow; /* inter character milliseconds */
int gr;
bool c1;
int bce;
int encoding;
char *hstatus;
char *charset;
int poll_zombie_timeout;
};
これがintであることがわかるので、おそらくsigned intの最大値に設定できるはずですhistheight
。maxint