CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.94k stars 552 forks source link

Update Console Plugs #2891

Closed Guillermo-Santos closed 10 months ago

Guillermo-Santos commented 10 months ago

Plugged Properties

Plugged Methods

Other changes

Bugs Found

valentinbreiz commented 10 months ago

Really cool changes! Could you make tests for this?

Guillermo-Santos commented 10 months ago

Really cool changes! Could you make tests for this?

I'll make them. Also, what do you think about making the 'Console class' an interface or BaseClass so that people could change the behavior of it? (Like changing the methods that decide what things are the standard input/output/error). So that, for example, you could make that the standard error is a file stream pointing to some file ln the FS.

Guillermo-Santos commented 10 months ago

Or simply make those methods static and use a make static Func<TextWriter/Reader, bool> properties for each so you can change them.