title: How to stop the on button from breaking a program in TI-BASIC
body: <p>So I made a TI-BASIC program that fakes the calculator's home screen but gives the wrong answer to math equations on purpose. This is the code:  </p>
  
  <pre><code>:ClrHome
  :Lbl 1
  :Input "",A
  :Disp rand
  :Goto 1
  </code></pre>
  
  <p>It works great and all and it's fun to trick friends with it, but I would like to make it more sophisticated. For example:<br>
  1) How can I get around the  automatic breaking of the program when "ON" is pressed,and<br>
  2) Are there any other ways to better fake the home screen (like when someone presses an operation without a number before it, it automatically fakes the 'ANS' variable), and how can I write those in the program.  </p>
  
  <p>Thanks in advance.</p>