pweingar / FoenixMCP

A portable kernel for the Foenix series of computers.
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

[Enhancement] Reset IO from Raw mode to Normal when launching an App. #37

Open daschewie opened 2 years ago

daschewie commented 2 years ago

Background

The CLI uses IOCTRL to set input to RAW mode disabling the echo of characters during input. When launching a C application, the system stays in RAW mode affecting scanf() and getchar() calls. As a work around, the C apps need to call IOCTRL to enable echo on input.

Proposal

Prior to launching an app, the CLI should change to Normal mode. This would remove the need of all C programs having to call IOCTRL.

pweingar commented 2 years ago

I should have a fix for this. I've also updated the CLI so that there can be a program overriding it both on startup and when a program quits through sys_exit.