快捷键

 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. Linux下 JDK安装

    在linux下安装JDK步骤如下: 第一步:查看Linux自带的JDK是否已安装 (1)查看jdk: [root@web-server ~]# rpm -qa|grep jdk ← 查看jdk的信息或 ...

  2. JAVA之IO流(字符流)

    字符流InputStreamReader和OutputStreamWriter是Writer和Read的子类:是字节流通向字符流的桥梁,也就是可以把字节流转化为字符流. InputStreamRead ...

  3. 附加属性出现Failed to assign to property的问题

    找了半天资料,最后发现把保护附加属性的类加上public就行了

  4. Ubuntu安装RobotFramework

    安装Python Ubuntu默认已安装 安装pip wget https://bootstrap.pypa.io/get-pip.py python get-pip.py 安装RobotFramew ...

  5. 利用scrapy和MongoDB来开发一个爬虫

    今天我们利用scrapy框架来抓取Stack Overflow里面最新的问题(),并且将这些问题保存到MongoDb当中,直接提供给客户进行查询. 安装 在进行今天的任务之前我们需要安装二个框架,分别 ...

  6. WKWebView与JavaScript交互基础

    login.html 代码 <!DOCTYPE html> <html> <head> <title>使用JavaScript</title> ...

  7. set和enum类型的用法和区别

    mysql中的set和enum类型的用法和区别 mysql中的enum和set其实都是string类型的而且只能在指定的集合里取值, 不同的是set可以取多个值,enum只能取一个值.   1 2 3 ...

  8. java -- 容易放错的误区

    1.按值传递 和 引用传递 (基本类型包括基本类型的包装类 或者 字符串类型 传递的是 副本 并不会改变原来的值)||  如果是引用类型 传递的是地址,会改变原来的值. public class T ...

  9. js键盘事件和焦点事件

    键盘事件onkeydown //当键盘按下的时候触发onkeyup //但键盘抬起的时候触发event.keyCode //数字类型 键盘按键的键值功能键 ctrlkey shiftkey altke ...

  10. 19个必须知道的Visual Studio快捷键

    项目相关的快捷键 Ctrl + Shift + B = 生成项目 Ctrl + Alt + L = 显示Solution Explorer(解决方案资源管理器) Shift + Alt+ C = 添加 ...