aboutsummaryrefslogtreecommitdiff
path: root/package/utils/ucode-mod-uline
Commit message (Collapse)AuthorAge
* treewide: strip trailing whitespaceMieczyslaw Nalewaj2025-05-20
| | | | | | | | | | | | Strip trailing whitespace in all code: find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//' Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18626 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ucode-mod-uline: re-introduce polling loop to fix prompt after line endFelix Fietkau2025-05-07
| | | | | | | Introduce a check for the resource data in order to avoid segfaulting on exit Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: fix crash on cleanupFelix Fietkau2025-04-30
| | | | | | | | | - only run a single poll in the uloop_fd cb to avoid use-after-free on close - delete the uloop_fd on close - when calling into ucode, fetch the vm pointer before the call in order to avoid accessing the stale uline context Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: fix build warningsFelix Fietkau2025-04-30
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: fix refcounting errorsFelix Fietkau2025-03-05
| | | | | | | Do not call ucv_get if the reference is transferred without being used elsewhere Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: add support for querying window size from terminal if ioctl ↵Felix Fietkau2025-02-28
| | | | | | | | fails This is useful for running the cli on a serial console Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: fix prompt after set_hint with string bigger than the ↵Felix Fietkau2025-02-24
| | | | | | | | window size Redraw the prompt after the hint instead of trying to move backwards Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ucode-mod-uline: add package for ucode terminal line editingFelix Fietkau2025-02-13
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>