mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix shell on win
This commit is contained in:
parent
bd18aaecd8
commit
7ccd70ffc9
@ -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 */
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user