Revert "login-app: allow login up to 25 chars"

This reverts commit 37acc213b7.
This commit is contained in:
nemunaire 2019-02-28 07:25:09 +01:00
parent 0b05e8539d
commit a79383b263

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