Terminal
Describes Hatoba 0.8.6.
Each SSH session, and each local terminal (below), is a tab with a full terminal (256 colors and truecolor, CJK wide characters and input methods, mouse support for programs such as vim and tmux). Inactive tabs keep running. There are no split panes, no session logging and no snippets.
Local terminal tabs
A local terminal tab runs a shell of this computer beside the SSH tabs: open one from New Local Terminal (the arrow right after New Tab (+) in the tab bar), which lists the shells, or with Ctrl+Shift+ (⌃⇧ on macOS), which opens the shell chosen in Settings → Terminal → Local Terminal Shell (the system default unless changed). The shells:
- Windows: PowerShell (PowerShell 7, when installed), Windows PowerShell, Command Prompt, Git Bash (when Git for Windows is installed) and each installed WSL distribution. The system default is PowerShell 7, else Windows PowerShell.
- macOS and Linux: the login shell and the other shells in
/etc/shells. The system default is the login shell; on macOS it starts as a login shell, as Terminal does.
A local tab has the same terminal settings, search, links, copy and paste as SSH tabs. Its status bar shows This Computer and the shell, and has no resource usage, port forwarding or SFTP. The shell starts in the home directory. Typing exit (a shell that exits with status 0) closes the tab; a shell that exits with an error leaves the tab with the exit status and Restart, and one that cannot start shows why with Retry. More actions has Restart in place of Reconnect, Disconnect and Edit Host. Locking does not end local shells, unless Settings → Security → Disconnect all sessions when locked is on; quitting Hatoba ends them. The AI assistant works in a local tab as in an SSH tab: see AI tools, permission modes and approvals.
Other labels: Connect to Host, Starting…, Running, Failed to start, Exited.
Telnet hosts and tabs
For switches, routers and other devices that offer Telnet. New Host opens the editor with Protocol at the top: choose Telnet there (a host’s protocol is set when it is created). A Telnet host has a name, address and port (23 by default), a Login section with a username and password, group, tags, proxy, note and AI notes; no authentication method, keys, jump host or environment variables. It is listed with the SSH hosts, marked Telnet, and connects, duplicates, favorites and deletes the same way.
- Telnet has no login of its own: the device prints its
login:(orUsername:) andPassword:prompts. Hatoba types the saved username and password at them, once each, within the first two minutes and while Hatoba stays unlocked. A prompt that comes back after a wrong password is left to the user, and so is every prompt once the user has typed two lines of their own, or one after the saved username went in. Leave either empty to type it by hand. - Telnet is not encrypted: the password and everything in the terminal travel as plain text, which the editor says.
- A server that doesn’t echo, such as a mail server on port 25, gets a line at a time: Hatoba shows what is typed, except at a password prompt, and edits it with Backspace, Ctrl+U and Ctrl+W until Enter. On a port other than 23, Hatoba waits for the server to start the Telnet negotiation.
- Quick connect reads
telnet host [port]andtelnet://host[:port]: the tab connects through this device’s default proxy and the user logs in by hand. A saved Telnet host at that address and port connects instead. - A Telnet tab’s status bar shows
telnet address:port, with no resource usage, port forwarding or SFTP, and its tab a network icon. A refused connection usually means Telnet is off on the device or the port is wrong.
The status bar
The bar above the terminal shows the connection state, the target user@host:port, “via” and the jump host’s name when one is used, and the latency in ms once connected. The buttons on the right:
- Show Resource Usage turns on the resource usage readout described below. It is enabled only when connected.
- Find in terminal opens the find bar.
- Port Forwarding (a badge shows how many forwards run) opens the forwards popover; see Port forwarding. It shows only for a host with forwarding rules, and is enabled only when connected.
- SFTP shows or hides the file panel beside the terminal; see SFTP file panel. It is enabled only when connected.
- More actions (the … button) opens the tab menu below.
Other labels: Connecting…, Connected, Connection failed, Disconnected, Show or hide the SFTP file panel.
Resource usage
For a Linux or macOS server, the status bar can show CPU, memory and network rates (↓ received, ↑ sent). It is off until Show Resource Usage turns it on, and the choice is remembered for the host on this device; a quick connection keeps it only for its tab. A narrow window drops the rates, then everything but the gauge icon.
Clicking the readout opens a popover: CPU over the last 3 minutes with the number of cores and the load averages, memory and swap, network rates over the last 3 minutes with the interfaces counted (those of the default route), the disk usage of /, and the uptime. Pointing at a chart (or the arrow keys once it has focus) shows every value as it was at that moment. A meter turns orange at 80% and red at 95%. Hide Resource Usage at the bottom turns it off for the host.
Hatoba reads /proc on the server (on macOS, iostat, vm_stat, sysctl, netstat and df) every 2 seconds over the tab’s own connection, by running sh on a separate channel; nothing is installed, and the process shows on the server (for example in ps) while the readout is sampled. Sampling pauses while another tab is in front or the vault is locked, and goes on while the window is minimized; a pause shows as a gap in the charts. The first reading after a pause has no CPU or network rate yet (“—”); the next one, 2 seconds later, does.
- On macOS, memory in use is counted as Activity Monitor counts it (app memory, wired and compressed), and the disk is the APFS container of
/, used as Finder shows it: its size less what is available. - FreeBSD, NetBSD, Windows and other systems show “Resource usage is available only for Linux and macOS servers.” with the system’s name when known.
- If the readings stop (for example the server refused to run the command, or
shexited), the popover shows the reason and Retry. - In a container,
/procdescribes the host machine, so CPU and memory are the host’s, not the container’s.
Other labels: Memory, Swap, No swap, Network, Disk, Reading….
Menus
The tab menu (More actions) and the right-click menu share most entries. Right-click shows the menu when Right-Click in Terminal is set to Show context menu (see Settings below), the default on macOS; elsewhere right-click by default copies the selection, or pastes when nothing is selected. A program that tracks the mouse (vim, tmux) gets the right click itself unless Shift is held. It gets drags too: hold Shift (⌥ on macOS) to select text.
- Right-click menu: Copy, Paste, Select All, Ask AI, Clear Scrollback, Find…
- More actions menu: Reconnect, Disconnect, Copy, Paste, Clear Scrollback, Select All, Find…, Ask AI, Edit Host. A quick connection (see Hosts and connecting) has Save as Host instead of Edit Host.
- Ask AI is enabled when text is selected. It opens the AI panel with the selection attached; see Attachments to an AI message.
Copy, paste, search and links
Plain Ctrl+letter always reaches the remote shell (Ctrl+L, Ctrl+W, Ctrl+K and so on). Hatoba’s own shortcuts add Shift. See Keyboard shortcuts for the full list.
| Action | Windows / Linux | macOS |
|---|---|---|
| Copy the selection | Ctrl+C when text is selected (otherwise Ctrl+C is ^C for the remote), Ctrl+Shift+C, or Ctrl+Insert | ⌘C |
| Paste | Ctrl+V, Ctrl+Shift+V, or Shift+Insert | ⌘V |
| Find in the terminal | Ctrl+Shift+F | ⌘F |
- Pasting a single line drops its trailing line breaks, so a copied command waits for Enter instead of running. Text with line breaks inside is pasted unchanged, after Paste multiple lines? with a preview; Paste confirms. The check can be turned off in Settings → Terminal (Confirm before pasting multiple lines). Pasting needs a connected tab.
- A program can copy text to the clipboard with OSC 52, as Codex and tmux do on a server. An OSC 52 request to read it gets no answer.
- The find bar searches the visible screen and the scrollback. Enter goes to the next match, Shift+Enter to the previous one, Esc closes the bar. It shows “No results” or the position as i/n.
- HTTP and HTTPS links in the output open in the default browser with Ctrl+click (⌘+click on macOS), including local HTTP services. Other schemes are not opened. A plain click only selects text.
Other labels: Previous (Shift+Enter), Next (Enter), Close find (Esc), Copy if selected, otherwise paste.
Command suggestions
While you type a command at a shell prompt, in an SSH, local or Telnet tab, the rest of the newest command you ran there that starts with what you typed shows dimmed after the cursor, as in fish or PowerShell.
| Action | Windows / Linux | macOS |
|---|---|---|
| Take the dimmed command | → or End | → or End |
| Take its next word | Ctrl+→ | ⌥→ |
| List the commands you ran | Ctrl+Shift+Space | ⌘⇧Space |
- The commands come from the history Hatoba keeps of each saved host and each local shell, on this device only, encrypted with the vault and not synced. A quick connection keeps its commands for the tab only. Deleting a host deletes its history.
- On an SSH tab, when that history has no match, the suggestions also come from the server: the shell’s own history (
~/.bash_history,~/.zsh_historyand fish’sfish_history), and for the first word of a command, the names of the commands on itsPATH. They are read once when the tab connects and kept in memory for the tab, and nothing on the server changes. A word that starts with/or~/completes the name of a file or folder on the server, listed through SFTP as you type; a relative path gets no suggestion. The list shows the server’s commands after Hatoba’s; Shift+Delete and Clear Command History remove them from the tab, not from the files on the server. A server that refuses, or whose identification names FreeBSD, NetBSD or Windows, leaves the tab with Hatoba’s own history. - A command is added when you press Enter at a prompt. It is read from the screen, so what the shell does not show, such as a password, is never kept, and a command that starts with a space is left out, as the shells leave it out of their own history.
- A prompt is a line that ends with
$,#,%,>or❯, or one that starts like the line where Enter was last pressed (such as oh-my-zsh’s➜). Nothing shows in a full-screen program (vim, htop), while the view is scrolled up, or while an input method is composing, and nothing shows where the shell already draws its own suggestion (fish, zsh-autosuggestions, PowerShell’s predictions). - The list (Command suggestions) opens at the cursor with the commands that contain what you typed, those that start with it first. Typing in Search commands filters it, ↑ and ↓ select, Enter, Tab or a click puts the command in place of what you typed without running it, Shift+Delete removes it from the history, and Esc closes the list. With nothing to show it says “No matching commands”.
- Settings → Terminal → Suggest commands turns the dimmed command off; the list still opens with its keys. Clear Command History deletes the history of every host and shell on this device.
Terminal settings
All of them are in Settings → Terminal and sync with the vault, except Local Terminal Shell and Editor. The page has four sections: Text and Cursor, with a preview under it of the font, size, cursor and color scheme, then Colors, Behavior and SFTP.
Other labels: Decrease font size, Increase font size.
- Font: the name of an installed font family (default Cascadia Mono, or Menlo on macOS). A font that is not installed falls back to the system monospace font.
- Font Size: 10 to 24 (default 13), changed with the minus and plus buttons, or in any terminal with Ctrl+= / Ctrl+- / Ctrl+0 (⌘ on macOS) and Ctrl+wheel, which change every terminal tab; see Keyboard shortcuts.
- Cursor Style: Block (default), Bar or Underline.
- Colors → Mode: Always Dark (default), Always Light, or Match Appearance, which follows the app’s light or dark theme. Below it, the built-in color schemes show as small terminal previews; click one to use it:
- Dark: Hatoba Dark (default), Dracula, Tokyo Night, Catppuccin Mocha, One Half Dark, Nord, Gruvbox Dark, Solarized Dark, Rosé Pine, Kanagawa, GitHub Dark.
- Light: Hatoba Light (default), GitHub Light, One Half Light, Catppuccin Latte, Solarized Light, Gruvbox Light, Rosé Pine Dawn.
- With Match Appearance both lists show, under In Dark Appearance and In Light Appearance, and the terminal switches between the two picks with the theme. Open terminals take a new pick when the Settings window closes.
- Light schemes darken colors that would be hard to read on a light background, such as white or yellow text from programs written for dark terminals.
- There are no custom schemes and no import from other terminals.
- Right-Click in Terminal: Copy if selected, otherwise paste (default, except on macOS) or Show context menu (default on macOS).
- Confirm before pasting multiple lines: on by default.
- Suggest commands: on by default; see “Command suggestions” above.
- Command history → Clear Command History: deletes the command history of every host and local shell on this device, after Clear the command history?.
- Scrollback: 1,000, 5,000, 10,000 (default), or 50,000 lines.
- Local Terminal Shell: the shell new local tabs run, kept on this device only (not synced); see “Local terminal tabs” above.
- SFTP → Editor: the program that opens files edited from the SFTP panel, kept on this device only: System Default (the system’s app for each kind of file) or a program picked with Choose a Program; see SFTP file panel.
- The language is in Settings → General, and the theme, list density and window zoom in Settings → Appearance; see Settings.
Tab states
A tab can be connecting (orange dot, “Connecting to …” overlay), connected (green), failed (red, with a card to retry or edit the host), or disconnected (grey, with a banner to reconnect). See Hosts and connecting. While a conversation of the AI assistant runs or waits for approval, the tab shows a small sparkle or hand icon.