[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] lib: readline



From: Max Reitz <max@xxxxxxxxxx>

* Der Initializer möchte ein wint_t* und kein char*

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 src/modules/lib/readline.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/modules/lib/readline.c b/src/modules/lib/readline.c
index 30d7115..a756edf 100644
--- a/src/modules/lib/readline.c
+++ b/src/modules/lib/readline.c
@@ -83,33 +83,33 @@ static struct {
     rl_command_t    cmd;
 } builtin_commands [] = {
     /// Pfeil rechts
-    { L"\033[C", FORWARD_CHAR },
+    { (wint_t*)L"\033[C", FORWARD_CHAR },
     /// Pfeil links
-    { L"\033[D", BACKWARD_CHAR },
+    { (wint_t*)L"\033[D", BACKWARD_CHAR },
     /// Pos1
-    { L"\033[H", BEGINNING_OF_LINE },
+    { (wint_t*)L"\033[H", BEGINNING_OF_LINE },
     /// Ende
-    { L"\033[F", END_OF_LINE },
+    { (wint_t*)L"\033[F", END_OF_LINE },
     /// Alt + Pfeil rechts
-    { L"\033\033[C", FORWARD_WORD },
+    { (wint_t*)L"\033\033[C", FORWARD_WORD },
     /// Alt + Pfeil links
-    { L"\033\033[D", BACKWARD_WORD },
+    { (wint_t*)L"\033\033[D", BACKWARD_WORD },
 
     /// Enter
-    { L"\n", ACCEPT_LINE },
+    { (wint_t*)L"\n", ACCEPT_LINE },
     /// Del
-    { L"\033[3~", DELETE_CHAR },
+    { (wint_t*)L"\033[3~", DELETE_CHAR },
     /// Ruecktaste
-    { L"\b", BACKWARD_DELETE_CHAR },
+    { (wint_t*)L"\b", BACKWARD_DELETE_CHAR },
     /// Tab
-    { L"\t", COMPLETE },
+    { (wint_t*)L"\t", COMPLETE },
     /// Ruecktaste
-    { L"\033\b", BACKWARD_KILL_WORD },
+    { (wint_t*)L"\033\b", BACKWARD_KILL_WORD },
 
     /// Pfeil hoch
-    { L"\033[A", PREVIOUS_HISTORY },
+    { (wint_t*)L"\033[A", PREVIOUS_HISTORY },
     /// Pfeil runter
-    { L"\033[B", NEXT_HISTORY },
+    { (wint_t*)L"\033[B", NEXT_HISTORY },
 
     { NULL, UNKNOWN_COMMAND },
 };
-- 
1.6.3.3