Skip to content

Commit ee49aa3

Browse files
committed
Fixed tab; fixed platform name
1 parent 5de8b81 commit ee49aa3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

frosted/input.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,10 @@ char *readline_tty(char *input, int size, char *prompt)
181181

182182
/* tab */
183183
if ((got[0] == 0x09)) {
184-
input[len] = 0;
185-
printf("\r\n");
186-
printf("Built-in commands: \r\n");
187-
printf("\t cd getenv pwd setenv");
188-
printf("\r\n");
189-
fputs(prompt, stdout);
190-
fflush(stdout);
191-
printf("%s", input);
184+
memset(input + len, ' ', 4);
185+
printf(" ");
186+
pos+=4;
187+
len+=4;
192188
fflush(stdout);
193189
continue;
194190
}

frosted/mpconfigport_minimal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@
7777
#define MICROPY_PY_IO (0)
7878
#define MICROPY_PY_IO_FILEIO (0)
7979
#define MICROPY_PY_STRUCT (0)
80-
#define MICROPY_PY_SYS (1)
80+
#define MICROPY_PY_SYS (0)
8181
#define MICROPY_PY_SYS_EXIT (0)
82-
#define MICROPY_PY_SYS_PLATFORM "linux"
82+
#define MICROPY_PY_SYS_PLATFORM "frosted"
8383
#define MICROPY_PY_SYS_MAXSIZE (0)
8484
#define MICROPY_PY_SYS_STDFILES (0)
8585
#define MICROPY_PY_CMATH (0)

0 commit comments

Comments
 (0)