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