From cdead8bb8f2cab9ff1faab1351e35d052602d5f0 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 6 Apr 2015 14:31:42 -0700 Subject: [PATCH] Swap width/height in GetWinsize and monitorTtySize Signed-off-by: Ahmet Alp Balkan --- term/term_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term/term_windows.go b/term/term_windows.go index f43721c..5b63792 100644 --- a/term/term_windows.go +++ b/term/term_windows.go @@ -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) return &Winsize{ - Width: uint16(info.Window.Bottom - info.Window.Top + 1), - Height: uint16(info.Window.Right - info.Window.Left + 1), + Width: uint16(info.Window.Right - info.Window.Left + 1), + Height: uint16(info.Window.Bottom - info.Window.Top + 1), x: 0, y: 0}, nil }