mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
11 lines
113 B
Go
11 lines
113 B
Go
package sys
|
|
|
|
/*
|
|
#include <unistd.h>
|
|
*/
|
|
import "C"
|
|
|
|
func IsATTY(fd int) bool {
|
|
return C.isatty(C.int(fd)) != 0
|
|
}
|