Here is my code:
IF K$=="~" THEN INPUT "";I$:I=ASC(I$):GOSUB @PUSH
(P.S.: can anyone guess what this is for?)
Here is my code:
IF K$=="~" THEN INPUT "";I$:I=ASC(I$):GOSUB @PUSH
(P.S.: can anyone guess what this is for?)
The unhelpful answer is that you have not demonstrated that INPUT is not working. Trying to be more helpful: What do you mean by writing "INPUT is not working"? What happens? What do you expect would happen? What do you want to happen?
It doesn't let you type anything.
It looks like:
?
_
Ok, I did some more testing. I cannot get the input command to work AT ALL, unless it is on the last row of text.
And then it randomly started working again...
Ok, here's what I figured out: If I run my program, INPUT stops working, until i do a CLS, when it starts working again.-
The problem with INPUT is that things that have previously been PRINTed on the line are considered part of the user input. For instance, if you have PRINTed 40 space characters on the line that the cursor appears on, it is as if you had typed 40 space characters and then moved the cursor back to the left of the line. If you press the right button, then backspace, there are now only 39 space characters, and you can type one character, but not two: until you delete another character.
The exception is CHR$(0). If you have PRINTed CHR$(0) across the row that the cursor appears on, INPUT will behave as you expect. If you have a mixture of CHR$(0) and other characters, the behaviour is quite complex, and confusing.
The exception is CHR$(0). If you have PRINTed CHR$(0) across the row that the cursor appears on, INPUT will behave as you expect. If you have a mixture of CHR$(0) and other characters, the behaviour is quite complex, and confusing.
Thank you!!!