Merge pull request #512 from xzfc/reset

Add ^L to reset and clear
This commit is contained in:
jelle van der Waa 2017-08-12 21:42:21 +02:00 committed by GitHub
commit 3c2753bab2
3 changed files with 7 additions and 0 deletions

View File

@ -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 |

View File

@ -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"

View File

@ -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;