Ubuntu中screen应用程序配置文件

本文分享了在Ubuntu中使用screen应用程序的个人配置文件,包括设置大容量滚动缓冲区、关闭启动消息、启用屏幕刷新等功能,以提升开发工作的效率。同时,邀请读者分享更多高效的screen使用技巧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Linux中的screen应用给我的开发工作带来了不小的便利。

以下贴出我的screen配置文件:

screenrc [ 注: 此文件是存在于HOME下,以.screenrc存在 ]

# Define a large scrollback buffer for command which executed
defscrollback 8192

# turn off the start up message
startup_message off

# Refresh the display when exiting programs
altscreen on

# vbell
vbell off

# support mouse to rollback the screen
termcapinfo xterm|xterms|xs|rxvt ti@:te@

此仅为一个简单的配置文件,足以够我使用。


------------------------

# Define a large scrollback buffer for command which executed
defscrollback 8192


deflog off


# turn off the start up message
startup_message off


# Refresh the display when exiting programs
altscreen on


# vbell
vbell off


autodetach on
# support mouse to rollback the screen
#termcapinfo xterm|xterms|xs|rxvt ti@:te@


#termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
#caption always "%{= kw}%-w%{= kG}%{+b}[%n %t]%{-b}%{= kw}%+w %=%d %M %0c %{g}%H%{-}"


hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %{..Y}"
#%Y/%m/%d %c:%s "
#bind ' ' title


# title
shelltitle '$ |bash'


unbind ^X

------------------------


如能给出更好运用,请评论。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值