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 ...
随机推荐
- C#笔记
关键字: 1.internal 被 internal 修饰的东西只能在本程序集(当前项目)内被使用. 注意事项: 1.解决c#代码引用c/c++代码出现的unsafe code错误警告提示 Unsaf ...
- 【poj2154】 Color
http://poj.org/problem?id=2154 (题目链接) 题意 n个珠子的项链,可以染上n中颜色,项链可以旋转不能翻转,求染色方案数. Solution 经典的公式: \begin{ ...
- 机器学习笔记-----AP(affinity propagat)算法讲解及matlab实现
大家好,我是人见人爱,花见花开的小花.哈哈~~! 在统计和数据挖掘中,亲和传播(AP)是基于数据点之间"消息传递"概念的聚类算法.与诸如k-means或k-medoids的聚类算法 ...
- 百度地图api调用
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&am ...
- strrchr 一个获取扩展名的方便的php函数
上传文件时,$_FILES里面的name是稳健的名称,要获取扩展名就用 strrchr(str,符号)来截取最后一个.后面的扩展名 然后用 trim 去掉特殊字符. 就可以得到扩展名了
- wamp 修改默认apache 80端口
wamp server 环境安装包 修改默认80端口 D:\wamp\bin\apache\apache2.4.9\conf\httpd.conf 找到如下代码出修改后,重启apache即可 ## L ...
- 387. First Unique Character in a String
Given a string, find the first non-repeating character in it and return it's index. If it doesn't ex ...
- Could not find or load main class org.gradle.wrapper.GradleWrapperMain解决办法
解决办法: gradlew is the gradle wrapper executable - batch script on windows and shell script elsewhere. ...
- JavaMail: SSL vs TLS vs STARTTLS
SSL vs TLS vs STARTTLS There's often quite a bit of confusion around the different terms SSL, TLS an ...
- C程序汇编运行模式简析
SJTUBEAR 原创作品转载请注明出处 /<Linux内核分析>MOOC课程http://mooc.study.163.com/course/USTC-1000029000 1. 汇编 ...