Gnome_Terminal
快捷键
ctrl shift m 我自定义的快捷键,可以给终端命名
ctrl shift t 新建标签页,并且目录为当前目录
ctrl shift pageup 标签页往前移
ctrl shift pagedown 标签页往后移
ctrl shift + 放大屏幕
ctrl - 缩小屏幕
ctrl c 终止程序
ctrl d 输入文件结束符,或退出bash
ctrl h 隐藏光标
ctrl l 刷新屏幕
ctrt n 向下浏览历史命令,相当于下方向键
ctrl p 向上浏览历史命令,相当于上方向键
ctrl r 搜索历史命令
ctrl z 将程序挂起
ctrl pageup 光标移到前一个标签页,会循环
ctrl pagedown 光标移到后一个标签页
shift pageup 缓冲区向上翻页
shift pagedown 向下翻页
背景颜色
#91D2B3
字符编码
gnome terminal 设置中似乎没有设置项来改变终端显示编码,只有一个菜单名显示编码的设置,并没有什么用处额。很多人推荐改变终端显示的编码可以用luit这个软件,我试了下,并没有什么作用。我的解决方案是将所有的文件编码改为系统默认的编码 utf- ,这样无论在哪都不会出现乱码了。
改变终端光标的显示
(八进制)是输入字符的值
printf("\0033[?25l"); 隐藏光标
echo -e "\033[?25h" 显示光标
printf("\0033[?25h"); 显示光标
\[0m 关闭所有属性
\[1m 设置高亮度
\[4m 下划线
\[5m 闪烁
\[7m 反显
\[8m 消隐
\[30m -- \[37m 设置前景色
\[40m -- \[47m 设置背景色
\[nA 光标上移 n 行
\[nB 光标下移 n 行
\[nC 光标右移 n 行
\[nD 光标左移 n 行
\[y;xH 设置光标位置
行第 列处
\[2J 清屏
\[K 清除从光标到行尾的内容
\[s 保存光标位置
\[u 恢复光标位置
\[?25l 隐藏光标
\[?25h 显示光标
字颜色
黑
红
绿
黄
蓝色
紫色
深绿
白色
字背景颜色范围
黑
深红
绿
黄色
蓝色
紫色
深绿
白色
echo -ne "\033[32m" 可以将字符的显示颜色改为绿色
更改默认的终端大小
新终端的默认大小可以在编辑 > 配置文件首选项 中调整
新终端采用当前目录
By default new terminals open in the $HOME directory. To have new terminals adopt the current working directory: source /etc/profile.d/vte.sh. Add the command to the shell configuration to retain the behaviour.
Pad the terminal
To pad the terminal (create a small, invisible border between the window edges and the terminal contents) create the file below:
~/.config/gtk-3.0/gtk.css
VteTerminal,
TerminalScreen {
padding: 10px 10px 10px 10px;
-VteTerminal-inner-border: 10px 10px 10px 10px;
}
禁用光标闪烁
Since GNOME 3.8 and the migration to GSettings and DConf the key required to modify in order to disable the blinking cursor in the Terminal differs slightly in contrast to the old GConf key. To disable the blinking cursor in GNOME 3.8 and above use:
$ gsettings set org.gnome.desktop.interface cursor-blink false
To disable the blinking cursor in Terminal only use (make sure profile uid is correct one):
$ dconf -4d8d-a863-c897e6d979b9/cursor-blink-mode "'off'"
Note that gnome-settings-daemon, from the package of the same name, must be running for this and other settings changes to take effect in GNOME applications - see GNOME#Configuration.
关闭终端时,禁用确认窗口
试图关闭该窗口,终端中正在运行一个程序时,终端将始终显示一个确认窗口。为了避免这种情况,执行以下命令:
$ gsettings set org.gnome.Terminal.Legacy.Settings confirm-close false
参考:
https://wiki.archlinux.org/index.php/GNOME_%28%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%29#.E7.A6.81.E7.94.A8.E5.85.89.E6.A0.87.E9.97.AA.E7.83.81
Gnome_Terminal的更多相关文章
- 内核module读取进程页目录
根据当前CR3寄存器内容,读取对应物理内存中的页目录页,并进行解析 1: void dumpPageDirectoryEntry(u32 entry) 2: { 3: u8 present; 4: u ...
随机推荐
- iOS 中block中使用了外部变量的分析
例子1: ; void (^blk)(void) = ^(){ printf("in block %d[%p]\n", val, &val); //in block 10[ ...
- Git中如何利用生成SSH个人公钥访问git仓库
Git中如何利用生成SSH个人公钥访问git仓库方法(这里以coding平台为例): 1. 获取 SSH 协议地址 在项目的代码页面点击 SSH 切换到 SSH 协议, 获得访问地址, 请使用这个地址 ...
- Sensitive directory/file Integrity Monitoring and Checking
catalogue . OSSEC . HashSentry: Host-Based IDS in Python . Afick . 检测流程 1. OSSEC OSSEC is an Open So ...
- 机器学习笔记----Fuzzy c-means(FCM)模糊聚类详解及matlab实现
前言:这几天一直都在研究模糊聚类.感觉网上的文档都没有一个详细而具体的讲解,正好今天有时间,就来聊一聊模糊聚类. 一:模糊数学 我们大家都知道计算机其实只认识两个数字0,1.我们平时写程序其实也是这样 ...
- 阿里云提示:对输入参数id未进行正确类型转义,导致整型注入的发生
类似以下提示: XXX.php中,对输入参数id未进行正确类型转义,导致整型注入的发生 解决办法: 找到对应文件:$id = $_GET['id']; 增加以下标红过滤: $id = $_GET['i ...
- runtime-对成员变量和属性的操作
成员变量 首先我们来看看成员变量在runtime中是什么样的 在runtime中成员变量是一个objc_ivar类型的结构体,结构体定义如下 struct objc_ivar { char *ivar ...
- temp
netstat -tlnap lsof -i :40735 ps -ef|grep 10259 iftop iptraf nethogs gidxylxhqp http://blog.csdn.net ...
- vtkPlane和vtkPlaneSource
1.vtkPlane vtkPlane provides methods for various plane computations. These include projecting points ...
- CSS背景background、background-position使用详解
背景(background)是css中一个重要的的部分,也是需要知道的css的基础知识之一.这篇文章将会涉及css背景(background)的基本用法,包括诸如 background-attachm ...
- 关于点击Invalidate Caches/Restart禁止插件后,重新加载--Android Studio
1:47:27 Plugin Error Problems found loading plugins: Plugin "Google Analytics Uploader" wa ...