fn process_terminal_command(
id: u32,
command: String,
tcp_sender: &Option<Sender<TcpClientMessage>>,
tree: &mut DockState<Tab>,
)Expand description
Processes a command entered into a terminal tab.
Handles built-in local terminal commands (like "logout") directly or packages
generic commands into a TcpClientMessage::ExecuteCommand to send to the server.
ยงArguments
id- The unique ID of the terminal tab.command- The command string entered by the user.tcp_sender- Optional sender channel to transmit messages to the TCP network thread.tree- Mutable reference to the UI docking tree to update terminal outputs.