summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/examples/fileio_detectany/src
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-04-24 11:03:58 -0400
committerAndrew Opalach <andrew@akon.city> 2019-04-24 11:03:58 -0400
commit4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 (patch)
treefe63c3525b2e14f12b4492f87d3e875c4dcec0e4 /frontends/calculator/CEdev/examples/fileio_detectany/src
parent6152e965868f3e010c79d91ce3da0036758fda4d (diff)
downloadcetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.gz
cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.bz2
cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.zip
add pause to curses, remove unfinished calculator frontend
Diffstat (limited to 'frontends/calculator/CEdev/examples/fileio_detectany/src')
-rw-r--r--frontends/calculator/CEdev/examples/fileio_detectany/src/main.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/frontends/calculator/CEdev/examples/fileio_detectany/src/main.c b/frontends/calculator/CEdev/examples/fileio_detectany/src/main.c
deleted file mode 100644
index 4262abe..0000000
--- a/frontends/calculator/CEdev/examples/fileio_detectany/src/main.c
+++ /dev/null
@@ -1,49 +0,0 @@
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <tice.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <fileioc.h>
-
-/* Function prototypes */
-void printText(int8_t xpos, int8_t ypos, const char *text);
-
-/* Main Function */
-void main(void) {
- /* Declare some variables -- search_pos must be NULL to begin with */
- uint8_t *search_pos = NULL, type;
- int8_t y = 0;
- ti_var_t myVar;
- char *var_name;
-
- /* First couple bytes of the LibLoad AppVar, which is known to exist *
- /* Technically is a null-terminated string, if an odd looking one */
- const char search_string[] = { 0xBF, 0xFE, 0x00 };
-
- /* Clear the homescreen */
- os_ClrHome();
-
- /* Find all of the variables that start with this string */
- while ((var_name = ti_DetectAny(&search_pos, search_string, &type)) != NULL) {
- if (type == TI_APPVAR_TYPE) {
- /* Print the name of the variable (Should be LibLoad) */
- printText(0, y++, var_name);
- }
- }
-
- /* Wait for a key */
- while (!os_GetCSC());
-
- /* Close all open files */
- ti_CloseAll();
-}
-
-/* Draw text on the homescreen at the given X/Y location */
-void printText(int8_t xpos, int8_t ypos, const char *text) {
- os_SetCursorPos(ypos, xpos);
- os_PutStrFull(text);
-}