<feed xmlns='http://www.w3.org/2005/Atom'>
<title>org-drill/tests/test-org-drill-tty-safe.el, branch main</title>
<subtitle>Spaced-repetition flashcards for Org Mode
</subtitle>
<id>https://git.cjennings.net/org-drill/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/org-drill/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/'/>
<updated>2026-05-05T10:26:44+00:00</updated>
<entry>
<title>fix: skip LaTeX preview on TTY frames (upstream #44)</title>
<updated>2026-05-05T10:26:44+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T10:26:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=fd658b166a8dcf716c82cca28f370990a9df83af'/>
<id>urn:sha1:fd658b166a8dcf716c82cca28f370990a9df83af</id>
<content type='text'>
Issue #44 (2021): running org-drill in a TTY emacsclient (the
reporter mentioned tmux) raised "Window system frame should be
used" because LaTeX preview helpers (org-latex-preview,
org--latex-preview-region) require a window system and weren't
guarded.

Wrapped both call sites with (when (display-graphic-p) ...).

- org-drill--show-latex-fragments: now a silent no-op on TTY
- present-default-answer's clear-and-preview block: same guard

LaTeX previews are inherently graphical.  The right behavior on
TTY is to skip the preview rather than crash the session — TTY
users still see the underlying source text just fine.
</content>
</entry>
</feed>
