[ion] Add stdio console

Change-Id: If608587fb88912c887a26fb1ba729740357d39c9
This commit is contained in:
Romain Goyet
2017-03-17 15:34:27 +01:00
parent bfab275a88
commit e7be0bbcae
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include <ion/console.h>
#include <stdio.h>
namespace Ion {
namespace Console {
char readChar() {
return getchar();
}
void writeChar(char c) {
printf("%c", c);
fflush(stdout);
}
}
}