9 Commits

Author SHA1 Message Date
Ben Grande
45a0acb222
feat: support truecolor
- Standardize capability usage with the terminfo database for
  portability. POSIX tput does declare only the basic options such as
  'init', 'reset' and 'clear', leaving the rest unspecified, that is not
  ideal but hard coding escape sequences is way worse.
- Set colorization options based on number of colors the terminal
  supports and not the TERM variable when possible. This is incomplete,
  terminal emulators may support or adapt more than it is advertised,
  but involves using DECRQSS queries and delays, as an example, 'resize'
  utility from XTerm uses 3 seconds as delay, this is worrisome.
- Term with only '-direct' variants without ending with 256 means it
  only supports direct-color indexing, therefore 'tmux-direct' cannot be
  used, but the non-multiplexer terminal 'xterm-direct256' can.
2025-03-27 11:42:50 +01:00
Ben Grande
11bc58a4dd
fix: unset local variables exported to environment 2025-02-27 15:25:16 +01:00
Ben Grande
8a6cdd5096
fix: unset global variables 2025-01-24 16:22:36 +01:00
Ben Grande
b38834d66b
fix: avoid operand evaluation as argument
Explicit end option parsing as the shell can be quite dangerous without
it.
2024-08-06 17:13:11 +02:00
Ben Grande
69c14a2429
feat: enable all optional shellcheck validations 2024-07-10 14:35:36 +02:00
Ben Grande
f94876f0f0
doc: spell check 2024-07-08 11:27:21 +02:00
Ben Grande
a179b8c878
fix: remove brackets from awk variable 2024-04-16 18:26:02 +02:00
Ben Grande
3d49981cab
feat: source X11 profiles directory 2024-02-18 14:58:57 +01:00
Ben Grande
db0d57cfcf
Initial commit 2023-11-13 14:11:21 +00:00