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

How to exit back to terminal? #25

Open
noodleboy91 opened this issue Oct 24, 2021 · 1 comment
Open

How to exit back to terminal? #25

noodleboy91 opened this issue Oct 24, 2021 · 1 comment

Comments

@noodleboy91
Copy link

I have phad set up to run on boot on my pi, and despite the normal shortcut key combos (ctrl z or ctrl c), I cannot seem to exit back to the terminal. Can someone please advise how I can do that? Thank you

@bpennypacker
Copy link
Owner

If you used the simple installer script then it installed a loop in your .bashrc file that looks something like this:

if [ "\$TERM" == "linux" ] ; then
  cd /home/pi/phad
  while :
  do
    ./phad 2>/dev/null
    sleep 10
  done
fi

That code restarts phad any time it terminates for any reason, after a 10 second sleep. So if you hit ctrl+c etc. to kill phad then this loop will simply relaunch it.

Depending on exactly what behavior you are looking for you'll likely want to edit this file and change/delete that loop.

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