Hello!
This is my first posting, and of course I have a problem.
I bought a TI-84 Plus CE-T to make some programs. Not the fanciest graphics stuff as a start, just simple programs like prime factors, calculating electronic circuits etc.
TI Basic is a bit too slow, so I tried C. Not much of a problem, my first C programs are from 1980 or so. I could not believe what happend after installing the CE C Software Development Kit from MateoConLechuga - Hello world example compiled without errors and run. Great work!
So I continued and did this:
Code:
Only clearing the screen, printing my program header and asking the user to input a string.
The problem is that os_GetStringInput clears the screen and my header line is gone.
The docu says: os_GetStringInput
"Custom implementation input routine for use in conjunction with the TIOS"
Not much info.
What I am doing wrong here? Setting the cursor in line 2 does not help either. The whole screen is erased.
Sorry if this question is stupid.
Greetings
Thomas
This is my first posting, and of course I have a problem.
I bought a TI-84 Plus CE-T to make some programs. Not the fanciest graphics stuff as a start, just simple programs like prime factors, calculating electronic circuits etc.
TI Basic is a bit too slow, so I tried C. Not much of a problem, my first C programs are from 1980 or so. I could not believe what happend after installing the CE C Software Development Kit from MateoConLechuga - Hello world example compiled without errors and run. Great work!
So I continued and did this:
Code:
const char prompt[] = "Input = ";
char input[INPUT_SIZE];
char response[BUFFER_SIZE];
const char *HeadLine = "** My Program in C **";
/* Clear home screen */
os_ClrHome();
/* Print program header line */
printText(HeadLine, 0, 0);
/* Get an input string from the user */
os_SetCursorPos(2, 2); /* Does nothing? */
os_GetStringInput(prompt, input, sizeof(input));
Only clearing the screen, printing my program header and asking the user to input a string.
The problem is that os_GetStringInput clears the screen and my header line is gone.
The docu says: os_GetStringInput
"Custom implementation input routine for use in conjunction with the TIOS"
Not much info.
What I am doing wrong here? Setting the cursor in line 2 does not help either. The whole screen is erased.
Sorry if this question is stupid.
Greetings
Thomas