2006-11-13 Denis Pilat <denis.pilat@st.com>
* terminal.c (_rl_get_screen_size): use wr and wc variable to store window size.
This commit is contained in:
parent
83fb162ab0
commit
10e14daab1
@ -1,3 +1,8 @@
|
|||||||
|
2006-11-13 Denis Pilat <denis.pilat@st.com>
|
||||||
|
|
||||||
|
* terminal.c (_rl_get_screen_size): use wr and wc variable to store
|
||||||
|
window size.
|
||||||
|
|
||||||
2006-10-21 Ulrich Weigand <uweigand@de.ibm.com>
|
2006-10-21 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* callback.c: Include "xmalloc.h".
|
* callback.c: Include "xmalloc.h".
|
||||||
|
@ -226,8 +226,8 @@ _rl_get_screen_size (tty, ignore_env)
|
|||||||
CONSOLE_SCREEN_BUFFER_INFO scr;
|
CONSOLE_SCREEN_BUFFER_INFO scr;
|
||||||
if (GetConsoleScreenBufferInfo (hConOut, &scr))
|
if (GetConsoleScreenBufferInfo (hConOut, &scr))
|
||||||
{
|
{
|
||||||
_rl_screenwidth = scr.dwSize.X;
|
wc = scr.dwSize.X;
|
||||||
_rl_screenheight = scr.srWindow.Bottom - scr.srWindow.Top + 1;
|
wr = scr.srWindow.Bottom - scr.srWindow.Top + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user