aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* utils: implement xsnprintf functionverdant2026-08-061-0/+17
| | | | Check the return value of (v)snprintf
* Introduce error code systemverdant2026-08-061-5/+5
| | | | | Refactor spawn function, use return error code, provide more clearly error handling.
* Implement a yes-or-no functionverdant2026-08-051-0/+13
| | | | If y is pressed, return true, or return false
* Print prompt at the beginning of function and use len instead of builtin ↵verdant2026-08-051-10/+6
| | | | variable
* Add else to handle other keysverdant2026-08-031-2/+3
|
* Return -1 to avoid creating directory when esc is pressedverdant2026-08-031-1/+1
|
* Print promptverdant2026-08-031-0/+3
|
* Add utils.h utils.c to provide get_input()verdant2026-08-031-0/+50
Print the prompt at the status bar, handle character, backspace, enter and escape. Modify the variable buf in place.