summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-07 13:27:50 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-07 13:27:50 +0100
commit6827f9fc55e748a069a44f4e3681c26518e1dbca (patch)
tree4b75ad1493c6734218bd3d6bb936d2701a1325f4 /unix/main.c
parent6c6f9d6782bcb35018dac46900a6c836e3746e0e (diff)
downloadmicropython-6827f9fc55e748a069a44f4e3681c26518e1dbca.tar.gz
micropython-6827f9fc55e748a069a44f4e3681c26518e1dbca.zip
Add uPy welcome message to UNIX and Windows ports; update Teensy port.
Partly addresses issue #154.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c
index 3ebd9ab82b..1200b7d5d1 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -22,6 +22,7 @@
#include "runtime.h"
#include "repl.h"
#include "gc.h"
+#include "build/py/py-version.h"
#if MICROPY_USE_READLINE
#include <readline/readline.h>
@@ -137,6 +138,9 @@ STATIC char *prompt(char *p) {
}
STATIC void do_repl(void) {
+ printf("Micro Python build " MICROPY_GIT_HASH " on " MICROPY_BUILD_DATE "; UNIX version\n");
+ printf("Type \"help()\" for more information.\n");
+
for (;;) {
char *line = prompt(">>> ");
if (line == NULL) {