From 8178de92c4884fe3735a1e6775ebd1d5c8ff216f Mon Sep 17 00:00:00 2001 From: paladin-t Date: Tue, 1 Dec 2015 17:14:50 +0800 Subject: [PATCH] *polished input statement without parameter on windows. --- core/my_basic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/my_basic.c b/core/my_basic.c index 79549ef..28eff57 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -10663,7 +10663,11 @@ int _std_input(mb_interpreter_t* s, void** l) { obj = (_object_t*)(ast->data); if(!obj || obj->type == _DT_EOS) { +#ifdef _MSC_VER + getch(); +#else /* _MSC_VER */ _get_inputer(s)(line, sizeof(line)); +#endif /* _MSC_VER */ goto _exit; }