pub fn writebyte(&mut self, byte: u8)
	{
		match byte
		{
			b'\n' => self.newln(),
			byte =>
			{
				if self.colpos >= BUFFW
				{
					self.newln();
				}

				let row = BUFFH - 1;
				let col = self.colpos;

				let colorcode = self.colorcode;
				self.buffer.chars[row][col].write(ScreenChar
				{
					asciichar: byte,
					colorcode,
				});
			}
		}
	}
// Write a single ASCII byte to the buffer.
//
// Lines are wrapped when the width of the buffer matches BUFFW.
// Supports the '\n' character.
Write a single ASCII byte to the buffer.
Lines are wrapped when the width of the buffer matches BUFFW.
Supports the '\n' character.
Write a single ASCII byte to the buffer . Lines are wrapped when the width of the buffer matches BUFFW . Supports the ' \ n ' character .
pub fn writebyte(&mut self, byte: u8)
	{
		match byte
		{
			b'\n' => self.newln(),
			byte =>
			{
				if self.colpos >= BUFFW
				{
					self.newln();
				}
				let row = BUFFH - 1;
				let col = self.colpos;
				let colorcode = self.colorcode;
				self.buffer.chars[row][col].write(ScreenChar
				{
					asciichar: byte,
					colorcode,
				});
			}
		}
	}
pub fn writebyte ( & mut self , byte : u8 ) { match byte { b'\n' => self . newln ( ) , byte => { if self . colpos >= BUFFW { self . newln ( ) ; } let row = BUFFH - 1 ; let col = self . colpos ; let colorcode = self . colorcode ; self . buffer . chars [ row ] [ col ] . write ( ScreenChar { asciichar : byte , colorcode , } ) ; } } }
Write a single ASCII byte to the buffer.
Write a single ASCII byte to the buffer .
&mut self
byte
u8