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