From 94c0e197f08936400f004b8aac75928c8ca5ba75 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 26 Nov 2001 20:20:42 +0000 Subject: [PATCH] * Makefile.in (libcygwin.a): Use ar commands to build libcygwin.a since adding an archive doesn't work the way we want it to. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/Makefile.in | 2 +- winsup/cygwin/fhandler_console.cc | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 10114c6f3..88ba2af3b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2001-11-26 Christopher Faylor + + * Makefile.in (libcygwin.a): Use ar commands to build libcygwin.a since + adding an archive doesn't work the way we want it to. + 2001-11-24 Christopher Faylor * fhandler_disk_file.cc (fhandler_cygdrive::readdir): Avoid reporting diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index 243e54ebc..cc2a80194 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -198,7 +198,7 @@ new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $( @rm -f stamp-cygwin-lib $(LIB_NAME): new-$(DLL_NAME) $(LIBCOS) stamp-cygwin-lib - $(AR) rcv $(LIB_NAME) $(LIBCOS) cygdll.a + (echo create $(LIB_NAME); echo addlib cygdll.a; echo addmod $(LIBCOS); echo save) | $(AR) -M stamp-cygwin-lib: @touch stamp-cygwin-lib diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 3598810cb..ae3608c11 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -585,6 +585,11 @@ fhandler_console::open (path_conv *, int flags, mode_t) cflags |= ENABLE_PROCESSED_INPUT; SetConsoleMode (get_io_handle (), ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT | cflags); } + if (GetConsoleMode (get_output_handle (), &cflags)) + { + cflags |= ENABLE_PROCESSED_OUTPUT; + SetConsoleMode (get_io_handle (), cflags); + } TTYCLEARF (RSTCONS); set_open_status ();