func NewLoginUser(listUser []string) (*loginUser, error) {
	g, err := gocui.NewGui(gocui.OutputNormal)
	if err != nil {
		return nil, err
	}
	g.Highlight = true
	g.Cursor = false
	g.SelFgColor = gocui.ColorGreen
	l := &loginUser{
		list:     listUser,
		g:        g,
		viewName: "login_user_selector",
	}
	l.g.SetManagerFunc(func(gui *gocui.Gui) error {
		return l.registerView()
	})
	if err := l.registerKeyBind(); err != nil {
		return nil, err
	}
	l.width, l.height = g.Size()
	return l, nil
}
NewLoginUser create a new login user UI
package ui
import (
	"bytes"
	"fmt"
	"strings"
	"github.com/jroimartin/gocui"
)
type loginUser struct {
	list          []string
	width, height int
	g             *gocui.Gui
	viewName      string
	selectedUser string
	pos int
}