by charmes.guillaume:
Impossible to change terminal control capabilities.
Depending on the capability you try to set, you get: operation not supported by device,
operation denied, bad file descriptor.
I tried also directly using syscall.Rawsyscall of IOCTL, but get same result.
With os.exec: http://play.golang.org/p/8BEJrHXlIM
Directly with syscall: http://play.golang.org/p/d864INMbEe
Tried on versions:
go version go1.0.2 (ubuntu)
go version devel +70a50cc39caf Fri Feb 15 13:13:19 2013 -0500 linux/amd64
go version go1.0.3 (osx)
go version devel +786e094255c9 Tue Mar 19 07:08:26 2013 +0100 darwin/amd64