mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
35 lines
567 B
C++
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});
|
|
}
|
|
}
|
|
}
|