diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,11 @@
 # Revision history for reflex-vty
 
+## 1.3.0.1
+
+* Support Vty 6.7 in the library and PTY test driver.
+* Add some interactive gallery examples to the `examples` executable
+* Add `canvas` gallery example: an interactive `Reflex.Vty.Canvas` board showing transparency, wide glyphs, combining marks with distinct attributes, and Vty's ellipsis clipping, with keyboard-driven overlay movement.
+
 ## 1.3.0.0
 
 * Fix: `splitAtWidth` uses character boundaries instead of storage offsets. This preserves Unicode text when the function wraps wide characters.
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -62,6 +62,12 @@
 | **`textinput`** — a focused text-input field    | <img src="https://vhs.charm.sh/vhs-4FzSVaJAnGq4V1NNrk1lal.gif" alt="text input demo" width="420">   |
 | **`pager`** — a scrollable text viewport        | <img src="https://vhs.charm.sh/vhs-7a2bCmFHleF9MG3KxY4yeh.gif" alt="pager demo" width="420">        |
 | **`views`** — toggle between two views          | <img src="https://vhs.charm.sh/vhs-7rflGBcgFrmIQgk0JmZNKe.gif" alt="views demo" width="420">        |
+| **`prevent-quit`** — confirm before exit        | <img src="https://vhs.charm.sh/vhs-4P7SjY4t2Jsa8UaifIVYBm.gif" alt="quit confirmation demo: pressing q opens a quit prompt, n returns to the running view, y exits" width="420"> |
+| **`print-key`** — inspect keyboard events       | <img src="https://vhs.charm.sh/vhs-QzhTzHfQoJmwratv2xaaW.gif" alt="keyboard event demo: each key press, arrow key, and key with modifiers is shown as a Vty event" width="420"> |
+| **`realtime`** — background activity that never blocks input | <img src="https://vhs.charm.sh/vhs-7jC7TFTxH2A1xQmsJPGqFa.gif" alt="simulated background activity demo: an event counter advances while key presses display immediately" width="420"> |
+| **`simple`** — a five-second countdown that exits on its own | <img src="https://vhs.charm.sh/vhs-1fP0onE4lMVSBYRyN9HM16.gif" alt="automatic countdown demo: the program counts down from five seconds and exits without any key press" width="420"> |
+| **`fullscreen`** — the countdown on the alternate screen | <img src="https://vhs.charm.sh/vhs-CfyENW8ZOn5D389ESgdll.gif" alt="alternate-screen countdown demo: the countdown runs fullscreen and the prior shell screen returns on exit" width="420"> |
+| **`canvas`** — a glyph-level drawing board | <img src="https://vhs.charm.sh/vhs-4Pb8inOYo4dWwFvmYXf6ib.gif" alt="canvas board demo: a checkerboard with a wide glyph, a combining-mark glyph, an ellipsis-clipped glyph at the right edge, and a movable highlight overlay" width="420"> |
 
 **More demos**: full-screen canvas animations (the classic Doom fire, a plasma field, a starfield, an animated splash) live on the [examples page](EXAMPLES.md).
 
diff --git a/doc/qa.md b/doc/qa.md
--- a/doc/qa.md
+++ b/doc/qa.md
@@ -168,3 +168,72 @@
   * Make sure that after quitting, the terminal restores the content that was on screen before the app launched (alternate screen mode).
 
 There should be 8 examples to cover (Todo List, Text Editor, Scrollable text display, Clickable buttons, CPU Usage, Scrollbar modes, Cursor, Showcase). If there are more or fewer than this then this QA guide is out of date and QA should fail.
+
+## Gallery demos
+
+Each runs with `cabal run examples -- <name>` (see the README gallery for
+recordings). These complement the Showcase checks above.
+
+  * `canvas` — a `Reflex.Vty.Canvas` drawing board.
+    * Make sure a checkerboard of dim and faint dots fills a 22-column board; the
+      gaps between dots are transparent, so the terminal background shows through.
+    * Make sure the wide glyph `漢` (two columns) and the marked glyph `á` (base
+      `a` plus a pink combining acute) appear on the third board row.
+    * Make sure the rightmost glyph on that row renders as a one-column `…`
+      ellipsis: the wide glyph's second column falls past the board's right
+      edge, following Vty's clipping policy.
+    * Make sure the arrow keys move a `█`-and-bracket highlight overlay in
+      two-column steps horizontally and one-row steps vertically, clamped to
+      the board.
+    * Move the highlight over the `…` cell: the overlay covers it, and the
+      clipped glyph reappears (still clipped) when the highlight moves away.
+      Moving the highlight over the whole wide glyph removes it; moving away
+      restores it.
+    * Type <kbd>q</kbd> and make sure the terminal restores the prior screen.
+
+  * `prevent-quit` — confirmation before exit.
+    * Make sure the running view says `Application is running.` with a dim
+      `q or Ctrl+C: request exit` hint.
+    * Press <kbd>q</kbd>: a `Really quit? [y/N]` confirmation appears and the
+      app does not exit. Press <kbd>n</kbd>, <kbd>N</kbd>, <kbd>Enter</kbd>, or
+      <kbd>Esc</kbd> to return to the running view.
+    * Press <kbd>Ctrl</kbd>+<kbd>C</kbd>: the same confirmation appears.
+    * Press <kbd>y</kbd> or <kbd>Y</kbd> while confirming: the app exits.
+      Pressing <kbd>q</kbd> or <kbd>Ctrl</kbd>+<kbd>C</kbd> while confirming
+      keeps the confirmation open.
+
+  * `print-key` — raw keyboard-event inspection.
+    * Make sure the view starts with `No key received.`
+    * Press keys (letters, <kbd>Esc</kbd>, <kbd>Enter</kbd>, <kbd>Tab</kbd>,
+      arrows, function keys, Unicode text): the display shows the Vty event's
+      `show` form, including the modifier list (e.g. `EvKey (KChar 'a')
+      [MCtrl]` for <kbd>Ctrl</kbd>+<kbd>A</kbd>).
+    * Make sure <kbd>q</kbd> only updates the display; it does not exit.
+    * Paste text: the display keeps the last key event and the app keeps
+      running.
+    * Type <kbd>Ctrl</kbd>+<kbd>C</kbd> to quit.
+
+  * `realtime` — background activity without blocking input.
+    * Make sure `Events received: N` starts at 0 and advances through 1, 2, 3,
+      ... roughly every 0.3-0.7 seconds (delays repeat 300/700/500 ms).
+    * Type keys while an activity is pending: the keyboard-event line updates
+      immediately, without waiting for the background action.
+    * Type <kbd>q</kbd> or <kbd>Ctrl</kbd>+<kbd>C</kbd>: the app exits without
+      waiting for another activity.
+
+  * `simple` — a five-second automatic countdown.
+    * Make sure the display starts at `This program exits in 5 seconds.` and
+      counts down to 1, then the program exits at about five seconds with no
+      key press.
+    * Press <kbd>q</kbd> or <kbd>Ctrl</kbd>+<kbd>C</kbd> to exit sooner.
+    * Suspend the process (<kbd>Ctrl</kbd>+<kbd>Z</kbd>, or SIGSTOP from a
+      shell) for a few seconds and resume it: the countdown catches up to
+      elapsed time and finishes near its original deadline rather than running
+      five more delivered ticks.
+
+  * `fullscreen` — the countdown on the alternate screen.
+    * Make sure the app switches to the alternate screen (the prior shell
+      content disappears) and runs the same five-second countdown as `simple`.
+    * Make sure the app returns to the normal screen and the prior shell
+      content is restored when the countdown ends, when you press <kbd>q</kbd>
+      or <kbd>Ctrl</kbd>+<kbd>C</kbd>, and on SIGTERM.
diff --git a/reflex-vty.cabal b/reflex-vty.cabal
--- a/reflex-vty.cabal
+++ b/reflex-vty.cabal
@@ -1,6 +1,6 @@
 cabal-version: 3.0
 name: reflex-vty
-version: 1.3.0.0
+version: 1.3.0.1
 synopsis: Reflex FRP host and widgets for VTY applications
 description:
   Build terminal applications using functional reactive programming (FRP) with Reflex FRP (<https://reflex-frp.org>).
@@ -129,7 +129,7 @@
     reflex >= 0.9.2 && < 1,
     time >= 1.8.0 && < 1.15,
     vector >= 0.12 && < 0.14,
-    vty >= 6.0 && < 6.7,
+    vty >= 6.0 && < 6.8,
     vty-crossplatform >= 0.1 && < 0.6,
     reflex-vty:reflex-vty-internal
   hs-source-dirs: src
@@ -205,10 +205,16 @@
   default-language: Haskell2010
   other-modules:
     Example.CellBuffer
+    Example.CanvasDemo
     Example.Common
     Example.DoomFire
+    Example.Fullscreen
     Example.Pager
+    Example.PreventQuit
+    Example.PrintKey
     Example.Progress
+    Example.Realtime
+    Example.Simple
     Example.Space
     Example.Spinner
     Example.Splash
@@ -254,7 +260,7 @@
     base >= 4.10.0 && < 4.22,
     reflex-vty,
     reflex >= 0.9.2 && < 1,
-    vty >= 6.0 && < 6.5,
+    vty >= 6.0 && < 6.8,
     text,
     bytestring,
     transformers >= 0.5.5 && < 0.7,
@@ -263,7 +269,7 @@
     build-depends: unix >= 2.7 && < 2.10
 
 test-suite reflex-vty-test
-  hs-source-dirs: test
+  hs-source-dirs: test src-bin
   main-is: Spec.hs
   type: exitcode-stdio-1.0
   ghc-options: -threaded
@@ -296,6 +302,10 @@
     Reflex.Vty.CompositionSpec
     Reflex.Vty.Widget.MouseSpec
     Reflex.Vty.Widget.ScrollSpec
+    Example.Common
+    Example.PreventQuit
+    Example.PrintKey
+    Example.InteractionSpec
   build-depends:
     base,
     reflex,
@@ -321,3 +331,10 @@
   if !os(windows)
     build-depends: unix >= 2.7 && < 2.10
   default-language: Haskell2010
+  -- Example.Common is compiled into this test suite from src-bin; it uses
+  -- ConstraintKinds for its capability alias.
+  default-extensions:
+    ConstraintKinds
+    FlexibleContexts
+    RankNTypes
+    ScopedTypeVariables
diff --git a/src-bin/Example/CanvasDemo.hs b/src-bin/Example/CanvasDemo.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/CanvasDemo.hs
@@ -0,0 +1,123 @@
+{-# LANGUAGE LambdaCase #-}
+{-# LANGUAGE RecursiveDo #-}
+
+-- |
+--   Description: An interactive drawing surface over 'Reflex.Vty.Canvas',
+--   exercising glyphs, transparency, and clipping that flat images hide.
+module Example.CanvasDemo (canvasDemo) where
+
+import Data.List.NonEmpty (NonEmpty (..))
+import qualified Data.Map.Strict as Map
+import qualified Data.Text as T
+import Graphics.Text.Width (wcwidth)
+import qualified Graphics.Vty as V
+import Reflex
+
+import Example.Common
+import Reflex.Vty
+import Reflex.Vty.Canvas
+
+-- | A small canvas board driven by the arrow keys. A two-column glyph and a
+-- combining-mark glyph sit on a checkerboard that shows through transparency.
+-- A two-cell highlight moves over them, and the board's right edge clips a
+-- wide glyph to Vty's ellipsis form.
+canvasDemo :: Demo t m => m (Event t ())
+canvasDemo = do
+  inp <- input
+  let moves = fforMaybe inp $ \case
+        V.EvKey V.KLeft [] -> Just (-2, 0)
+        V.EvKey V.KRight [] -> Just (2, 0)
+        V.EvKey V.KUp [] -> Just (0, -1)
+        V.EvKey V.KDown [] -> Just (0, 1)
+        _ -> Nothing
+      clamp v lo hi = max lo (min hi v)
+  pos <-
+    foldDyn
+      (\(dx, dy) (x, y) -> (clamp (x + dx) 0 (boardW - 2), clamp (y + dy) 0 (boardH - 1)))
+      (2, 2)
+      moves
+  dw <- displayWidth
+  dh <- displayHeight
+  tellImages $ current $ ffor ((,) <$> pos <*> ((,) <$> dw <*> dh)) $ \((x, y), (w, h)) ->
+    [ canvasToImage (board (min w boardW) (min h boardH) x y)
+    , V.char V.defAttr ' '
+    , V.text' (V.withForeColor V.defAttr dim) (T.pack hint)
+    ]
+  quit
+
+-- Board dimensions: wide enough that the glyph layer's last wide glyph
+-- straddles the right edge and clips.
+boardW, boardH :: Int
+boardW = 22
+boardH = 6
+
+hint :: String
+hint = "  arrows: move · q: quit · 漢 is wide; á is one glyph with a combining mark"
+
+-- | The demo board: transparent base, the glyph layer below, and the moving
+-- highlight on top. The glyph layer is drawn one column wider and then
+-- translated left, so its last wide glyph crosses the board's right edge and
+-- clips to an ellipsis.
+board :: Int -> Int -> Int -> Int -> Canvas
+board w h hx hy =
+  stack
+    [ blankCanvas w h
+    , translate (-1) 0 (glyphLayer (w + 1) h)
+    , highlightLayer w h hx hy
+    ]
+
+-- | The fixed layer: a checkerboard of dots (transparency lets the base show
+-- between them), a wide glyph, and a combining-mark glyph whose mark carries a
+-- different attribute than its base.
+glyphLayer :: Int -> Int -> Canvas
+glyphLayer w h =
+  Canvas w h $
+    Map.unions
+      [checker, wide, marked]
+  where
+    -- Map.unions is left-biased, so glyphs must come first and the
+    -- checkerboard last; it only fills columns the glyphs leave free.
+    checker =
+      Map.fromList
+        [ ((x, y), cellAttr (if even (x + y) then dimA else faintA) "·")
+        | y <- [0 .. h - 1]
+        , x <- [0 .. w - 1]
+        , not (Map.member (x, y) glyphCells)
+        ]
+    glyphCells = Map.union wide marked
+    -- At the layer's last column; after the left translate its second column
+    -- falls outside the board and clips to an ellipsis.
+    wide = Map.fromList [((w - 1, 2), plainCell "漢")]
+    marked = Map.fromList [((13, 2), markedCell)]
+
+-- | The moving overlay: an opaque left bracket and a full block. Placing it
+-- over the wide glyph clips the wide glyph with Vty's ellipsis policy, and
+-- over the dots shows transparency gaps around the overlay glyphs.
+highlightLayer :: Int -> Int -> Int -> Int -> Canvas
+highlightLayer w h hx hy =
+  Canvas w h $
+    Map.fromList
+      [ ((hx, hy), plainCell "[")
+      , ((hx + 1, hy), plainCell "\x2588")
+      ]
+
+-- Attributes and cell helpers ------------------------------------------------
+
+plainA, dimA, faintA, markA :: V.Attr
+plainA = V.defAttr
+dimA = V.withForeColor V.defAttr (rgbColor 120 120 140)
+faintA = V.withForeColor V.defAttr (rgbColor 70 70 85)
+markA = V.withForeColor V.defAttr (rgbColor 255 120 200)
+
+-- | One attributed run as a cell.
+cellAttr :: V.Attr -> T.Text -> CanvasCell
+cellAttr a t = CanvasCell width (pure (a, t))
+  where
+    width = sum [wcwidth ch | ch <- T.unpack t, wcwidth ch > 0]
+
+-- | A base glyph plus a zero-width combining mark in its own attribute run.
+markedCell :: CanvasCell
+markedCell = CanvasCell 1 ((plainA, "a") :| [(markA, "\x0301")])
+
+plainCell :: T.Text -> CanvasCell
+plainCell = cellAttr plainA
diff --git a/src-bin/Example/Common.hs b/src-bin/Example/Common.hs
--- a/src-bin/Example/Common.hs
+++ b/src-bin/Example/Common.hs
@@ -15,6 +15,7 @@
   ( Reflex t
   , MonadFix m
   , MonadHold t m
+  , MonadSample t m
   , MonadIO m
   , MonadIO (Performable m)
   , PerformEvent t m
diff --git a/src-bin/Example/Fullscreen.hs b/src-bin/Example/Fullscreen.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/Fullscreen.hs
@@ -0,0 +1,18 @@
+-- |
+--   Description: Countdown on the alternate screen, a la the Bubble Tea
+--   fullscreen example.
+module Example.Fullscreen (fullscreen) where
+
+import Reflex
+
+import Example.Common (Demo)
+import Example.Simple (simple)
+import Reflex.Vty
+
+-- | Enters the alternate screen, then runs the five-second countdown from
+-- "Example.Simple" unchanged. The host's normal cleanup restores the primary
+-- screen on any exit path.
+fullscreen :: (Demo t m, HasScreenMode t m) => m (Event t ())
+fullscreen = do
+  enterAlternateScreen
+  simple
diff --git a/src-bin/Example/PreventQuit.hs b/src-bin/Example/PreventQuit.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/PreventQuit.hs
@@ -0,0 +1,45 @@
+{-# LANGUAGE LambdaCase #-}
+
+-- |
+--   Description: Ask for confirmation before quitting, a la the Bubble Tea
+--   prevent-quit example.
+module Example.PreventQuit (preventQuit) where
+
+import qualified Data.Text as T
+import qualified Graphics.Vty as V
+import Reflex
+
+import Example.Common
+import Reflex.Vty
+
+-- | Requests to quit (q or Ctrl+C) open a confirmation view. Only an
+-- unmodified y or Y confirms; n, N, Enter, or Esc returns to the running view.
+-- The returned event is the shutdown request; 'Example.Common.quit' here is
+-- only the confirmation request.
+preventQuit :: Demo t m => m (Event t ())
+preventQuit = do
+  requested <- quit
+  yes <- keys [V.KChar 'y', V.KChar 'Y']
+  no <- keys [V.KChar 'n', V.KChar 'N', V.KEnter, V.KEsc]
+  confirming <- holdDyn False $ leftmost [True <$ requested, False <$ no]
+  tellImages $ current $ ffor confirming view
+  pure $ () <$ gate (current confirming) yes
+  where
+    view True =
+      [ V.vertCat
+          [ V.text' (V.withStyle (V.withForeColor V.defAttr accent) V.bold) (T.pack "  Quit confirmation")
+          , V.char V.defAttr ' '
+          , V.text' V.defAttr (T.pack "  Really quit? [y/N]")
+          , V.char V.defAttr ' '
+          , V.text' (V.withForeColor V.defAttr dim) (T.pack "  y: quit; n, Enter, or Esc: return")
+          ]
+      ]
+    view False =
+      [ V.vertCat
+          [ V.text' (V.withStyle (V.withForeColor V.defAttr accent) V.bold) (T.pack "  Quit confirmation")
+          , V.char V.defAttr ' '
+          , V.text' V.defAttr (T.pack "  Application is running.")
+          , V.char V.defAttr ' '
+          , V.text' (V.withForeColor V.defAttr dim) (T.pack "  q or Ctrl+C: request exit")
+          ]
+      ]
diff --git a/src-bin/Example/PrintKey.hs b/src-bin/Example/PrintKey.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/PrintKey.hs
@@ -0,0 +1,35 @@
+{-# LANGUAGE LambdaCase #-}
+
+-- |
+--   Description: Show the raw Vty keyboard event, a la the Bubble Tea
+--   print-key example.
+module Example.PrintKey (printKey) where
+
+import qualified Data.Text as T
+import qualified Graphics.Vty as V
+import Reflex
+
+import Example.Common
+import Reflex.Vty
+
+-- | Prints the latest 'V.EvKey' event, including its modifier list. Ordinary
+-- characters (including q) are never treated as exit commands here; only
+-- Ctrl+C quits. Non-key events (paste, mouse, focus, resize) do not replace
+-- the displayed keyboard event.
+printKey :: Demo t m => m (Event t ())
+printKey = do
+  i <- input
+  let keyEvents = fforMaybe i $ \case
+        e@V.EvKey {} -> Just e
+        _ -> Nothing
+  lastKey <- holdDyn (T.pack "No key received.") (T.pack . show <$> keyEvents)
+  tellImages $ current $ ffor lastKey $ \k ->
+    [ V.vertCat
+        [ V.text' (V.withStyle (V.withForeColor V.defAttr accent) V.bold) (T.pack "  Keyboard events")
+        , V.char V.defAttr ' '
+        , V.text' V.defAttr ((T.pack "  ") <> k)
+        , V.char V.defAttr ' '
+        , V.text' (V.withForeColor V.defAttr dim) (T.pack "  Press a key. Ctrl+C: quit")
+        ]
+    ]
+  ctrlc
diff --git a/src-bin/Example/Realtime.hs b/src-bin/Example/Realtime.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/Realtime.hs
@@ -0,0 +1,51 @@
+{-# LANGUAGE RecursiveDo #-}
+
+-- |
+--   Description: Background activity that never blocks input, a la the
+--   Bubble Tea realtime example.
+module Example.Realtime (realtime) where
+
+import Control.Concurrent (forkIO, threadDelay)
+import Control.Monad (void)
+import Control.Monad.IO.Class (liftIO)
+import qualified Data.Text as T
+import qualified Graphics.Vty as V
+import Reflex
+
+import Example.Common
+import Reflex.Vty
+
+-- | Simulated local activities arrive from background actions while the
+-- keyboard stays live. Each request forks exactly one finite action; the next
+-- request is fed back from the completed result. Delays repeat: 300 ms, 700 ms,
+-- 500 ms.
+realtime :: Demo t m => m (Event t ())
+realtime = do
+  postBuild <- getPostBuild
+  rec let requests = leftmost [1 <$ postBuild, (+ 1) <$> responses]
+      responses <- performEventAsync $ ffor requests $ \n trigger -> void $ liftIO $ forkIO $ do
+        threadDelay $ delays n
+        trigger n
+  received <- holdDyn (0 :: Integer) responses
+  i <- input
+  let keyEvents = fforMaybe i $ \case
+        e@V.EvKey {} -> Just e
+        _ -> Nothing
+  lastKey <- holdDyn (T.pack "No key received.") (T.pack . show <$> keyEvents)
+  tellImages $ current $ ffor ((,) <$> received <*> lastKey) $ \(n, k) ->
+    [ V.vertCat
+        [ V.text' (V.withStyle (V.withForeColor V.defAttr accent) V.bold) (T.pack "  Simulated background activity")
+        , V.char V.defAttr ' '
+        , V.text' V.defAttr ((T.pack "  Events received: ") <> T.pack (show n))
+        , V.char V.defAttr ' '
+        , V.text' V.defAttr ((T.pack "  ") <> k)
+        , V.char V.defAttr ' '
+        , V.text' (V.withForeColor V.defAttr dim) (T.pack "  Type a key. q or Ctrl+C: quit")
+        ]
+    ]
+  quit
+  where
+    delays n = case (n - 1) `mod` (3 :: Integer) of
+      0 -> 300000
+      1 -> 700000
+      _ -> 500000
diff --git a/src-bin/Example/Simple.hs b/src-bin/Example/Simple.hs
new file mode 100644
--- /dev/null
+++ b/src-bin/Example/Simple.hs
@@ -0,0 +1,58 @@
+-- |
+--   Description: A five-second countdown that exits on its own, a la the
+--   Bubble Tea simple example.
+module Example.Simple (simple) where
+
+import Control.Monad.IO.Class (liftIO)
+import qualified Data.Text as T
+import Data.Time (getCurrentTime)
+import GHC.Clock (getMonotonicTimeNSec)
+import qualified Graphics.Vty as V
+import Reflex
+import Reflex.Time (tickLossyFrom')
+
+import Example.Common
+import Reflex.Vty
+
+-- | Counts down from five seconds and requests shutdown at zero. Remaining
+-- time comes from the monotonic clock at each one-second tick, so delayed
+-- processing skips expired values instead of stretching the countdown. The
+-- timer metadata from 'tickLossyFrom'' is computed before sleeping, so the
+-- first tick carries '_tickInfo_n == 0' and must not be subtracted here.
+simple :: Demo t m => m (Event t ())
+simple = do
+  postBuild <- getPostBuild
+  -- Monotonic first: the timer's UTC basis must not be earlier than the
+  -- countdown start.
+  started <- performEvent $ ffor postBuild $ \_ -> do
+    startNSec <- liftIO getMonotonicTimeNSec
+    startUTC <- liftIO getCurrentTime
+    pure (startNSec, startUTC)
+  startBehavior <- hold 0 (fst <$> started)
+  tick <- tickLossyFrom' ((\(_, utc) -> (1, utc)) <$> started)
+  -- Pair each tick with the held start time sampled in the widget monad,
+  -- where 'MonadSample' is available, then read the clock inside the
+  -- performed action.
+  remainingEvents <-
+    performEvent $
+      attachWith
+        ( \startNSec _tickInfo -> do
+            now <- liftIO getMonotonicTimeNSec
+            pure $ max 0 (5 - fromIntegral ((now - startNSec) `div` 1000000000) :: Int)
+        )
+        startBehavior
+        tick
+  remaining <- holdDyn 5 (ffilter (/= 0) remainingEvents)
+  earlyQuit <- quit
+  tellImages $ current $ ffor remaining $ \r ->
+    [ V.vertCat
+        [ V.horizCat
+            [ V.text' V.defAttr "  This program exits in "
+            , V.text' (V.withForeColor V.defAttr accent) (T.pack (show r))
+            , V.text' V.defAttr " seconds."
+            ]
+        , V.char V.defAttr ' '
+        , V.text' (V.withForeColor V.defAttr dim) "  q or Ctrl+C: quit sooner"
+        ]
+    ]
+  pure $ leftmost [earlyQuit, () <$ ffilter (== 0) remainingEvents]
diff --git a/src-bin/examples.hs b/src-bin/examples.hs
--- a/src-bin/examples.hs
+++ b/src-bin/examples.hs
@@ -8,11 +8,17 @@
 import Reflex
 import System.Environment (getArgs)
 
+import Example.CanvasDemo
 import Example.CellBuffer
 import Example.Common
 import Example.DoomFire
+import Example.Fullscreen
 import Example.Pager
+import Example.PreventQuit
+import Example.PrintKey
 import Example.Progress
+import Example.Realtime
+import Example.Simple
 import Example.Space
 import Example.Spinner
 import Example.Splash
@@ -31,9 +37,15 @@
   mainWidget def $ runExample name
 
 -- | Dispatch to a demo by name.
-runExample :: Demo t m => String -> m (Event t ())
+runExample :: (Demo t m, HasScreenMode t m) => String -> m (Event t ())
 runExample = \case
   "spinner" -> spinner
+  "prevent-quit" -> preventQuit
+  "print-key" -> printKey
+  "realtime" -> realtime
+  "simple" -> simple
+  "fullscreen" -> fullscreen
+  "canvas" -> canvasDemo
   "progress" -> progressBar
   "progress-bar" -> progressBar
   "stopwatch" -> stopwatch
diff --git a/test/Example/InteractionSpec.hs b/test/Example/InteractionSpec.hs
new file mode 100644
--- /dev/null
+++ b/test/Example/InteractionSpec.hs
@@ -0,0 +1,129 @@
+-- | Input-policy checks for the interactive gallery examples. Each test runs
+-- the real production host through the 'withApp' harness, counts the
+-- shutdown requests the example returns, and asserts the input policy. The
+-- count is observed through 'stepInput', so no frame from a stopped host is
+-- awaited.
+module Example.InteractionSpec (spec) where
+
+import qualified Graphics.Vty as V
+import Reflex
+import Test.Hspec
+
+import Example.PreventQuit (preventQuit)
+import Example.PrintKey (printKey)
+import Reflex.Vty
+  ( HasColorProfile
+  , HasCursor
+  , HasDisplayRegion
+  , HasFocusReader
+  , HasImageWriter
+  , HasInput
+  , HasScreenMode
+  , HasTheme
+  , MonadNodeId
+  , MonadVtyApp
+  , defaultVtyAppConfig
+  )
+import Reflex.Vty.Test.AppHarness
+
+-- | Runs an example in the production host. The example's returned shutdown
+-- event feeds a 'foldDyn' counter exposed as the observation; the harness's
+-- own shutdown channel stays 'never'.
+wrapExample
+  :: (forall t m. TestWidget t m => m (Event t ()))
+  -> TestApp () Int
+wrapExample widget _ = do
+  shutdown <- widget
+  count <- foldDyn (\() n -> n + 1) (0 :: Int) shutdown
+  pure (count, never)
+
+-- | Deliver an input event and return the observed shutdown count from the
+-- frame in which it took effect.
+step :: AppDriver () Int -> V.Event -> IO Int
+step d e = frameObservation <$> stepInput d e
+
+ctrlcEvent :: V.Event
+ctrlcEvent = V.EvKey (V.KChar 'c') [V.MCtrl]
+
+spec :: Spec
+spec = describe "Example.InteractionSpec" $ do
+  let cfg = defaultVtyAppConfig
+
+  describe "prevent-quit" $ do
+    it "an affirmative key before a request emits no shutdown" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        n <- step d (V.EvKey (V.KChar 'y') [])
+        n `shouldBe` 0
+        stopApp d
+
+    it "q then y emits exactly one shutdown" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        n <- step d (V.EvKey (V.KChar 'y') [])
+        n `shouldBe` 1
+        stopApp d
+
+    it "Ctrl+C opens the same confirmation and y confirms" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        _ <- step d ctrlcEvent
+        n <- step d (V.EvKey (V.KChar 'y') [])
+        n `shouldBe` 1
+        stopApp d
+
+    it "a repeated q while confirming still emits none" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        n <- step d ctrlcEvent
+        n `shouldBe` 0
+        stopApp d
+
+    it "each cancellation key blocks the next unmodified y, but Y confirms" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        mapM_
+          ( \cancel -> do
+              before <- frameObservation . last <$> driverFrames d
+              _ <- step d (V.EvKey (V.KChar 'q') [])
+              _ <- step d cancel
+              n0 <- step d (V.EvKey (V.KChar 'y') [])
+              n0 `shouldBe` before
+              _ <- step d (V.EvKey (V.KChar 'q') [])
+              n1 <- step d (V.EvKey (V.KChar 'Y') [])
+              n1 `shouldBe` before + 1
+          )
+          [ V.EvKey (V.KChar 'n') []
+          , V.EvKey (V.KChar 'N') []
+          , V.EvKey V.KEnter []
+          , V.EvKey V.KEsc []
+          ]
+        stopApp d
+
+    it "a modified y must not confirm" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        n <- step d (V.EvKey (V.KChar 'y') [V.MCtrl])
+        n `shouldBe` 0
+        stopApp d
+
+    it "an unrelated key while confirming leaves the next unmodified y able to confirm" $
+      withApp cfg (80, 8) (wrapExample preventQuit) $ \d -> do
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        _ <- step d (V.EvKey (V.KChar 'x') [])
+        n <- step d (V.EvKey (V.KChar 'y') [])
+        n `shouldBe` 1
+        stopApp d
+
+  describe "print-key" $ do
+    it "q, Escape, and Ctrl+A emit no shutdown" $
+      withApp cfg (80, 8) (wrapExample printKey) $ \d -> do
+        _ <- step d (V.EvKey (V.KChar 'q') [])
+        _ <- step d (V.EvKey V.KEsc [])
+        n <- step d (V.EvKey (V.KChar 'a') [V.MCtrl])
+        n `shouldBe` 0
+        stopApp d
+
+    it "Ctrl+C emits exactly one shutdown" $
+      withApp cfg (80, 8) (wrapExample printKey) $ \d -> do
+        n <- step d ctrlcEvent
+        n `shouldBe` 1
+        stopApp d
diff --git a/test/Spec.hs b/test/Spec.hs
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -7,6 +7,7 @@
 
 import qualified Control.Monad.NodeIdSpec
 import qualified Data.Text.ZipperSpec
+import qualified Example.InteractionSpec
 import qualified Reflex.Vty.CanvasSpec
 import qualified Reflex.Vty.ColorProfileSpec
 import qualified Reflex.Vty.ColorSpec
@@ -67,6 +68,7 @@
 spec goldenMode = do
   describe "Control.Monad.NodeIdSpec" Control.Monad.NodeIdSpec.spec
   describe "Data.Text.ZipperSpec" Data.Text.ZipperSpec.spec
+  describe "Example.InteractionSpec" Example.InteractionSpec.spec
   describe "Reflex.Vty.CanvasSpec" Reflex.Vty.CanvasSpec.spec
   describe "Reflex.Vty.ColorProfileSpec" Reflex.Vty.ColorProfileSpec.spec
   describe "Reflex.Vty.ColorSpec" Reflex.Vty.ColorSpec.spec
