Added input editing and buffer

Left and right arrows for inline editing.
Up arrow to go through history
This commit is contained in:
James Booth
2012-02-26 23:33:14 +00:00
parent 0a45044f1b
commit cc4c7f3e19
10 changed files with 151 additions and 14 deletions

View File

@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <ncurses.h>
#include "command.h"
#include "input_buffer.h"
#include "jabber.h"
#include "windows.h"
#include "util.h"
@@ -41,6 +42,9 @@ int process_input(char *inp)
{
int result = FALSE;
if (strlen(inp) > 0)
inpbuf_append(inp);
if (strlen(inp) == 0) {
result = TRUE;
} else if (inp[0] == '/') {