-
Notifications
You must be signed in to change notification settings - Fork 1
[syscall] Input #2
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededsyscallSyscalls related stuffSyscalls related stuff
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededsyscallSyscalls related stuffSyscalls related stuff
Currently the UART component is already capable of reading bytes from input. however, i want it to be generalized into readline, readchar, etc type functions which are traditionally used to take user input in something liek C or rust std. something basic and minimal is fine. At the very least there should be a way to do readline.
thats for the kernel:: space
then, i wish there to be a syscall for user to also be able to take input.
the design itself is upto creative liberty. but it must be assigned syscall number 2. all inputs must be done using syscall number 2.
the pipeline is already laid out, all you need to do is define the input functions in kernel somewhere, then write syscalls from user to request kernel to use the kernel::input related functionality for the sake of the user. a buffer pointer, or something like that can be used for user to obtain the input taken by kernel. similar to how print works in reverse.