Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Terminal-based deployment #42

Open
sysrich opened this issue Aug 1, 2024 · 1 comment
Open

Add support for Terminal-based deployment #42

sysrich opened this issue Aug 1, 2024 · 1 comment

Comments

@sysrich
Copy link
Owner

sysrich commented Aug 1, 2024

tik currently assumes execution in a graphical environment, hence the liberal use of zenity for dialog boxes, lists, progressbars, and password entry

Most of these are called by the 'd' function (and all should be called by 'd' and/or it's equivalents once #41 is implemented)

Original tik design assumed zenity would be used interchangably with dialog for terminal use, however dialog doesn't support all target architectures we wish to work on.

Therefore I propose expanding the 'd' function to instead use nice simple plain text outputs that will work on any terminal on any architecture.

There will obviously need to be some magic for more complex differences such as references to "Press [a GUI button] to continue" vs "Press any key to continue"

Some below mockups for example
Screenshot from 2024-08-01 10-43-40
Screenshot from 2024-08-01 10-43-45

zenity --info --ok-label="Install Now" --no-wrap --width=300 --height=300 --icon=distributor-logo-Aeon-symbolic --title="" --text="<big>Welcome to Aeon</big>\n\nPlease press <b>Install Now</b> to continue"

clear
echo "Welcome to Aeon"
read -n 1 -s -r -p "Press any key to continue"

Screenshot from 2024-08-01 10-43-49
Screenshot from 2024-08-01 10-43-53

zenity --question --no-wrap --title="Begin Installation?" --text="Once the installation begins the changes to the selected disk are irreversible.\n\n<b>Proceeding will fully erase the disk.</b>\n\nContinue with installation?"

clear
tput bold
echo "Begin Installation?"
tput sgr0
echo -e "Once the installation begins the changes to the selected disk are irreversible.\n\n$(tput bold)Proceeding will fully erase the disk.$(tput sgr0)\n\nContinue with installation?"
read -p "(y/n)?" choice
case "$choice" in 
  y|Y ) echo "yes";;
  n|N ) echo "no";;
  * ) echo "invalid";;
esac
@greygoo
Copy link
Contributor

greygoo commented Oct 24, 2024

Just for tracking and to keep things together, PR for cli support is here: #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants