This commit is contained in:
John Doty 2024-08-17 08:29:27 -07:00
parent eede5b0e50
commit aad9c74a63
3 changed files with 4 additions and 1 deletions

View file

@ -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.
<img width="1337" src="doc/screenshot01.png" alt="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.

BIN
doc/screenshot-01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View file

@ -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(())