login-app: allow login up to 25 chars

This commit is contained in:
nemunaire 2019-02-24 04:39:59 +01:00
parent 07f0ea3711
commit 37acc213b7

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
fields := make([]*gc.Field, 3)
fields[0], _ = gc.NewField(1, 24, 2, 15, 0, 0)
fields[0], _ = gc.NewField(1, 25, 2, 14, 0, 0)
defer fields[0].Free()
fields[0].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE)
fields[0].SetOptionsOff(gc.FO_AUTOSKIP)
fields[1], _ = gc.NewField(1, 24, 4, 15, 0, 0)
fields[1], _ = gc.NewField(1, 25, 4, 14, 0, 0)
defer fields[1].Free()
fields[1].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE)
fields[1].SetOptionsOff(gc.FO_PUBLIC)