Page MenuHomeFreeBSD

bsdinstall hostname: Replace dialog(1) with bsddialog(1)
ClosedPublic

Authored by asiciliano on May 22 2022, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 3:21 PM
Unknown Object (File)
Sun, Oct 27, 9:30 AM
Unknown Object (File)
Mon, Oct 21, 10:26 PM
Unknown Object (File)
Sat, Oct 19, 2:08 AM
Unknown Object (File)
Oct 9 2024, 1:18 PM
Unknown Object (File)
Oct 7 2024, 9:40 AM
Unknown Object (File)
Oct 4 2024, 7:46 AM
Unknown Object (File)
Oct 1 2024, 1:10 PM
Subscribers

Details

Summary

Use libbsddialog autosize for inputbox (at least for height for now). So delete f_dialog_inputbox_size() of bsdconfig because is built on dialog/Xdialog and could create some problem in the long term.

Moreover (not in screenshots), add a --hline string: "Use TAB and Enter to select OK", because the UI dialog/bsddialog is different: dialog does not require TAB to switch the focus on buttons for the inputbox. I could change this in the next version (form refactoring is in the TODO list).

┌────────────────────┤Set Hostname├────────────────────┐
│ Please choose a hostname for this machine.           │  
│                                                      │  
│ If you are running on a managed network, please ask  │  
│ your network administrator for an appropriate name.  │  
│┌────────────────────────────────────────────────────┐│  
││fbsd.local                                          ││  
│└────────────────────────────────────────────────────┘│  
├──────────────────────────────────────────────────────┤  
│                       [  OK  ]                       │  
└─────────── Use TAB and Enter to select OK ───────────┘
Test Plan

Screenshot_2022-05-22_18-41-05.png (476×730 px, 21 KB)

Screenshot_2022-05-22_18-44-03.png (476×730 px, 23 KB)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable