Vanity
This commit is contained in:
parent
eede5b0e50
commit
aad9c74a63
3 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
`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.
|
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.
|
Now, connections to that port locally will be forwarded to the remote server.
|
||||||
|
|
||||||
|
|
|
||||||
BIN
doc/screenshot-01.png
Normal file
BIN
doc/screenshot-01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
|
|
@ -479,7 +479,7 @@ impl UI {
|
||||||
fn enter_alternate_screen(&mut self) -> Result<()> {
|
fn enter_alternate_screen(&mut self) -> Result<()> {
|
||||||
if !self.alternate_screen {
|
if !self.alternate_screen {
|
||||||
enable_raw_mode()?;
|
enable_raw_mode()?;
|
||||||
execute!(stdout(), EnterAlternateScreen, DisableLineWrap)?;
|
execute!(stdout(), EnterAlternateScreen, DisableLineWrap,)?;
|
||||||
self.alternate_screen = true;
|
self.alternate_screen = true;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue