aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-07-13 08:46:33 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-07-13 08:46:33 +0000
commit197e0bbf46d74b622f43315f0daa9b0f6105a93d (patch)
tree4ce8a1831db77a7e7c3fcc6d1f45cef56e0ceaea /src/bin/termptyops.h
parentmouve doublewidth checking to its own file to not "pollute" termpty.c. (diff)
downloadterminology-197e0bbf46d74b622f43315f0daa9b0f6105a93d.tar.gz
splut up termpty a lot. still escape handling is the largest bit -
1200 lines or so, but not a lot that canbe done about that as its the smallest really logical unit there. SVN revision: 73798
Diffstat (limited to 'src/bin/termptyops.h')
-rw-r--r--src/bin/termptyops.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bin/termptyops.h b/src/bin/termptyops.h
new file mode 100644
index 0000000..bf93c6b
--- /dev/null
+++ b/src/bin/termptyops.h
@@ -0,0 +1,21 @@
+typedef enum _Termpty_Clear
+{
+ TERMPTY_CLR_END,
+ TERMPTY_CLR_BEGIN,
+ TERMPTY_CLR_ALL
+} Termpty_Clear;
+
+void _termpty_text_copy(Termpty *ty, Termcell *cells, Termcell *dest, int count);
+void _termpty_text_scroll(Termpty *ty);
+void _termpty_text_scroll_rev(Termpty *ty);
+void _termpty_text_scroll_test(Termpty *ty);
+void _termpty_text_scroll_rev_test(Termpty *ty);
+void _termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len);
+void _termpty_clear_line(Termpty *ty, Termpty_Clear mode, int limit);
+void _termpty_clear_screen(Termpty *ty, Termpty_Clear mode);
+void _termpty_clear_all(Termpty *ty);
+void _termpty_reset_att(Termatt *att);
+void _termpty_reset_state(Termpty *ty);
+void _termpty_cursor_copy(Termstate *state, Termstate *dest);
+
+#define _term_txt_write(ty, txt) termpty_write(ty, txt, sizeof(txt) - 1)