aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-02 02:02:58 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-02 02:02:58 +1000
commit15724d079801df9183d0d86cadfbb7dec5b2821b (patch)
treef971d85d58390e28fd4e0429badcca584381709b /screen.h
parent2839f5e567e21a15850c3adfa2cc3cd1d7372ea9 (diff)
First stab at multiline editing
darcs-hash:20061001160258-ac50b-1a760913e64b96e30ff321d7fbe4069ca161cdfe.gz
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/screen.h b/screen.h
new file mode 100644
index 00000000..4a85edc0
--- /dev/null
+++ b/screen.h
@@ -0,0 +1,30 @@
+#ifndef FISH_SCREEN_H
+#define FISH_SCREEN_H
+
+#define SCREEN_REPAINT 1
+#define SCREEN_SKIP_RETURN 2
+
+typedef struct
+{
+ array_list_t output;
+ array_list_t screen;
+ int output_cursor[2];
+ int screen_cursor[2];
+ string_buffer_t prompt_buff;
+}
+ screen_t;
+
+typedef struct
+{
+ array_list_t text;
+ array_list_t color;
+}
+ line_t;
+
+void s_init( screen_t *s );
+void s_destroy( screen_t *s );
+
+void s_write( screen_t *s, wchar_t *prompt, wchar_t *b, int *c, int cursor, int flags );
+void s_reset( screen_t *s );
+
+#endif