Documentation ¶
Overview ¶
Package rawterm provides some sort of raw terminal interface, both on hosted systems and baremetal. It is intended only for use by examples.
Newlines are always LF (not CR or CRLF). While terminals generally use a different format (CR when pressing the enter key and CRLF for newline) the format returned by Getchar and expected as input by Putchar is a single LF as newline symbol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure()
Configure initializes the terminal for use by raw reading/writing (using Getchar/Putchar). It must be restored after use with Restore. You can do this with the following code:
rawterm.Configure() defer rawterm.Restore() // use raw terminal features
func Getchar ¶
func Getchar() byte
Getchar returns a single character from stdin, or a serial input. Newlines are encoded with a single LF ('\n').
Types ¶
This section is empty.