Skip to content

shell.l: Set the TERM env. variable if does not exist.#34

Merged
sanbee merged 1 commit into
masterfrom
template_refact
Apr 3, 2026
Merged

shell.l: Set the TERM env. variable if does not exist.#34
sanbee merged 1 commit into
masterfrom
template_refact

Conversation

@sanbee
Copy link
Copy Markdown
Owner

@sanbee sanbee commented Apr 3, 2026

The only change is to Sset the TERM env variable if it does not exist in the scanner function shell.l::inp_readline() function.. readline() call seg. faults if TERM env variable does not exist. readline() (perhaps due to terminfo) is robust to the value of the TERM variable -- a blank seems sufficient for it to figure out the capabilities of the terminal (at least it does not seg. fault).

@sanbee sanbee merged commit fa9c9c7 into master Apr 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant