summaryrefslogtreecommitdiffstats
path: root/include/ttyutils.h
diff options
context:
space:
mode:
authorKarel Zak2017-06-12 11:38:38 +0200
committerKarel Zak2017-06-12 11:38:38 +0200
commitf46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2 (patch)
treea76ed8ae42b214c6477e30b82a7fa43ca46f1720 /include/ttyutils.h
parentdocs: update TODO, remove auto,noauto (diff)
downloadkernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.tar.gz
kernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.tar.xz
kernel-qcow2-util-linux-f46a8d7e6636b7cc1e56bd0010c3950e2a11cbd2.zip
lib/ttyutils: return terminal lines too
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/ttyutils.h')
-rw-r--r--include/ttyutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ttyutils.h b/include/ttyutils.h
index 7278d3615..a9baab34b 100644
--- a/include/ttyutils.h
+++ b/include/ttyutils.h
@@ -50,6 +50,7 @@ struct chardata {
(ptr)->capslock = 0; \
} while (0)
+extern int get_terminal_dimension(int *cols, int *lines);
extern int get_terminal_width(int default_width);
extern int get_terminal_name(const char **path, const char **name,
const char **number);