快捷键

 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的更多相关文章

  1. 内核module读取进程页目录

    根据当前CR3寄存器内容,读取对应物理内存中的页目录页,并进行解析 1: void dumpPageDirectoryEntry(u32 entry) 2: { 3: u8 present; 4: u ...

随机推荐

  1. gg

    纪念那段为了梦想的青春岁月,CS. Esp (2006-2014) name "Esp"bind "TAB" "+showscores"bi ...

  2. bzoj4443[SCOI2015]小凸玩矩阵

    题意:一个n*m的矩阵(n<=m<=250),要求选出n个数(每行,每列最多选一个),求第k大数的最小值. 首先第k大的意思是从大到小的第k个数(我读错了,WA了一次还以为算法不对...) ...

  3. log4net位置与使用方法

    <log4net> <appender name="RollingLogFileAppender" type="log4net.Appender.Rol ...

  4. df命令

    http://www.th7.cn/system/lin/201311/46839.shtml http://www.111cn.net/sys/CentOS/86335.htm

  5. 关于JSP中<body onload="fun()">body标签中onload中函数不执行问题

    问题描述: 在一个页面中,我们经常会初始化一下数据,而且会在指定的DOM元素初始化数据,这时候我们就会使用<body onload="fun()">来加载我们的数据.o ...

  6. websocket的介绍

    偶然在知乎上看到一篇回帖,瞬间觉得之前看的那么多资料都不及这一篇回帖让我对 websocket 的认识深刻有木有.所以转到我博客里,分享一下.比较喜欢看这种博客,读起来很轻松,不枯燥,没有布道师的阵仗 ...

  7. Gradle Maven 依赖管理

    仓库管理简介 本质上说,仓库是一种存放依赖的容器,每一个项目都具备一个或多个仓库. Gradle支持以下仓库格式: Ivy仓库 Maven仓库 Flat directory仓库 我们来看一下,对于每一 ...

  8. python 类定义 继承

    0 前言 系统:win7 64bit IDE : python(x,y) 2.7.6.1 IDE集成的解释器:Python 2.7.6 (default, Nov 10 2013, 19:24:18) ...

  9. vtkQuadric创建二次曲面

    在本实例中,我们将用到vtkQuadric.vtkSampleFunction.vtkContourFilter三个类,分别是二次曲面函数.函数曲面抽样和等高滤波. vtkQuadric负责二次曲面基 ...

  10. HashTable初次体验

    用惯了数组.ArryList,初次接触到HashTable.Dictionary这种字典储存对于我来说简直就是高大上. 1.到底什么是HashTable HashTable就是哈希表,和数组一样,是一 ...