Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Refactor terminal detection #232

Merged
merged 3 commits into from Jan 7, 2023
Merged

Refactor terminal detection #232

merged 3 commits into from Jan 7, 2023

Conversation

swsnr
Copy link
Owner

@swsnr swsnr commented Jan 7, 2023

Introduce a separate TerminalApp struct to abstract terminal detection separately from terminal capabilities.

Check $TERM before all other environment variables; terminal emulators always set this variable and if it's something other than xterm-256colors it's definitely accurate.

Closes #230

@swsnr swsnr self-assigned this Jan 7, 2023
@swsnr swsnr force-pushed the refactor-terminal-detection branch from ccf2595 to a1ba186 Compare January 7, 2023 10:35
@swsnr swsnr marked this pull request as ready for review January 7, 2023 10:37
@swsnr swsnr force-pushed the refactor-terminal-detection branch 2 times, most recently from 1df7c01 to cf8c831 Compare January 7, 2023 10:45
Introduce a separate TerminalApp struct to abstract terminal detection
separately from terminal capabilities.

Check $TERM before all other environment variables; terminal emulators
always set this variable and if it's something other than
xterm-256colors it's definitely accurate.

Closes GH-230
@swsnr swsnr force-pushed the refactor-terminal-detection branch from cf8c831 to eedb1f7 Compare January 7, 2023 12:40
@swsnr swsnr enabled auto-merge January 7, 2023 12:40
@swsnr swsnr merged commit a1c3b02 into main Jan 7, 2023
@swsnr swsnr deleted the refactor-terminal-detection branch January 7, 2023 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant