As you can see here:
The various phases are simply scripts.![]()
freebsd-src/usr.sbin/bsdinstall/scripts at master · freebsd/freebsd-src
FreeBSD src tree (read-only mirror). Contribute to freebsd/freebsd-src development by creating an account on GitHub.github.com
dialog
is an offshoot of ncurses. It is what bsdinstall uses for gui.dialog --backtitle "FreeBSD Installer" --title "Abort" \
--no-label "Exit" --yes-label "Restart" --yesno \
"${msg}An installation step has been aborted. Would you like to restart the installation or exit the installer?" 0 0
if [ $? -ne 0 ]; then
exit