aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-tty-safe.el
Commit message (Collapse)AuthorAgeFilesLines
* fix: skip LaTeX preview on TTY frames (upstream #44)Craig Jennings2026-05-051-0/+49
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.