diff --git a/README.de.md b/README.de.md index b6cfe4c..813086a 100644 --- a/README.de.md +++ b/README.de.md @@ -31,6 +31,7 @@ sshTermy ist eine schlanke Terminal-Anwendung (TUI, eine einzige Datei, ~9 MB, k - **Zurückblättern**: Mausrad oder ⇧Bild↑ / ⇧Bild↓ blättern im Verlauf, ⇧Pos1 springt an seinen Anfang, ⇧Ende oder Esc zurück nach unten. Neue Ausgabe schiebt die Ansicht beim Lesen nicht weg. - **Suche über alle Tabs** (Alt+S): ein Suchbegriff, die Treffer aus dem Verlauf aller offenen Tabs in einer Liste; ⏎ springt in den Tab an genau diese Zeile. - **Befehle als Blöcke**: Alt+Bild↑ / Alt+Bild↓ springt im Verlauf von Befehl zu Befehl, Alt+O listet die Befehle des Tabs (mit Uhrzeit, Dauer, ✓/×): ⏎ springt hin, Strg+C kopiert genau diese Ausgabe, Strg+K gibt Befehl und Ausgabe an „KI fragen“, Strg+L zeigt sie groß. +- **Neuer Tab über den Manager**: `+` in der Tab-Leiste, Alt+N oder ein Klick aufs Logo `>_ sshTermy` öffnet den Verbindungs-Manager mit Ordnern, Suche und Tags; die gewählte Verbindung (⏎ oder Doppelklick) öffnet sich in einem zusätzlichen Tab, die bisherigen Tabs bleiben offen. Esc führt ohne neuen Tab zurück. - **Tabs mit der Maus ziehen**: Ein Tab lässt sich in der Tab-Leiste an eine andere Stelle ziehen. - **Fertig im Hintergrund**: Ein Befehl, der 10 s oder länger in einem verdeckten Tab lief, markiert den Tab (✓ / ×) und meldet sich mit einer Einblendung; ist das sshTermy-Fenster im Hintergrund, kommt zusätzlich eine Desktop-Benachrichtigung (Windows, macOS, Linux). Die Terminal-Glocke markiert den Tab ebenso. Beides ist in der Palette abschaltbar - **Agent-Weiterleitung** pro Verbindung (wie `ssh -A`): `git pull`, `ssh` und `scp` auf dem Server nutzen deine lokalen Keys aus ssh-agent, Pageant oder dem Windows-OpenSSH-Agent, die Keys verlassen deinen Rechner nie @@ -353,7 +354,7 @@ sshtermy mcp # MCP-Server für KI-Clients (stdin/stdout), siehe „ | | Alt+T | alle Tabs (Liste: springen, schließen, umbenennen, duplizieren, verschieben) | | | Alt+S | in allen offenen Tabs suchen, ⏎ springt zur Trefferzeile | | | Alt+Bild↑ / Alt+Bild↓ / Alt+O | zum vorigen / nächsten Befehl springen / Befehle des Tabs als Liste (⏎ hinspringen, Strg+C Ausgabe kopieren, Strg+K KI fragen, Strg+L lesen) | -| | Alt+N / Alt+W | neuer Tab / Tab schließen (auch `+` und `×` in der Tab-Leiste, Rechtsklick auf einen Tab öffnet sein Menü, Maus darauf zeigt Ziel, Dauer und Latenz) | +| | Alt+N / Alt+W | neuer Tab / Tab schließen (auch `+` und `×` in der Tab-Leiste; `+`, Alt+N und ein Klick aufs Logo `>_ sshTermy` öffnen den Verbindungs-Manager: ⏎ oder Doppelklick startet die Verbindung in einem zusätzlichen Tab, die offenen Tabs bleiben, Esc führt zurück; Rechtsklick auf einen Tab öffnet sein Menü, Maus darauf zeigt Ziel, Dauer und Latenz) | | | Alt+L | lokale Shell in neuem Tab (auch im Manager; Palette: `lokal`, `pwsh`, `cmd`, `wsl`, `zsh` …) | | | F9 / ⇧F1…F8 | Schnellbefehle: Liste / direkt ausführen (`{{name}}` im Befehl fragt nach einem Wert) | | | F10 | zurück zum Manager (Sitzungen laufen weiter) | @@ -450,7 +451,7 @@ Palette → „Break senden“ schickt ein serielles Break. Host-Übersicht (F6) laufen wie bei SSH; Dateien, Tunnel und Broadcast brauchen SSH. Linux: Benutzer muss in der Gruppe `dialout` sein. Telnet ist unverschlüsselt, nur in vertrauenswürdigen Netzen verwenden. -**Lokale Shell:** Alt+L (oder der erste Eintrag unter Alt+N, oder Palette → „Lokale Shell öffnen“) öffnet die Shell +**Lokale Shell:** Alt+L (auch im Manager, den Alt+N öffnet, oder Palette → „Lokale Shell öffnen“) öffnet die Shell des eigenen Rechners in einem Tab: unter Windows PowerShell 7 (`pwsh`), sonst Windows PowerShell oder cmd (ConPTY, ab Windows 10 1809), unter macOS die Login-Shell, unter Linux `$SHELL`. `pwsh`, `cmd`, `wsl -d Ubuntu` oder `zsh` in der Palette startet genau diese. Als gespeicherte Verbindung („Verbindungsart: Lokal“) lassen sich Shell diff --git a/README.md b/README.md index 480d8b8..88ba2aa 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ sshTermy is a lean terminal application (TUI, a single file, ~9 MB, no installer - **Scroll back**: mouse wheel or ⇧PgUp / ⇧PgDn scroll through the scrollback, ⇧Home jumps to its start, ⇧End or Esc back to the bottom. New output does not push the view away while you read. - **Search across all tabs** (Alt+S): one search term, the hits from the scrollback of all open tabs in one list; ⏎ jumps to the tab at exactly that line. - **Commands as blocks**: Alt+PgUp / Alt+PgDn jumps from command to command in the scrollback, Alt+O lists the commands of the tab (with time, duration, ✓/×): ⏎ jumps there, Ctrl+C copies just that output, Ctrl+K hands command and output to “Ask AI”, Ctrl+L shows it in full. +- **New tab via the manager**: `+` in the tab bar, Alt+N or a click on the `>_ sshTermy` logo opens the connection manager with folders, search and tags; the connection you pick (⏎ or double-click) opens in an additional tab, the current tabs stay open. Esc goes back without a new tab. - **Drag tabs with the mouse**: a tab can be dragged to another position in the tab bar. - **Finished in the background**: a command that ran 10 s or longer in a hidden tab marks the tab (✓ / ×) and shows a toast; if the sshTermy window is in the background you also get a desktop notification (Windows, macOS, Linux). The terminal bell marks the tab too. Both can be switched off in the palette - **Agent forwarding** per connection (like `ssh -A`): `git pull`, `ssh` and `scp` on the server use your local keys from ssh-agent, Pageant or the Windows OpenSSH agent, the keys never leave your computer @@ -343,7 +344,7 @@ sshtermy mcp # MCP server for AI clients (stdin/stdout), see “sshT | | Alt+T | all tabs (list: jump, close, rename, duplicate, move) | | | Alt+S | search in all open tabs, ⏎ jumps to the matching line | | | Alt+PgUp / Alt+PgDn / Alt+O | jump to the previous / next command / list of the tab's commands (⏎ jump, Ctrl+C copy output, Ctrl+K ask AI, Ctrl+L read) | -| | Alt+N / Alt+W | new tab / close tab (also `+` and `×` in the tab bar, right-click a tab for its menu, hover it for target, duration and latency) | +| | Alt+N / Alt+W | new tab / close tab (also `+` and `×` in the tab bar; `+`, Alt+N and a click on the `>_ sshTermy` logo open the connection manager: ⏎ or a double-click starts the connection in an additional tab, the open tabs stay, Esc goes back; right-click a tab for its menu, hover it for target, duration and latency) | | | Alt+L | local shell in a new tab (also in the manager; palette: `local`, `pwsh`, `cmd`, `wsl`, `zsh` …) | | | F9 / ⇧F1…F8 | quick commands: list / run directly (`{{name}}` in the command asks for a value) | | | F10 | back to the manager (sessions keep running) | @@ -439,7 +440,7 @@ sshTermy types them as soon as the device asks (and answers “Press any key to break. Host overview (F6), config backup, quick commands and the AI work as with SSH; files, tunnels and broadcast need SSH. Linux: the user needs to be in the `dialout` group. Telnet is unencrypted, use it only in trusted networks. -**Local shell:** Alt+L (or the first entry under Alt+N, or palette → “Open local shell”) opens the shell of your own +**Local shell:** Alt+L (also in the manager that Alt+N opens, or palette → “Open local shell”) opens the shell of your own computer in a tab: PowerShell 7 (`pwsh`), otherwise Windows PowerShell or cmd on Windows (ConPTY, Windows 10 1809 or newer), your login shell on macOS and `$SHELL` on Linux. Typing `pwsh`, `cmd`, `wsl -d Ubuntu` or `zsh` in the palette starts that one. As a saved connection (“Connection type: Local”) you can set the shell and a start folder; diff --git a/internal/i18n/en_newtabmgr.go b/internal/i18n/en_newtabmgr.go new file mode 100644 index 0000000..dc01750 --- /dev/null +++ b/internal/i18n/en_newtabmgr.go @@ -0,0 +1,12 @@ +package i18n + +// Texte für „+“/Alt+N: neuer Tab über den Verbindungs-Manager (internal/ui/tabs.go). +func init() { + for de, e := range map[string]string{ + "in neuem Tab öffnen": "open in new tab", + "in neuem Tab": "in new tab", + "neuer Tab: Verbindung im Manager wählen": "new tab: pick a connection in the manager", + } { + en[de] = e + } +} diff --git a/internal/ui/app.go b/internal/ui/app.go index 45338c1..e799b55 100644 --- a/internal/ui/app.go +++ b/internal/ui/app.go @@ -282,6 +282,9 @@ func (a *App) byID(id int) *session { } func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd) { + if a.scr != scrManager { + a.mgr.forTab = false // „+“-Auswahl gilt nur, solange der Manager offen ist + } a.perf.skip = false // jede Nachricht außer Ausgabeflut zeichnet sofort (perf.go) switch msg.(type) { case WindowClosedMsg: @@ -957,7 +960,12 @@ func (a *App) viewFrame() tea.View { // Über-Dialog (F12), im Startbild und beim Entsperren, nicht in der Kopfzeile: // dort kosteten sie im schmalen Fenster die Tabnamen. func (a *App) headerLeft() string { - return a.logoChip(">_ " + version.Name) // gradient.go + logo := a.logoChip(">_ " + version.Name) // gradient.go + if a.scr == scrTerminal && len(a.sessions) > 0 { + // Klick aufs Logo: Manager für einen weiteren Tab, wie „+“ (tabs.go) + return a.z.click(logo, func(tea.Mouse, bool) tea.Cmd { return a.openNewTab() }) + } + return logo } // headerTint: Kopfzeile links mit einem Hauch Akzent, der nach rechts diff --git a/internal/ui/help.go b/internal/ui/help.go index feece86..c4fcc7a 100644 --- a/internal/ui/help.go +++ b/internal/ui/help.go @@ -125,7 +125,7 @@ var helpSections = []helpSection{ {"Alt+E", "Log-Blick: Auffälligkeiten"}, {"F7 / F8", "Tab wechseln"}, {"Alt+T", "alle Tabs (Liste)"}, - {"Alt+N", "neuer Tab"}, + {"Alt+N", "neuer Tab: Verbindung im Manager wählen"}, {"Alt+L", "lokale Shell (neuer Tab)"}, {"Alt+W", "Tab schließen"}, {"F10", "zum Manager"}, diff --git a/internal/ui/manager.go b/internal/ui/manager.go index ee7c57c..9b93862 100644 --- a/internal/ui/manager.go +++ b/internal/ui/manager.go @@ -38,6 +38,7 @@ type managerState struct { tree *domain.TreeNode memo mgrMemo // mgrtree.go: Zeilen, solange Daten und Filter gleich sind selAt time.Time // Auswahl zuletzt gewechselt (Einblenden, Balken) + forTab bool // über „+“/Alt+N geöffnet: ⏎ = neuer Tab, Esc = zurück (tabs.go) selSeen int // Auswahl im letzten Bild marked map[string]bool // Mehrfachauswahl: IDs markierter Verbindungen (bulk.go) } @@ -69,6 +70,9 @@ func (a *App) managerKeys() [][2]string { if len(a.sessions) > 0 { k = append(k, [2]string{km.label(actManager), i18n.T("zum Terminal")}) } + if a.mgr.forTab && len(a.sessions) > 0 && have && !cur.isFolder() { + k = append(k, [2]string{"⏎", i18n.T("in neuem Tab öffnen")}, [2]string{"Esc", i18n.T("zurück")}) + } switch { case have && cur.isFolder(): open := i18n.T("zuklappen") @@ -299,6 +303,10 @@ func (a *App) updateManager(msg tea.Msg) tea.Cmd { if have { m.want = cur.key() } + return nil + } + if m.forTab && len(a.sessions) > 0 { + a.scr = scrTerminal // „+“ abgebrochen: zurück zum Tab von vorher } case "/": m.searching = true @@ -375,6 +383,7 @@ func (a *App) mgrNewTunnel(c domain.Connection) tea.Cmd { } func (a *App) connect(c domain.Connection) tea.Cmd { + a.mgr.forTab = false a.nextSID++ s := &session{id: a.nextSID, conn: c, state: stConnecting, started: time.Now(), chipArmed: -1, quickArmed: -1} a.sessions = append(a.sessions, s) @@ -604,7 +613,11 @@ func (a *App) mgrConnDetails(c domain.Connection, rightW int, now time.Time) str if g := c.Group; g != "" && lipgloss.Width(head)+2+len([]rune(g)) < rightW-1 { head += " " + s.Muted.Render(g) } - if acts := a.keyZone("⏎", s.Key.Render("⏎")+s.KeyDesc.Render(i18n.T("verbinden"))) + " " + a.keyZone("e", s.Key.Render("e")+s.KeyDesc.Render(i18n.T("bearbeiten"))); lipgloss.Width(head)+3+lipgloss.Width(acts) < rightW { + enter := i18n.T("verbinden") + if a.mgr.forTab && len(a.sessions) > 0 { + enter = i18n.T("in neuem Tab") + } + if acts := a.keyZone("⏎", s.Key.Render("⏎")+s.KeyDesc.Render(enter)) + " " + a.keyZone("e", s.Key.Render("e")+s.KeyDesc.Render(i18n.T("bearbeiten"))); lipgloss.Width(head)+3+lipgloss.Width(acts) < rightW { head += " " + acts } rb.WriteString(head + "\n\n") diff --git a/internal/ui/tabs.go b/internal/ui/tabs.go index 999f599..71f1354 100644 --- a/internal/ui/tabs.go +++ b/internal/ui/tabs.go @@ -1,14 +1,12 @@ package ui import ( - "sort" "strconv" "strings" "time" tea "charm.land/bubbletea/v2" - "github.com/db9979/sshtermy/internal/domain" "github.com/db9979/sshtermy/internal/i18n" ) @@ -203,65 +201,17 @@ func (a *App) tabMenu(s *session, x, y int, after func()) *modal { // ---------------------------------------------------------------- Neuer Tab -// openNewTab: Auswahl einer Verbindung für einen neuen Tab. Offene und -// zuletzt benutzte stehen oben; ⏎ öffnet immer einen neuen Tab, auch wenn -// die Verbindung schon offen ist (zweite Shell auf demselben Server). +// openNewTab öffnet den Verbindungs-Manager, um eine weitere Verbindung zu +// starten: ⏎ (oder Doppelklick) öffnet sie in einem zusätzlichen Tab, die +// offenen Tabs bleiben. Das geht auch, wenn die Verbindung schon offen ist +// (zweite Shell auf demselben Server). Esc führt ohne neuen Tab zurück. func (a *App) openNewTab() tea.Cmd { - all := a.st.Connections() - rank := func(c domain.Connection) int { - switch { - case a.connected(c.ID): - return 0 - case !c.LastUsed.IsZero(): - return 1 - } - return 2 + a.pick, a.modal = nil, nil + a.scr = scrManager + if len(a.sessions) > 0 { + a.mgr.forTab = true } - sort.SliceStable(all, func(i, j int) bool { - ri, rj := rank(all[i]), rank(all[j]) - if ri != rj { - return ri < rj - } - return all[i].LastUsed.After(all[j].LastUsed) - }) - byID := map[string]domain.Connection{} - // oben: Shell dieses Rechners (immer ein neuer Tab) - lc := localConn("") - byID[lc.ID] = lc - items := []pickItem{{value: lc.ID, label: ic("command") + " " + i18n.T("Lokale Shell"), detail: i18n.T("dieser Rechner"), - hint: shortTarget(lc), search: "local lokal shell terminal powershell pwsh cmd zsh bash"}} - for _, c := range all { - byID[c.ID] = c - icon, _ := a.devIcon(c) - hint := shortTarget(c) - if a.connected(c.ID) { - hint = i18n.T("offen") + " · " + hint - } - items = append(items, pickItem{value: c.ID, label: icon + " " + c.Alias, detail: c.Group, hint: hint, - search: c.Host + " " + strings.Join(c.Tags, " ")}) - } - p := newPicker(i18n.T("Neuer Tab"), i18n.T("Name, Host, Ordner oder Tag"), items, "\x00", func(it pickItem) tea.Cmd { - if c, ok := byID[it.value]; ok { - return a.connect(c) - } - return nil - }) - p.keys = [][2]string{{"⏎", i18n.T("öffnen")}, {"Esc", i18n.T("zurück")}, {"", i18n.T("tippen filtert")}} - p.extra = func(q string) *pickItem { - if q != "" { - return nil - } - return &pickItem{value: "\x00new", label: ic("new") + " " + i18n.T("Neue Verbindung anlegen …")} - } - inner := p.onPick - p.onPick = func(it pickItem) tea.Cmd { - if it.value == "\x00new" { - a.scr = scrManager - return a.openConnForm(newConnDefaults()) - } - return inner(it) - } - return a.openPicker(p) + return nil } // ---------------------------------------------------------------- Tab-Liste diff --git a/internal/ui/tabs_test.go b/internal/ui/tabs_test.go index 60451bc..d7eacc2 100644 --- a/internal/ui/tabs_test.go +++ b/internal/ui/tabs_test.go @@ -100,3 +100,40 @@ func TestTabStripPlusAndClose(t *testing.T) { } } } + +// „+“/Alt+N öffnen den Manager; ⏎ startet die Verbindung in einem weiteren +// Tab, Esc führt ohne neuen Tab zurück. +func TestNewTabViaManager(t *testing.T) { + a := newPaletteTestApp(t) + if _, err := a.st.AddConnections([]domain.Connection{{Alias: "ki-lab", Host: "10.0.0.9", Username: "root"}}); err != nil { + t.Fatal(err) + } + a.nextSID++ + a.sessions = append(a.sessions, &session{id: a.nextSID, conn: domain.Connection{ID: "alt", Alias: "alt"}, state: stClosed, chipArmed: -1, quickArmed: -1}) + a.scr = scrTerminal + esc := tea.KeyPressMsg{Code: tea.KeyEscape} + enter := tea.KeyPressMsg{Code: tea.KeyEnter} + + a.openNewTab() + if a.scr != scrManager || !a.mgr.forTab { + t.Fatalf("Manager nicht offen: scr %v forTab %v", a.scr, a.mgr.forTab) + } + a.updateManager(esc) + if a.scr != scrTerminal || len(a.sessions) != 1 { + t.Fatalf("Esc: scr %v, %d Tabs", a.scr, len(a.sessions)) + } + + a.openNewTab() + for i, r := range a.mgrRows() { + if !r.isFolder() && r.conn.Alias == "ki-lab" { + a.mgr.sel = i + } + } + a.updateManager(enter) + if len(a.sessions) != 2 || a.current().conn.Alias != "ki-lab" || a.sessions[0].conn.Alias != "alt" { + t.Fatalf("kein zusätzlicher Tab: %s", aliases(a)) + } + if a.scr != scrTerminal || a.mgr.forTab { + t.Fatalf("nach ⏎: scr %v forTab %v", a.scr, a.mgr.forTab) + } +} diff --git a/site/de/index.html b/site/de/index.html index 8f050a1..36825a6 100644 --- a/site/de/index.html +++ b/site/de/index.html @@ -158,7 +158,7 @@ sudo apt update && sudo apt install sshtermy
Liest mit und kommentiert von selbst: leise (Fehler, riskante Zeilen vor Enter, Wiederholungen), gesprächig (jeder Befehl) oder Coach (erkennt dein Ziel, Rückblick mit Runbook). Eigene KI-Server, auch extern, lassen sich eintragen. Schlägt ein Befehl aus einer Antwortkarte fehl, zeigt die Karte den Fehler und einen korrigierten Befehl; u übernimmt ihn und korrigiert denselben Fehler in den anderen Karten mit.
Alt+V verbindet die Fenster einer Arbeit (Webserver, Datenbank, Switch). Die KI sieht alle und sagt bei jedem Schritt, in welches Fenster er gehört; Fahrplan Fenster für Fenster mit übernommenen Werten, Plan in Bahnen, Rückblick als Change-Protokoll. Vor dem Vortippen prüft sshTermy das Zielfenster (Host-Key, Prompt, System) und fügt nichts ein, wenn es nicht passt.
Die KI arbeitet selbstständig aufs Ziel hin, legt Skripte an und führt sie aus; drei Stufen, gefährliche Schritte warten immer auf dich. Erst planen: den ganzen Plan prüfen und freigeben.
Sieben Aufteilungen mit bis zu sechs Sitzungen, Zoom, Tauschen, Eingabe an alle; Tab-Leiste mit +, ×, Rechtsklick-Menü und Tab-Liste (Alt+T); Tabs mit der Maus ziehen, Alt+S sucht in allen Tabs. Jeder Tab bekommt einen farbigen Rahmen, sein Name dieselbe Farbe; Rot nur für produktiv. Aktiver Tab und Bereich sind in ihrer Farbe gefüllt und mit ▶ markiert.
Sieben Aufteilungen mit bis zu sechs Sitzungen, Zoom, Tauschen, Eingabe an alle; Tab-Leiste mit + (öffnet den Verbindungs-Manager, die gewählte Verbindung startet in einem zusätzlichen Tab), ×, Rechtsklick-Menü und Tab-Liste (Alt+T); Tabs mit der Maus ziehen, Alt+S sucht in allen Tabs. Jeder Tab bekommt einen farbigen Rahmen, sein Name dieselbe Farbe; Rot nur für produktiv. Aktiver Tab und Bereich sind in ihrer Farbe gefüllt und mit ▶ markiert.
Im Manager mehrere Verbindungen markieren (Leertaste, * für alle Treffer) und in einem Schritt Tags, Benutzer, Schutz oder Farbe ändern, verschieben oder löschen.
Je Verbindung eine Notiz nur für dich, ein Befehl, der nach dem Anmelden getippt wird, und Aufwecken ausgeschalteter Rechner; die MAC-Adresse merkt sich sshTermy selbst.
Telnet und USB-Konsolenkabel (z. B. Aruba-Switches), Kabel wird automatisch gewählt, Anmeldung getippt.
+ oder Logo) / Tab schließen{{name}} fragt nach einem Wert)Reads along and comments on its own: quiet (errors, risky lines before Enter, repeats), chatty (every command) or coach (spots your goal, recap with runbook). Your own AI servers, also external, can be registered. If a command from an answer card fails, the card shows the error and a corrected command; u takes it over and fixes the same mistake in the other cards.
Alt+V links the windows of one job (web server, database, switch). The AI sees all of them and says for each step which window it belongs in; route window by window with values carried over, plan in lanes, recap as change log. Before typing, sshTermy checks the target window (host key, prompt, system) and inserts nothing if it does not match.
The AI works towards a goal on its own, writes and runs scripts; three levels, dangerous steps always wait for you. Plan first: review and approve the whole plan.
Seven layouts with up to six sessions, zoom, swap, type into all; tab bar with +, ×, right-click menu and tab list (Alt+T); drag tabs with the mouse, Alt+S searches all tabs. Every tab gets a colored frame, its name in the same color; red only for production. The active tab and pane are filled in their color and marked with ▶.
Seven layouts with up to six sessions, zoom, swap, type into all; tab bar with + (opens the connection manager, the chosen connection starts in an additional tab), ×, right-click menu and tab list (Alt+T); drag tabs with the mouse, Alt+S searches all tabs. Every tab gets a colored frame, its name in the same color; red only for production. The active tab and pane are filled in their color and marked with ▶.
Mark several connections in the manager (Space, * for all hits) and change tags, user, protection or color in one step, move or delete them.
Per connection a note just for you, a command typed after login, and waking powered-off machines; sshTermy remembers the MAC address itself.
Telnet and USB console cables (e.g. Aruba switches), cable picked automatically, login typed for you.
+ or the logo) / close tab{{name}} asks for a value)