# Troubleshooting


# Images are colored blocks

Your terminal has no image protocol, or tomes runs in tmux without passthrough. See [Images](images.md); `:images` shows what tomes found.


# Images don't show, or tomes hangs at startup

Some terminals don't answer when tomes asks what they support. Start with `--images halfblocks` (or `--no-images`), or set `TOMES_NO_QUERY=1`.


# Colors look wrong

Your terminal's palette may be hard to read with some books: `Space c` switches to the book's colors, and `Space l` between light and dark. In a terminal without 24-bit color, tomes uses the nearest of 256 colors; set `COLORTERM=truecolor` if your terminal does have them.


# I can't select text

tomes uses the mouse, so your terminal doesn't select text. Hold Shift (Option in iTerm2) while you drag, or press `Space m` to turn the mouse off. Or use `V` in tomes to select lines.


# Copying does nothing

Over SSH and in containers, tomes copies with OSC 52. Your terminal must allow it (in iTerm2: *Applications in terminal may access clipboard*), and in tmux set `set -g set-clipboard on`.


# A book doesn't open

tomes reads books made with Quarto. Books made with bookdown or other tools aren't supported yet. For a book on your computer, point tomes at the rendered output (`_book`, `_site`, `docs`), not at the `.qmd` files.


# Something else

[Open an issue](https://github.com/jeroenjanssens/tomes/issues), with `tomes --version`, your terminal, and the book.
