func NewList() (list *List) { list = new(List) win_height, win_width := goncurses.StdScr().Maxyx() window, err := goncurses.NewWindow(win_height-3, win_width, 0, 0) if err != nil { panic(err) } list.Window = &window list.items = make(map[string]*pty_servers.PtyShare) list.init_colors() list.draw_initial() return }
func NewCommand() (command *Command) { command = new(Command) win_height, win_width := goncurses.StdScr().Maxyx() window, err := goncurses.NewWindow(3, win_width, win_height-3, 0) if err != nil { panic(err) } command.init_colors() command.Window = &window command.clear() return }
func NewList() (list *List) { list = new(List) win_height, win_width := goncurses.StdScr().Maxyx() window, err := goncurses.NewWindow(win_height, win_width, 0, 0) if err != nil { panic(err) } list.Window = &window list.init_colors() list.draw_initial() return }