Plus one virtual function called put_error() in the file shl_io_api.h.
And add its implement in the file console.cpp.But all of this haven't been tested.