Skip to main content

encode_command

Function encode_command 

Source
pub fn encode_command(text: &str) -> Result<Vec<u8>, char>
Expand description

encode for text typed in ASCII, such as a Kermit host command: the trigraphs (\->, \<<, \GS, \160) become their bytes, since the calculator does not read them in a host command itself. A backslash that starts no trigraph stays a backslash.