diff options
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 33bf18b58..ff70bb4b0 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -24,6 +24,8 @@ details. */ #include "sync.h" #include "sigproc.h" #include "pinfo.h" +#include "tty.h" +#include "shared_info.h" /* * Scroll the screen context. @@ -249,6 +251,21 @@ fhandler_console::read (void *pv, size_t buflen) return copied_chars; } +int +fhandler_console::tcsetpgrp (pid_t pid) +{ + tc->pgid = pid; + return 0; +} + +void +fhandler_console::set_input_state () +{ + if (TTYISSETF (RSTCONS)) + input_tcsetattr (0, &tc->ti); +} + + static struct { SHORT winTop; |