Documentation
¶
Overview ¶
Package safetext makes text that came from outside hamstack safe to print on a terminal: packets heard on the air, strings a gpsd on another machine reports, the names a USB device gives itself. Printed as they are, such strings could carry escape sequences that move the cursor, retitle the window or hide text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Line ¶
Line returns s with everything removed that is not a printable character: control characters (escape, newlines and carriage returns included; a tab becomes a space), and Unicode's invisible formatting characters, which can reorder or hide what is shown. It is for values shown within one line.
Types ¶
This section is empty.