Example #1
0
func (win *Window) Dupwin() (*Window, error) {
	dw := (*Window)(C.dupwin((*C.WINDOW)(win)))
	if dw == nil {
		return nil, CursesError{"dupwin failed"}
	}
	return dw, nil
}
Example #2
0
// Duplicate the window, creating an exact copy.
func (w *Window) Duplicate() *Window {
	return &Window{C.dupwin(w.win)}
}
Example #3
0
func DublicateWindow(w *Window) *Window {
	return &Window{C.dupwin(w.win)}
}