319 |
} |
} |
320 |
} |
} |
321 |
|
|
322 |
static void tty_write(ShellState *s, const unsigned char *buf, int len) |
static void tty_write(ShellState *s, const char *buf, int len) |
323 |
{ |
{ |
324 |
int ret; |
int ret; |
325 |
|
|
509 |
static void tty_emulate(ShellState *s, int c) |
static void tty_emulate(ShellState *s, int c) |
510 |
{ |
{ |
511 |
int i, offset, offset1, offset2, n; |
int i, offset, offset1, offset2, n; |
512 |
unsigned char buf1[10]; |
char buf1[10]; |
513 |
|
|
514 |
#define ESC2(c1,c2) (((c1)<<8)|((unsigned char)c2)) |
#define ESC2(c1,c2) (((c1)<<8)|((unsigned char)c2)) |
515 |
/* some bytes are state independent */ |
/* some bytes are state independent */ |
1120 |
|
|
1121 |
void shell_write_char(EditState *e, int c) |
void shell_write_char(EditState *e, int c) |
1122 |
{ |
{ |
1123 |
unsigned char ch; |
char ch; |
1124 |
|
|
1125 |
if (e->interactive) { |
if (e->interactive) { |
1126 |
ShellState *s = e->b->priv_data; |
ShellState *s = e->b->priv_data; |