mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 23:30:37 +01:00
[ion] Add stdio console
Change-Id: If608587fb88912c887a26fb1ba729740357d39c9
This commit is contained in:
17
ion/src/shared/console_stdio.cpp
Normal file
17
ion/src/shared/console_stdio.cpp
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user