Skip to content

Commit

Permalink
Merge pull request thestinger#512 from xzfc/reset
Browse files Browse the repository at this point in the history
Add ^L to reset and clear
  • Loading branch information
jelly authored Aug 12, 2017
2 parents fc70854 + 1ddbbe5 commit 3c2753b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 2 additions & 0 deletions man/termite.1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c2753b

Please sign in to comment.