Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/manual/network/ltoudp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Snow supports bridging LocalTalk over UDP multicast ('LToUDP'), compatible with
real Mac hardware through an adapter such as the [TashTalk](https://github.com/lampmerchant/tashtalk).

By default, MacOS will use serial port B for LocalTalk. To enable LToUDP, enable the bridge through the
'Ports' -> 'Channel B (printer)' -> 'Enable LocalTalk bridge'.
'Ports' -> 'Channel B (printer)' -> 'Enable LocalTalk (UDP)', or start Snow with `--serial-bridge-b localtalk`.

![LToUDP menu](../../images/ltoudp_menu.png)

Expand Down
4 changes: 3 additions & 1 deletion frontend_egui/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,11 @@ impl SnowGui {
Some(SerialBridgeConfig::Pty)
} else if let Some(port_str) = mode.strip_prefix("tcp:") {
port_str.parse::<u16>().ok().map(SerialBridgeConfig::Tcp)
} else if mode == "localtalk" {
Some(SerialBridgeConfig::LocalTalk)
} else {
log::warn!(
"Invalid serial bridge mode: '{}'. Use 'pty' or 'tcp:PORT'",
"Invalid serial bridge mode: '{}'. Use 'pty', 'tcp:PORT' or 'localtalk'",
mode
);
None
Expand Down
6 changes: 4 additions & 2 deletions frontend_egui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ struct Args {
zen: bool,

/// Enable serial bridge on SCC channel A (modem port).
/// Values: "pty" for PTY mode (Unix only), "tcp:PORT" for TCP mode
/// Values: "pty" for PTY mode (Unix only), "tcp:PORT" for TCP mode,
/// "localtalk" for LocalTalk over UDP
#[arg(long, value_name = "MODE")]
serial_bridge_a: Option<String>,

/// Enable serial bridge on SCC channel B (printer port).
/// Values: "pty" for PTY mode (Unix only), "tcp:PORT" for TCP mode
/// Values: "pty" for PTY mode (Unix only), "tcp:PORT" for TCP mode,
/// "localtalk" for LocalTalk over UDP
#[arg(long, value_name = "MODE")]
serial_bridge_b: Option<String>,

Expand Down
Loading