update src/PikaObj.c.

Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
李昂 2022-10-04 09:52:19 +00:00 committed by Gitee
parent 43b29db8e1
commit a3c1b3f572
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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 */