Exemple #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
}
Exemple #2
0
// Duplicate the window, creating an exact copy.
func (w *Window) Duplicate() *Window {
	return &Window{C.dupwin(w.win)}
}
Exemple #3
0
func DublicateWindow(w *Window) *Window {
	return &Window{C.dupwin(w.win)}
}