Files
Upsilon/src/hello.cpp
2015-09-02 22:03:24 +02:00

35 lines
567 B
C++

extern "C" {
#include "hello.h"
#include <kandinsky.h>
#include <stdlib.h>
#include <ion.h>
}
#include <poincare.h>
void hello() {
KDFillRect((KDRect){
.x = 0,
.y = 0,
.width = 320,
.height = 240},
0x7F);
char input[255];
int index = 0;
while (1) {
char character = ion_getchar();
if (character == '.') {
input[index] = 0;
index = 0;
CreateFromString(input);
} else {
input[index++] = character;
input[index] = 0;
KDDrawString(input, (KDPoint){.x = 40, .y = 40});
}
}
}