login-app: allow login up to 25 chars
This commit is contained in:
parent
07f0ea3711
commit
37acc213b7
@ -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, 25, 2, 14, 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, 25, 4, 14, 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)
|
||||||
|
Reference in New Issue
Block a user