aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/input.c
AgeCommit message (Collapse)Author
2021-11-12chore: simplified organizational structurelaptopNicholas
2021-11-08feat(rc): added back functionality of prompt, now unicode awareNicholas Noll
2021-11-04Feat: input readline now unicode awareNicholas Noll
Updated our assumptions of readline to handle valid unicode input. This required integrating with an explicit library to handle unicode knowledge.
2021-10-29fix(unicode): emoji widths and readline now moves in a more unicode aware mannerNicholas Noll
2021-10-29checkinNicholas Noll
2021-10-29Prototype of unicode readline supportNicholas Noll
The readline functionality operated on the assumption that 1 byte = 1 character. This is obviously wrong if you input a non-ascii character. This commit temporarily removes a lot of functionality but parses input bytes in a unicode-aware manner. The outstanding problem now is 1 unicode rune != 1 column. There are double wide characters, as well as zero width runes, that further break our assumption that 1 rune = 1 character = 1 column. This is the next iteration.
2021-10-26Feat(libunicode): Added an explicit unicode libraryNicholas Noll
Refactored code to pull out utf8 functions from base into a standalone library. Also left the required function inside arg.c so that code that calls ARG_BEGIN doesn't have to link to libunicode.
2021-10-21feat(rc): vi mode fleshed outNicholas Noll
2021-10-19Feat: word operators and more robust crashingNicholas Noll
Added the length and concatenate operators. Slightly improved the robustness on syntax errors.
2021-10-19feat(rc): cleaner process watching for each jobNicholas Noll
2021-10-18feat(rc): job control prototype working for basic commandsNicholas Noll
2021-10-15feat(rc): working prototype of input->compile->print loopNicholas Noll