diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 09:07:38 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 09:07:38 +1300 |
commit | cbb20c667c8c13fe1d14d1ef146ea0f815e619cc (patch) | |
tree | dcb753230aabfc1beaec032c4e92096080ba1428 | |
parent | 1a830a3d1b9d99653322d5ae49ea8165de7ed9d0 (diff) | |
download | bedrock-pc-cbb20c667c8c13fe1d14d1ef146ea0f815e619cc.zip |
Rename --encode-stdin option to --decode-stdin
This more accurately reflects its function.
-rw-r--r-- | src/bin/br.rs | 6 | ||||
-rw-r--r-- | src/devices/local_device.rs | 2 | ||||
-rw-r--r-- | src/emulators.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/br.rs b/src/bin/br.rs index b4cf19d..d0ed067 100644 --- a/src/bin/br.rs +++ b/src/bin/br.rs @@ -57,7 +57,7 @@ fn main_run(args: Run) { scale: args.scale(), debug_palette: args.palette(), initial_transmission: None, - encode_stdin: args.encode_stdin, + decode_stdin: args.decode_stdin, encode_stdout: args.encode_stdout, }; let phosphor = Phosphor::new(); @@ -320,8 +320,8 @@ xflags::xflags! { optional -z, --zoom factor: u32 /// Set a debug colour palette in the format <rgb>,... (toggle with F2) optional --palette colours: ParsedPalette - /// Encode standard input - optional -i, --encode-stdin + /// Decode standard input + optional -i, --decode-stdin /// Encode standard output optional -o, --encode-stdout } diff --git a/src/devices/local_device.rs b/src/devices/local_device.rs index 14a8f71..94b798d 100644 --- a/src/devices/local_device.rs +++ b/src/devices/local_device.rs @@ -57,7 +57,7 @@ impl LocalDevice { stdout_connected: true, - decode_stdin: config.encode_stdin, + decode_stdin: config.decode_stdin, encode_stdout: config.encode_stdout, decode_buffer: None, } diff --git a/src/emulators.rs b/src/emulators.rs index 68bf0ce..a2e9091 100644 --- a/src/emulators.rs +++ b/src/emulators.rs @@ -22,6 +22,6 @@ pub struct EmulatorConfig { pub debug_palette: Option<[Colour; 16]>, pub initial_transmission: Option<Vec<u8>>, - pub encode_stdin: bool, + pub decode_stdin: bool, pub encode_stdout: bool, } |