[Bug 295428] Installer: root password truncates to 32 characters

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Jul 2026 02:01:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295428

--- Comment #5 from Devin Teske <dteske@FreeBSD.org> ---
I have one additional suggestion for fixing issues with this dialog
(passwordform).

A long-held problem (that predates bsddialog -- going back to cdialog) is how
we handle ENTER.

Instead of taking ENTER as a sign to dismiss the dialog, regardless of where
the cursor is (meaning, which box -- in the password box versus repeat password
box) it seems entirely logical to not penalize the user for pressing ENTER
(which by the time you've realized that your finger's muscle-memory is about to
do you wrong, it's too late), we should merely move the cursor to the next
field when ENTER is pressed in a field that is not the last field.

It's nearly maddening to have to fight your own fingers to press TAB and NOT
press ENTER to move through the fields.

Because we control the code to bsddialog, this seems like a wrong that we
finally have the chance to right, because the situation has very often been an
inclination to yeet the physical hardware across the room when you prematurely
advance through a series of dialogs making a setting that you were not ready to
advance-through (because you have built-up a level of anxiety of have dealt
with navigating difficult decisions previously, and you don't want to have to
start over simply because your fingers pressed ENTER when you meant TAB).

Real talk: in the case of bsdinstall rootpass, it's less of an issue to
prematurely hit ENTER because an error is generated that password != repeat
password, so you get a second bite at the apple as the dialog is thrown back
up. However, there are other forms used in bsdinstall where ENTER absolutely
will advance you and you have no way of going back (read: network
configuration; not everyone has spent as much time as I have in the installer
to know that you can have a second bite at that particular apple through secret
avenues -- most people I have observed navigating --form explode when they
press ENTER and are astonished that instead of advancing to the next field, the
dialog goes away)

-- 
You are receiving this mail because:
You are the assignee for the bug.