login-app: increase fields size (there are big logins this year...)

This commit is contained in:
nemunaire 2020-02-24 10:11:41 +01:00
parent 54cb0ac087
commit 2dea6fff2b

View file

@ -12,12 +12,12 @@ func login(stdscr *gc.Window, in chan gc.Key) (username , password string) {
// Initialize the fields and Set field options // Initialize the fields and Set field options
fields := make([]*gc.Field, 3) fields := make([]*gc.Field, 3)
fields[0], _ = gc.NewField(1, 24, 2, 15, 0, 0) fields[0], _ = gc.NewField(1, 28, 2, 12, 0, 0)
defer fields[0].Free() defer fields[0].Free()
fields[0].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE) fields[0].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE)
fields[0].SetOptionsOff(gc.FO_AUTOSKIP) fields[0].SetOptionsOff(gc.FO_AUTOSKIP)
fields[1], _ = gc.NewField(1, 24, 4, 15, 0, 0) fields[1], _ = gc.NewField(1, 28, 4, 12, 0, 0)
defer fields[1].Free() defer fields[1].Free()
fields[1].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE) fields[1].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE)
fields[1].SetOptionsOff(gc.FO_PUBLIC) fields[1].SetOptionsOff(gc.FO_PUBLIC)
@ -64,8 +64,8 @@ func login(stdscr *gc.Window, in chan gc.Key) (username , password string) {
form.Post() form.Post()
defer form.UnPost() defer form.UnPost()
mainwin.MovePrint(5, 4, "Login:") mainwin.MovePrint(5, 3, "Login:")
mainwin.MovePrint(7, 4, "Password:") mainwin.MovePrint(7, 3, "Password:")
form.Driver(gc.REQ_FIRST_FIELD) form.Driver(gc.REQ_FIRST_FIELD)