Swap width/height in GetWinsize and monitorTtySize
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
parent
52a4467d1d
commit
cdead8bb8f
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ func GetWinsize(fd uintptr) (*Winsize, error) {
|
||||||
|
|
||||||
// TODO(azlinux): Set the pixel width / height of the console (currently unused by any caller)
|
// TODO(azlinux): Set the pixel width / height of the console (currently unused by any caller)
|
||||||
return &Winsize{
|
return &Winsize{
|
||||||
Width: uint16(info.Window.Bottom - info.Window.Top + 1),
|
Width: uint16(info.Window.Right - info.Window.Left + 1),
|
||||||
Height: uint16(info.Window.Right - info.Window.Left + 1),
|
Height: uint16(info.Window.Bottom - info.Window.Top + 1),
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0}, nil
|
y: 0}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue