HelenOS sources

root/kernel/generic/src/console/

[..]
chardev.c cmd.c console.c kconsole.c prompt.c
[..]
HelenOS homepage, sources at GitHub