mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 21:36:21 +00:00
Added input editing and buffer
Left and right arrows for inline editing. Up arrow to go through history
This commit is contained in:
@@ -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] == '/') {
|
||||
|
||||
Reference in New Issue
Block a user