From 1ddbbe5d5f4335b84eeb72bc6d6e7c60f6761930 Mon Sep 17 00:00:00 2001 From: Albert Safin Date: Sat, 12 Aug 2017 10:30:16 +0700 Subject: [PATCH] add ^L to reset and clear --- README.rst | 2 ++ man/termite.1 | 2 ++ termite.cc | 3 +++ 3 files changed, 7 insertions(+) diff --git a/README.rst b/README.rst index 5f7c77b..62e41ab 100644 --- a/README.rst +++ b/README.rst @@ -61,6 +61,8 @@ INSERT MODE +----------------------+---------------------------------------------+ | ``shift-pagedown`` | scroll down a page | +----------------------+---------------------------------------------+ +| ``ctrl-shift-l`` | reset and clear | ++----------------------+---------------------------------------------+ | ``ctrl-+`` | increase font size | +----------------------+---------------------------------------------+ | ``ctrl--`` | decrease font size | diff --git a/man/termite.1 b/man/termite.1 index 1802d32..a007889 100644 --- a/man/termite.1 +++ b/man/termite.1 @@ -71,6 +71,8 @@ scroll down a line scroll up a page .IP "\fBshift-pagedown\fP" scroll down a page +.IP "\fBctrl-shift-l\fP" +reset and clear .IP "\fBctrl-+\fP" increase font size .IP "\fBctrl--\fP" diff --git a/termite.cc b/termite.cc index 3c09024..1b10691 100644 --- a/termite.cc +++ b/termite.cc @@ -971,6 +971,9 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info) case GDK_KEY_r: reload_config(); return TRUE; + case GDK_KEY_l: + vte_terminal_reset(vte, TRUE, TRUE); + return TRUE; default: if (modify_key_feed(event, info, modify_table)) return TRUE;