Skip to content

Set TERM to dumb by default#283

Merged
eldipa merged 3 commits intomasterfrom
Issue-282-Set-TERM-dumb
Mar 18, 2026
Merged

Set TERM to dumb by default#283
eldipa merged 3 commits intomasterfrom
Issue-282-Set-TERM-dumb

Conversation

@eldipa
Copy link
Copy Markdown
Collaborator

@eldipa eldipa commented Mar 17, 2026

Closes #282

@eldipa eldipa self-assigned this Mar 17, 2026
@eldipa eldipa added the bug out of sync between the code and the docs; something that should be fixed in the near future label Mar 17, 2026
@eldipa eldipa force-pushed the Issue-282-Set-TERM-dumb branch 6 times, most recently from 15b7d83 to b719ef6 Compare March 17, 2026 14:09
@eldipa eldipa force-pushed the Issue-282-Set-TERM-dumb branch from b719ef6 to b533c50 Compare March 17, 2026 14:24
Different interpreters may behave in a simpler way
(no fancy terminal escape code, no colors, no cursor movements)
if they detect that the terminal does not support it.

For this, the TERM env var is used and traditionally,
the "dumb" terminal signals the simplest terminal possible.

This change may break tests if they relay on having a different
TERM. For example, in executing `less` in bash (shell language)
will emit an ugly warning because the terminal is not functional.

More:
- feat: add +term-type to control TERM env (for all interpreters, like +geometry)
- fix: term emulation's tests
- doc: the new +term-type and how to run a test as in prev versions
@eldipa eldipa force-pushed the Issue-282-Set-TERM-dumb branch from b533c50 to d563072 Compare March 18, 2026 13:36
@eldipa eldipa merged commit 9b56d8e into master Mar 18, 2026
8 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug out of sync between the code and the docs; something that should be fixed in the near future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python language is broken for Python 3.13 due unmanaged escape control sequences

1 participant