diff options
author | Karel Zak | 2019-05-27 12:49:12 +0200 |
---|---|---|
committer | Karel Zak | 2019-05-27 12:49:12 +0200 |
commit | a6d9d23b5f9e3c1d421c1f32a3f1dffe8452cb74 (patch) | |
tree | dfcba7aa547a7adeb25cce9ce4ab85a0e28458b6 /include/ttyutils.h | |
parent | libblkid: remove unneeded fields from struct bcache_super_block (diff) | |
download | kernel-qcow2-util-linux-a6d9d23b5f9e3c1d421c1f32a3f1dffe8452cb74.tar.gz kernel-qcow2-util-linux-a6d9d23b5f9e3c1d421c1f32a3f1dffe8452cb74.tar.xz kernel-qcow2-util-linux-a6d9d23b5f9e3c1d421c1f32a3f1dffe8452cb74.zip |
lib/ttyutils: introduce get_terminal_stdfd()
Let's use separate function to detect what is the current terminal.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/ttyutils.h')
-rw-r--r-- | include/ttyutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ttyutils.h b/include/ttyutils.h index af979159a..f164a580f 100644 --- a/include/ttyutils.h +++ b/include/ttyutils.h @@ -81,6 +81,7 @@ struct chardata { extern int get_terminal_dimension(int *cols, int *lines); extern int get_terminal_width(int default_width); extern int get_terminal_type(const char **type); +extern int get_terminal_stdfd(void); extern int get_terminal_name(const char **path, const char **name, const char **number); |