# Set up your terminal (/terminal-setup)



Jinion works in any modern terminal. A few settings make it work better.

## Light and dark [#light-and-dark]

Jinion detects whether your terminal background is light or dark and picks its colors to match. If it guesses wrong,
set it yourself:

```sh title="Terminal"
jinion --theme light
```

Or set `JINION_THEME=light` (or `dark`) in your shell profile to make it stick.

## New lines [#new-lines]

`shift+enter` adds a new line in most terminals. If yours sends the message instead, use `alt+enter`, or end the line
with `\` and press `enter`.

## Option keys [#option-keys]

`option+backspace` deletes a word, `cmd+backspace` the line up to the cursor, and `option+left` and `option+right` move
by word. Terminal.app sends `option` as a plain key until Use Option as Meta key is on in its profile, so Jinion offers
to turn it on the first time it opens there; `/terminal-setup` does it any time. In iTerm2, set Settings → Profiles →
Keys → Left Option key to Esc+.

## Select and copy text [#select-and-copy-text]

Drag to select text. When you let go, it is copied, and `copied 27 chars to clipboard` shows at the top right of the
prompt. Double-click selects a word, with a file path or a URL as one word; triple-click selects a line. With text
selected, `ctrl+c` copies it again rather than stopping the agent. Typing, clicking or scrolling lets go of it.

On your own machine the text goes through the system's clipboard tool: `pbcopy` on macOS, `wl-copy`, `xclip` or `xsel`
on Linux. Over SSH it goes through your terminal (OSC 52). iTerm2 lets it through once you turn on Settings → General
→ Selection → Applications in terminal may access clipboard. Inside tmux it also goes to tmux's paste buffer.

For your terminal's own selection, hold `shift` while you drag: `option` in iTerm2, `fn` in Terminal.app.

## Scroll [#scroll]

The mouse wheel and `pgup` / `pgdn` scroll the conversation. When you scroll up, a **Jump to bottom** row appears;
click it to follow the conversation again.

## Notifications [#notifications]

Notifications use your terminal's own desktop notifications, or its bell where it has none. See
[Get notified](/notifications#terminal-support) for which terminals show them.

<Callout>
  Inside tmux or screen, notifications become the bell. Turn on your multiplexer's bell forwarding to see them.
</Callout>

## Paste images [#paste-images]

`ctrl+v` reads an image from the clipboard on macOS. `cmd+v` does too in a terminal that passes an image on as an empty
paste; where nothing happens, use `ctrl+v`. On Linux it needs `wl-paste` (Wayland) or `xclip` (X11):

```sh title="Terminal"
sudo apt install wl-clipboard   # Wayland
sudo apt install xclip          # X11
```

Dragging an image file into the terminal works everywhere, since the terminal pastes its path.
