diff --git a/README.md b/README.md index e0ac026..c062243 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ doty@my.laptop$ fwd some.server ``` `fwd` will connect to `some.server` via ssh, and then show you a screen listing all of the ports that the server is listening on locally. + +A terminal displaying a list of ports and descriptions. Some are dimmed and one is highlighted. + Use the up and down arrow keys (or `j`/`k`) to select the port you're interested in and press `e` to toggle forwarding of that port. Now, connections to that port locally will be forwarded to the remote server. diff --git a/doc/screenshot-01.png b/doc/screenshot-01.png new file mode 100644 index 0000000..4f5315f Binary files /dev/null and b/doc/screenshot-01.png differ diff --git a/src/client/ui.rs b/src/client/ui.rs index bb5b36d..c29f86a 100644 --- a/src/client/ui.rs +++ b/src/client/ui.rs @@ -479,7 +479,7 @@ impl UI { fn enter_alternate_screen(&mut self) -> Result<()> { if !self.alternate_screen { enable_raw_mode()?; - execute!(stdout(), EnterAlternateScreen, DisableLineWrap)?; + execute!(stdout(), EnterAlternateScreen, DisableLineWrap,)?; self.alternate_screen = true; } Ok(())