From cc4c7f3e19ae859a3a24c62a5b702b2663dc57ac Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 26 Feb 2012 23:33:14 +0000 Subject: Added input editing and buffer Left and right arrows for inline editing. Up arrow to go through history --- input_buffer.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 input_buffer.h (limited to 'input_buffer.h') diff --git a/input_buffer.h b/input_buffer.h new file mode 100644 index 00000000..a2008859 --- /dev/null +++ b/input_buffer.h @@ -0,0 +1,31 @@ +/* + * input_buffer.h + * + * Copyright (C) 2012 James Booth + * + * This file is part of Profanity. + * + * Profanity is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Profanity is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Profanity. If not, see . + * + */ + + +#ifndef INPUT_BUFFER_H +#define INPUT_BUFFER_H + +void inpbuf_init(void); +void inpbuf_append(char *inp); +char *inp_buf_get_previous(void); + +#endif -- cgit 1.4.1-2-gfad0