diff options
author | Christopher Faylor <me@cgf.cx> | 2014-03-10 18:18:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2014-03-10 18:18:56 +0000 |
commit | 5c66535df976a59057b6f2b311e9b87ba179965b (patch) | |
tree | 12c89505de2a4221feabac49405fd08a41170833 /winsup/cygwin | |
parent | ebfec243916a01167071282305dab39d8d45418d (diff) | |
download | cygnal-5c66535df976a59057b6f2b311e9b87ba179965b.tar.gz cygnal-5c66535df976a59057b6f2b311e9b87ba179965b.tar.bz2 cygnal-5c66535df976a59057b6f2b311e9b87ba179965b.zip |
* fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO for use
with older OS.
* fhandler_console.cc (dev_console::fillin): Ditto for
GetConsoleScreenBufferInfo.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0d3c5cc8b..debee8b57 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,12 @@ 2014-03-10 Christopher Faylor <me.cygwin2014@cgf.cx> + * fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO + for use with older OS. + * fhandler_console.cc (dev_console::fillin): Ditto for + GetConsoleScreenBufferInfo. + +2014-03-10 Christopher Faylor <me.cygwin2014@cgf.cx> + * fhandler_console.cc (dev_console::save_restore): Save entire line of current cursor position. diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 6d9a1b7e7..5e86f003c 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -1294,7 +1294,7 @@ class dev_console short Bottom; } scroll_region; - CONSOLE_SCREEN_BUFFER_INFOEX b; + CONSOLE_SCREEN_BUFFER_INFO b; COORD dwWinSize; COORD dwEnd; diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index ffbda4813..7a97fc461 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -733,8 +733,7 @@ dev_console::fillin (HANDLE h) { bool ret; - b.cbSize = sizeof (b); - if ((ret = GetConsoleScreenBufferInfoEx (h, &b))) + if ((ret = GetConsoleScreenBufferInfo (h, &b))) { dwWinSize.Y = 1 + b.srWindow.Bottom - b.srWindow.Top; dwWinSize.X = 1 + b.srWindow.Right - b.srWindow.Left; |