Mosa.AppSystem.AppOutputStream.WriteByte C# (CSharp) Method

WriteByte() public method

Writes the byte.
public WriteByte ( byte value ) : void
value byte The value.
return void
        public override void WriteByte(byte value)
        {
            if (value == 10)
            {
                Session.WriteLine();
                return;
            }
            else if (value == 12)
            {
                Session.Clear();
                return;
            }
            else if (value == 8)
            {
                if (Session.Column > 0)
                {
                    Session.Column--;
                    Session.Write(' '); // bug: doesn't work on last column
                    Session.Column--;
                }
            }
            else
            {
                Session.Write((char)value);
            }
        }