Skip to content
TileDownSite version v0.5.24

A terminal tile you scroll by hand

TileDown 0.13 adds style manual to the terminal tile, a window the reader scrolls by wheel, touch or keyboard, and a source option that reads the text from a file when the site is built.

The terminal tile shows a command line session as a window, built with the site in the theme’s own colors and monospace font. TileDown 0.13 adds two things to it: a window the reader scrolls, and text that comes from a file.

The window below is style: manual. Scroll it with the wheel or by touch, or Tab to it and use the arrow keys, Page Up, Page Down, Home and End. It scrolls down and sideways, the newest line is at the bottom, and it stays at the end until you scroll up. There is no script.

build.log
$ tiledown build-site content/ dist/
reading content/index.md
reading content/docs/index.md
reading content/features/index.md
reading content/posts/first-post/index.md
warning: content/posts/first-post/index.md: link not emitted, scheme `ftp` is not allowed: ftp://example.com/file
writing dist/index.html
writing dist/docs/index.html
writing dist/features/index.html
writing dist/posts/first-post/index.html
writing dist/feed.xml
writing dist/sitemap.xml
done: 4 pages, 1 feed, 1 sitemap
$ tiledown check-links --internal dist/
ok: every internal link and anchor resolves

The text is not in this page. It is the file build.log next to the page, read when the site is built.

:::tile terminal
style: manual
lines: 8
source: build.log
tail: 500
title: build.log
:::

The options

  • style is still (every line, the default), scroll (the session scrolls by itself in CSS and pauses under the pointer) or manual.

  • lines is how many lines the window shows, 3 to 60, for scroll and manual.

  • wrap: true wraps long lines in a manual window; the default lets them scroll sideways.

  • source reads the text from a file next to the page, so a log written by another program is data and the page never copies it. The path stays inside the page’s folder, and a file that cannot be read fails the build with its path in the message. An empty file shows (no lines yet).

  • tail keeps the last 1 to 100000 lines of the file, and max-bytes the last bytes (up to 16777216, 262144 by default). A cut always starts at a line.

  • source and text cannot both be given.

Color codes in the text are read and become the theme’s colors, and \e stands for the escape character, so output copied from a terminal works. A screen reader reads the real text once. With reduced motion, in print and in the PDF the window is still and shows every line; in the PDF it is a plain code block. The full reference is “Terminal tile” in docs/authoring.md in the repository.

TileDown Updates

Stay updated with every exciting new feature we bring to TileDown, the Markdown‑first way to build sites you truly own.

View Markdown source
index.md
---
title: A terminal tile you scroll by hand
date: 2026-11-22
description: TileDown 0.13 adds style manual to the terminal tile, a window the reader scrolls by wheel, touch or keyboard, and a source option that reads the text from a file when the site is built.
tags: Release, Tiles, Terminal
image: /assets/post-terminal-manual.svg
imageDark: /assets/post-terminal-manual-dark.svg
---
# A terminal tile you scroll by hand

The `terminal` tile shows a command line session as a window, built with the site in
the theme's own colors and monospace font. TileDown 0.13 adds two things to it: a
window the reader scrolls, and text that comes from a file.

The window below is `style: manual`. Scroll it with the wheel or by touch, or Tab to it
and use the arrow keys, Page Up, Page Down, Home and End. It scrolls down and sideways,
the newest line is at the bottom, and it stays at the end until you scroll up. There is
no script.

:::tile terminal
style: manual
lines: 8
source: build.log
title: build.log
:::

The text is not in this page. It is the file `build.log` next to the page, read when
the site is built.

````
:::tile terminal
style: manual
lines: 8
source: build.log
tail: 500
title: build.log
:::
````

## The options

- `style` is `still` (every line, the default), `scroll` (the session scrolls by itself
  in CSS and pauses under the pointer) or `manual`.
- `lines` is how many lines the window shows, 3 to 60, for `scroll` and `manual`.
- `wrap: true` wraps long lines in a `manual` window; the default lets them scroll
  sideways.
- `source` reads the text from a file next to the page, so a log written by another
  program is data and the page never copies it. The path stays inside the page's folder,
  and a file that cannot be read fails the build with its path in the message. An empty
  file shows `(no lines yet)`.
- `tail` keeps the last 1 to 100000 lines of the file, and `max-bytes` the last bytes
  (up to 16777216, 262144 by default). A cut always starts at a line.
- `source` and `text` cannot both be given.

Color codes in the text are read and become the theme's colors, and `\e` stands for the
escape character, so output copied from a terminal works. A screen reader reads the real
text once. With reduced motion, in print and in the PDF the window is still and shows
every line; in the PDF it is a plain code block. The full reference is "Terminal tile"
in `docs/authoring.md` in the repository.