11 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
a7d2876bb4
fix: standardize shell escape character to octal
URxvt requires octal for keysym while others do not and querying a
single one is easier.
2025-01-22 17:42:01 +01:00
Ben Grande
d9c45c652c
fix: remove tmux word from tmux shell 2025-01-08 16:58:37 +01:00
Ben Grande
d13a21a734
fix: avoid echo usage
Echo can interpret operand as an option and checking every variable to
be echoed is troublesome while with printf, if the format specifier is
present before the operand, printing as string can be enforced.
2024-08-06 18:12:46 +02: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
024e9c469d
fix: limit shellscript line length to 78 chars 2024-07-09 17:39:25 +02:00
Ben Grande
3c7d828fb5
fix: remove vim copy typo from tmux configuration 2024-05-23 11:49:02 +02:00
Ben Grande
822f11875b
fix: tmux script printing extraneous output 2023-12-27 15:56:24 +01:00
Ben Grande
db0d57cfcf
Initial commit 2023-11-13 14:11:21 +00:00