pub fn con_init() -> Result<()>
Expand description
Initialize the console lib.
This will make sure that conin()/conout() will not panic. It is safe to call multiple times and should always be called before conin()/conout() for the first time. Do NOT call conin()/conout() if it returns an error, they will panic if the console is in an error state (note they should always work if con_init() returns Ok). It is ok to call conin_r()/conout_r() even if con_init() is not used- they return a result so will not panic.