// SetBuffer sets the visible characters in the field. A buffer is empty by // default. func (f *Field) SetBuffer(s string) error { cstr := C.CString(s) defer C.free(unsafe.Pointer(cstr)) err := C.set_field_buffer((*C.FIELD)(f), C.int(0), cstr) return ncursesError(syscall.Errno(err)) }
func (field *Field) SetBuffer(ind int, message string) bool { return isOk(C.set_field_buffer((*C.FIELD)(field), C.int(ind), C.CString(message))) }
func (f *Field) SetBuffer(ind int, message string) error { //Memoryleak return geterror(C.set_field_buffer(f.field, C.int(ind), C.CString(message))) }