// Echo turns on/off the printing of typed characters func Echo(on bool) { if on { C.echo() return } C.noecho() }
func Echo() os.Error { in() defer out() if int(C.echo()) == 0 { return CursesError{"Echo failed"} } return nil }
func Echo(args ...string) { cs := C.CString(strings.Join(args, " ")) C.echo(cs) C.free(unsafe.Pointer(cs)) }
func Echo() error { if int(C.echo()) == 0 { return ErrorEcho } return nil }
// Enable character echoing while reading. func Echo() { C.echo() }
func endCurses() { C.nocbreak() C.echo() C.nl() C.endwin() }
func main() { flag.Parse() cs := C.CString(strings.Join(flag.Args(), " ")) C.echo(cs) C.free(unsafe.Pointer(cs)) }
func Echo() error { if C.echo() == C.ERR { return CursesError{"echo failed"} } return nil }