func donormfile(input string) (*os.File, error) {
	tdir := os.TempDir()
	pid := os.Getpid()
	nf, err := os.Create(tdir + "/" + "s2test-" + strconv.Itoa(pid))
	if err != nil {
		return nil, err
	}
	os.Remove(tdir + "/" + "s2test-" + strconv.Itoa(pid))
	if _, err = nf.Write([]byte(input)); err != nil {
		return nil, err
	}
	return nf, nil
}
donormfile Creates a standard file.
Used to test that setting terminal attributes fail on standard files.
package term
import (
	"bytes"
	"fmt"
	"io"
	"math/rand"
	"os"
	"strconv"
	"sync"
	"syscall"
	"testing"
)
var pty *PTY
var tios Termios
var wz *Winsize
const NUMTEST = 100