| 118 |
if (echo) |
if (echo) |
| 119 |
{ |
{ |
| 120 |
outc('\x83'); // ASCII code 131 |
outc('\x83'); // ASCII code 131 |
|
iflush(); |
|
| 121 |
} |
} |
| 122 |
else |
else |
| 123 |
{ |
{ |
| 124 |
// outc ('\x85'); // ASCII code 133 |
// outc ('\x85'); // ASCII code 133 |
| 125 |
prints("\xff\xfb\x01\xff\xfb\x03"); |
prints("\xff\xfb\x01\xff\xfb\x03"); |
|
iflush(); |
|
|
igetch(0); |
|
|
igetch_reset(); |
|
| 126 |
} |
} |
| 127 |
|
iflush(); |
| 128 |
} |
} |
| 129 |
|
|
| 130 |
static int _str_input(char *buffer, int buf_size, int max_display_len, int echo_mode) |
static int _str_input(char *buffer, int buf_size, int max_display_len, int echo_mode) |
| 148 |
|
|
| 149 |
if (ch == CR) |
if (ch == CR) |
| 150 |
{ |
{ |
|
igetch_reset(); |
|
| 151 |
break; |
break; |
| 152 |
} |
} |
| 153 |
else if (ch == KEY_TIMEOUT || ch == KEY_NULL) // timeout or broken pipe |
else if (ch == KEY_TIMEOUT || ch == KEY_NULL) // timeout or broken pipe |
| 318 |
|
|
| 319 |
if (ch == CR) |
if (ch == CR) |
| 320 |
{ |
{ |
|
igetch_reset(); |
|
| 321 |
break; |
break; |
| 322 |
} |
} |
| 323 |
else if (ch == KEY_TIMEOUT || ch == KEY_NULL) // timeout or broken pipe |
else if (ch == KEY_TIMEOUT || ch == KEY_NULL) // timeout or broken pipe |
| 699 |
output_end_row = SCREEN_ROWS - 1; // Legacy Fterm only works with this line |
output_end_row = SCREEN_ROWS - 1; // Legacy Fterm only works with this line |
| 700 |
break; |
break; |
| 701 |
case CR: |
case CR: |
|
igetch_reset(); |
|
| 702 |
case KEY_SPACE: |
case KEY_SPACE: |
| 703 |
case KEY_DOWN: |
case KEY_DOWN: |
| 704 |
if (line_current + (screen_row_total - (output_current_row - screen_begin_row)) >= display_line_total) // Reach end |
if (line_current + (screen_row_total - (output_current_row - screen_begin_row)) >= display_line_total) // Reach end |