about summary refs log tree commit diff stats
path: root/input_buffer.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-02-26 23:33:14 +0000
committerJames Booth <boothj5@gmail.com>2012-02-26 23:33:14 +0000
commitcc4c7f3e19ae859a3a24c62a5b702b2663dc57ac (patch)
treec53dd9536835eaae06210cc8e4e039edf76b0a58 /input_buffer.h
parent0a45044f1b65c653f8101d320e0f3ec837261996 (diff)
downloadprofani-tty-cc4c7f3e19ae859a3a24c62a5b702b2663dc57ac.tar.gz
Added input editing and buffer
Left and right arrows for inline editing.
Up arrow to go through history
Diffstat (limited to 'input_buffer.h')
-rw-r--r--input_buffer.h31
1 files changed, 31 insertions, 0 deletions
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 <boothj5@gmail.com>
+ * 
+ * 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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+
+#ifndef INPUT_BUFFER_H
+#define INPUT_BUFFER_H
+
+void inpbuf_init(void);
+void inpbuf_append(char *inp);
+char *inp_buf_get_previous(void);
+
+#endif