Skip to content

[syscall] Input #2

Description

@ZackyGameDev

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is neededsyscallSyscalls related stuff

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions