Felix Fietkau
12298ca7c4
ucode-mod-uline: fix refcounting errors
...
Do not call ucv_get if the reference is transferred without being used
elsewhere
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-03-05 08:25:43 +01:00
Felix Fietkau
8835ecf29b
ucode-mod-uline: add support for querying window size from terminal if ioctl fails
...
This is useful for running the cli on a serial console
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-28 17:36:01 +01:00
Felix Fietkau
15c27ce9f0
ucode-mod-uline: fix prompt after set_hint with string bigger than the window size
...
Redraw the prompt after the hint instead of trying to move backwards
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-24 13:31:53 +01:00
Felix Fietkau
be31d44bd9
ucode-mod-uline: add package for ucode terminal line editing
...
It provides a ucode module with similar functionality as libreadline,
however with much smaller code and no dependencies aside from ucode and
libubox.
It also provides shell-style parsing/escaping code useful for building
a CLI.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-13 19:00:30 +01:00