快捷键

 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. uva10635 LIS

    Prince and PrincessInput: Standard Input Output: Standard Output Time Limit: 3 Seconds In an n x n c ...

  2. bzoj3052: [wc2013]糖果公园

    又是一代神题. uoj测速rank10,bzoj测速rank26(截止当前2016.5.30 12:58) 带修改的树上莫队. 修改很少,块的大小随便定都能A 然而我一开始把开3次根写成了pow(bl ...

  3. Cordova应用程序修改启动画面或者Icon

    1)  制作启动画面图片或icon ionic resources //同时生成icon和splash ionic resources --icon //只生成icon ionic resources ...

  4. c# json总结

    json确实很好用,但是网上写的很多都很复杂,不适合自己,然后每次写了又记不住,又要反复找,所以将其中的代码写下来.以后看这个就可以了 都引用了 Newtonsoft.Json 1.ashx,asmx ...

  5. x509数字证书导入-然后删除自身

    这种程序的使用场景,需要给客户一个证书,但不能把证书直接给他让他安装,程序中需要用到给客户的私钥,但又不允许客户将这个证书再去授权给其它人. 重点并不是代码,是如何对用户隐藏需要添加的资源 ,以文本为 ...

  6. HDU 4081Qin Shi Huang's National Road System(次小生成树)

    题目大意: 有n个城市,秦始皇要修用n-1条路把它们连起来,要求从任一点出发,都可以到达其它的任意点.秦始皇希望这所有n-1条路长度之和最短.然后徐福突然有冒出来,说是他有魔法,可以不用人力.财力就变 ...

  7. 修改github.com域名解析

    http://ping.chinaz.com/  首先在这个网站查询 github.com 然后选择ping速度最好的IP地址 将其填充到hosts文件中.win7路径:C:\Windows\Syst ...

  8. git rebase

    git rebase -i HEAD~[number_of_commits] git rebase -i HEAD~2

  9. Java特性之多态父类与子类之间的调用

    问题描述: Java三大特性,封装.继承.多态,一直没搞懂其中多态是什么,最近研究了一下,关于父类和子类之间的调用.下面是一个测试类,源代码如下: package com.test; public c ...

  10. iPhone屏幕尺寸/launch尺寸/icon尺寸

    屏幕尺寸 6p/6sp     414 X 736 6/6s         375 X 667 5/5s         320 X 568  4/4s         320 X 480   la ...