summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/term.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-10-01 11:29:09 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-10-02 08:40:43 +0200
commitdda57d9143644d39091207b287f142f91f55d0ad (patch)
tree93991e28537dc9790c57f7b8604321bd6adf1051 /src/libsystemd-terminal/term.h
parenta30f1425133d2b64a1c3f0113a710528872a3cbb (diff)
terminal: add helpers to retrieve page dimensions
Allow term users to retrieve the page dimensions of a terminal screen. This is needed to properly calculate the grid dimensions when rendering.
Diffstat (limited to 'src/libsystemd-terminal/term.h')
-rw-r--r--src/libsystemd-terminal/term.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/term.h b/src/libsystemd-terminal/term.h
index 2f2bb479cb..021cf1c42b 100644
--- a/src/libsystemd-terminal/term.h
+++ b/src/libsystemd-terminal/term.h
@@ -137,6 +137,9 @@ term_screen *term_screen_unref(term_screen *screen);
DEFINE_TRIVIAL_CLEANUP_FUNC(term_screen*, term_screen_unref);
+unsigned int term_screen_get_width(term_screen *screen);
+unsigned int term_screen_get_height(term_screen *screen);
+
int term_screen_feed_text(term_screen *screen, const uint8_t *in, size_t size);
int term_screen_feed_keyboard(term_screen *screen, uint32_t keysym, uint32_t ascii, uint32_t ucs4, unsigned int mods);
int term_screen_resize(term_screen *screen, unsigned int width, unsigned int height);