2025-03-14 20:15:11 +00:00
|
|
|
#include "foot-features.h"
|
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
|
|
const char version_and_features[] =
|
|
|
|
|
"version: " FOOT_VERSION
|
|
|
|
|
|
|
|
|
|
#if defined(FOOT_PGO_ENABLED) && FOOT_PGO_ENABLED
|
|
|
|
|
" +pgo"
|
|
|
|
|
#else
|
|
|
|
|
" -pgo"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
|
|
|
|
|
" +ime"
|
|
|
|
|
#else
|
|
|
|
|
" -ime"
|
|
|
|
|
#endif
|
|
|
|
|
|
Add an optional build-time switch to disable scrollback support
This change introduces a new `scrollback` Meson build option (enabled
by default) that lets foot be compiled without scrollback history.
When the option is off, `FOOT_HAVE_SCROLLBACK` is left
undefined and the relevant code is excluded from the build,
producing a slimmer terminal for use cases that do not need it.
With scrollback disabled:
- The `[scrollback]` section in `foot.ini` and its key bindings
become no-ops.
- In-terminal search is removed,
along with the "pipe scrollback" action, the scrollback indicator,
and their colors/overlays.
- IME hooks for the search box, mouse-wheel scrollback handling,
and related `terminal` state are compiled out.
- Selection auto-scroll (the timer that scrolls the viewport while
a drag-selection extends past the visible area) is removed,
since with no scrollback there is nowhere to scroll to.
The associated function declarations,
`enum selection_scroll_direction`,
the `auto_scroll` field on `terminal::selection`,
and their init/teardown sites are all excluded from the build.
To keep action enumerations stable across build configurations,
two range markers (`BIND_ACTION_PIPE_FIRST` / `BIND_ACTION_PIPE_LAST`)
are introduced so that pipe-action handling does not depend on
`PIPE_SCROLLBACK` being present. The build summary and
`foot --version` now report `+scrollback` or `-scrollback`,
and the config tests have been updated to account for optional section.
2026-05-15 15:51:01 +10:00
|
|
|
#if defined(FOOT_HAVE_SCROLLBACK)
|
|
|
|
|
" +scrollback"
|
|
|
|
|
#else
|
|
|
|
|
" -scrollback"
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-03-14 20:15:11 +00:00
|
|
|
#if defined(FOOT_GRAPHEME_CLUSTERING) && FOOT_GRAPHEME_CLUSTERING
|
|
|
|
|
" +graphemes"
|
|
|
|
|
#else
|
|
|
|
|
" -graphemes"
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-11-12 11:04:25 +01:00
|
|
|
#if defined(HAVE_XDG_TOPLEVEL_TAG)
|
|
|
|
|
" +toplevel-tag"
|
|
|
|
|
#else
|
|
|
|
|
" -toplevel-tag"
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-10-16 13:43:33 +02:00
|
|
|
#if defined(HAVE_EXT_BACKGROUND_EFFECT)
|
|
|
|
|
" +blur"
|
|
|
|
|
#else
|
|
|
|
|
" -blur"
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-03-14 20:15:11 +00:00
|
|
|
#if !defined(NDEBUG)
|
|
|
|
|
" +assertions"
|
|
|
|
|
#else
|
|
|
|
|
" -assertions"
|
|
|
|
|
#endif
|
|
|
|
|
;
|