Hendrik van Essen a0a3e6c3a1 sys/shell: refactor readline function
This makes the code of `readline()` clearer and shorter. It also fixes a
minor artifact of the long line handling.

Previously it was not possible to recover from a long line. That is, if too
many characters were sent, the line would be invalidated and pressing backspace
would not fix it- the only option was to discard the line. It is now possible
to bring the line back to size. Note that visual effects when deleting characters
will still depend on the host's terminal.

The new code is written in a way that all writes to memory are guarded by
bounds check, so an assertion was removed.

Co-authored-by: Juan Carrano <j.carrano@fu-berlin.de>
2020-04-14 15:38:56 +02:00
..
2019-11-23 22:39:07 +01:00
2020-02-07 13:35:25 +01:00
2019-11-23 22:39:40 +01:00
2019-11-23 22:39:37 +01:00
2018-06-11 19:12:02 +02:00
2020-02-20 13:24:14 +01:00
2019-11-23 22:39:37 +01:00
2019-12-05 15:39:24 +01:00
2019-11-23 22:39:37 +01:00
2019-11-23 22:39:38 +01:00
2019-09-09 20:27:16 +02:00
2020-03-09 17:56:34 +01:00
2020-03-12 08:42:59 +01:00
2019-11-23 22:39:38 +01:00
2019-11-23 22:39:07 +01:00
2018-08-24 18:14:03 +02:00
2019-06-05 17:10:26 +02:00
2018-10-03 10:44:14 +02:00
2020-02-11 13:59:59 +01:00
2019-04-12 15:51:15 +02:00
2020-03-04 12:44:02 +01:00