Example #1
0
// DelChar deletes the character at the current cursor position, moving all
// characters to the right of that position one space to the left and appends
// a blank character at the end.
func (w *Window) DelChar() error {
	if err := C.wdelch(w.win); err != C.OK {
		return errors.New("An error occurred when trying to delete " +
			"character")
	}
	return nil
}
Example #2
0
func (win *Window) Delch() error {
	if C.wdelch((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"wdelch failed"}
	}
	return nil
}