Files
Upsilon/app/utils.h
Felix Raimundo 23aef52622 First part for adding history to the user input.
Change-Id: I9d2ff28641f0d3b7fe382a765ad8cc084840c2ef
2016-04-07 12:44:05 +02:00

23 lines
436 B
C

#ifndef APP_UTILS_H
#define APP_UTILS_H
extern "C" {
#include <ion.h>
}
typedef struct {
char* text;
ion_event_t event;
} text_event_t;
/* Returns a pointer to an input text allocated by the functions.
* Also returns an event, which is its return reason.
*
* This function can get a text to work on instead of starting from an empty
* string. */
text_event_t get_text(char* txt);
void clear_screen();
#endif // APP_UTILS_H