my own first implementation for writing single chars to the console