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

@@ -30,15 +30,22 @@
#include "windows.h"
#include "jabber.h"
#include "command.h"
#include "input_buffer.h"
static void _profanity_event_loop(int *ch, char *cmd, int *size);
static void _process_special_keys(int *ch);
static void profanity_init(int disable_tls)
{
jabber_init(disable_tls);
inpbuf_init();
}
void profanity_main(int disable_tls)
{
int cmd_result = TRUE;
init_jabber(disable_tls);
profanity_init(disable_tls);
inp_non_block();
while(cmd_result == TRUE) {