| 1 | //go:build solaris |
| 2 | // +build solaris |
| 3 | |
| 4 | package termios |
| 5 | |
| 6 | import "golang.org/x/sys/unix" |
| 7 | |
| 8 | // see https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c |
| 9 | // see https://github.com/omniti-labs/illumos-omnios/blob/master/usr/src/uts/common/sys/termios.h |
| 10 | const ( |
| 11 | ioctlSets = unix.TCSETA |
| 12 | ioctlGets = unix.TCGETA |
| 13 | ioctlSetWinSize = (int('T') << 8) | 103 |
| 14 | ioctlGetWinSize = (int('T') << 8) | 104 |
| 15 | ) |
| 16 | |
| 17 | func setSpeed(*unix.Termios, uint32, uint32) { |
| 18 | // TODO: support setting speed on Solaris? |
| 19 | // see cfgetospeed(3C) and cfsetospeed(3C) |
| 20 | // see cfgetispeed(3C) and cfsetispeed(3C) |
| 21 | // https://github.com/omniti-labs/illumos-omnios/blob/master/usr/src/uts/common/sys/termios.h#L103 |
| 22 | } |
| 23 | |
| 24 | func getSpeed(*unix.Termios) (uint32, uint32) { |
| 25 | return 0, 0 |
| 26 | } |