pkg/term

golang.syscall to golang.org/x/sys

Closed this issue · 6 comments

Hello,

In according to https://golang.org/pkg/syscall:

Deprecated: this package is locked down. Callers should use the
corresponding package in the golang.org/x/sys repository instead.

In my point of view, we have to update.
Please clarify your point of view.

At the preliminary view, all is same, but with small separation by OS:
https://godoc.org/golang.org/x/sys

Also struct of Termios changed from:

type Termios struct {
        Iflag     uint32
        Oflag     uint32
        Cflag     uint32
        Lflag     uint32
        Line      uint8
        Cc        [32]uint8
        Pad_cgo_0 [3]byte
        Ispeed    uint32
        Ospeed    uint32
}

to:

type Termios struct {
    Iflag  uint32
    Oflag  uint32
    Cflag  uint32
    Lflag  uint32
    Line   uint8
    Cc     [19]uint8
    Ispeed uint32
    Ospeed uint32
}

I only unix package. Us I understood, if fields of struct Termios are changed , so structs syscall.Termios and unix.Termios are not comparable. So no backport.

I've switched to x/sys now.