fix shell on win

This commit is contained in:
pikastech 2022-10-04 18:02:37 +08:00
parent bd18aaecd8
commit 7ccd70ffc9
2 changed files with 3 additions and 3 deletions

View File

@ -819,7 +819,7 @@ enum shell_state obj_runChar(PikaObj* self, char inputChar) {
char* rxBuff = (char*)obj_getBytes(self, "__shbuf");
char* input_line = NULL;
int is_in_block = obj_getInt(self, "__shinb");
#ifndef __linux
#if !(defined(__linux) || defined(_WIN32))
__platform_printf("%c", inputChar);
#endif
if ((inputChar == '\b') || (inputChar == 127)) {
@ -837,7 +837,7 @@ enum shell_state obj_runChar(PikaObj* self, char inputChar) {
return SHELL_STATE_CONTINUE;
}
if ((inputChar == '\r') || (inputChar == '\n')) {
#ifndef __linux
#if !(defined(__linux) || defined(_WIN32))
__platform_printf("\r\n");
#endif
/* still in block */

View File

@ -2,4 +2,4 @@
#define PIKA_VERSION_MINOR 11
#define PIKA_VERSION_MICRO 3
#define PIKA_EDIT_TIME "2022/10/04 17:53:56"
#define PIKA_EDIT_TIME "2022/10/04 18:01:55"