summaryrefslogtreecommitdiff
path: root/system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff')
-rw-r--r--system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff45
1 files changed, 0 insertions, 45 deletions
diff --git a/system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff b/system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff
deleted file mode 100644
index 21a57ffb42..0000000000
--- a/system/ksh-openbsd/patches/03-ksh-vi-Ctrl-l-in-insert-mode-to-clear-the-screen.diff
+++ /dev/null
@@ -1,45 +0,0 @@
-From 13ef2cd4206ed541fe1dae46c91a339fba5cf5cf Mon Sep 17 00:00:00 2001
-From: Alexander Polakov <polachok@gmail.com>
-Date: Sun, 29 May 2011 15:12:31 +0400
-Subject: [PATCH 3/8] ksh/vi: Ctrl-l in insert mode to clear the screen.
-
- Why: typing "clear" is too slow.
----
- ksh.1 | 3 +++
- vi.c | 6 ++++++
- 2 files changed, 9 insertions(+), 0 deletions(-)
-
-diff --git ksh.1 ksh.1
-index f4b5815..01130ea 100644
---- ksh.1
-+++ ksh.1
-@@ -5215,6 +5215,9 @@ List all the commands or files that match the current big-word.
- Macro expansion.
- Execute the commands found in the alias
- .Ar c .
-+.It ^L
-+Clear the screen leaving the current line at the top of the
-+screen.
- .El
- .Pp
- Intra-line movement commands:
-diff --git vi.c vi.c
-index e4173c7..d0de478 100644
---- vi.c
-+++ vi.c
-@@ -646,6 +646,12 @@ vi_insert(int ch)
- return redo_insert(lastac - 1);
-
- /* { Begin nonstandard vi commands */
-+ case Ctrl('l'):
-+ /* Use ANSI escape codes to clear the screen */
-+ x_puts("\033[2J\033[0;0H");
-+ redraw_line(0);
-+ break;
-+
- case Ctrl('x'):
- expand_word(0);
- break;
---
-1.7.5
-