Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions term_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package term

import (
"fmt"
"errors"
"io"
"os"
"os/signal"
Expand Down Expand Up @@ -94,16 +94,14 @@ func getWinsize(fd uintptr) (*Winsize, error) {
return nil, err
}

winsize := &Winsize{
return &Winsize{
Width: uint16(info.Window.Right - info.Window.Left + 1),
Height: uint16(info.Window.Bottom - info.Window.Top + 1),
}

return winsize, nil
}, nil
}

func setWinsize(fd uintptr, ws *Winsize) error {
return fmt.Errorf("not implemented on Windows")
return errors.New("not implemented on Windows")
}

func isTerminal(fd uintptr) bool {
Expand Down
Loading