14 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
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
4a8aa80c2e
fix: remove timestamp from Zsh history
When HISTFILE is shared with Bash, the shell doesn't know how to
interpret timestamp.
2024-12-03 11:32:09 +01:00
Ben Grande
f9457092ea
fix: remove end of options from compinit 2024-08-12 16:47:52 +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
024e9c469d
fix: limit shellscript line length to 78 chars 2024-07-09 17:39:25 +02:00
Ben Grande
5936b2059c
chore: editorconfig check 2024-07-08 19:59:27 +02:00
Ben Grande
23f4e79587
fix: zsh history share 2024-05-21 11:04:42 +02:00
Ben Grande
9954972df3
fix: POSIX does not support head byte count
Test done on OpenBSD for compatibility with the POSIX specification,
also becoming a new supported system.
2024-04-23 18:34:10 +02:00
Ben Grande
50e80029b3
feat: add tool to resize terminal size
Inspired by the Archlinux Wiki. The Arch Wiki does not provide a
copyrights page, it is therefore hard to credit the contributors

Recent commit c6de5e8046d4965fde910ee3b0c9c0709899609c is 7 years old,
with reference to $wgRightsPage. Individual contributors can't be
referenced but there is credit to the specific page in the Arch wiki.

https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/archwiki/templates/LocalSettings.php.j2
2024-03-07 17:38:45 +01:00
Ben Grande
3a7398fdb4
fix: remove duplicate files
They were symlink before, on a wrong copy, it was converter to regular
files.
2024-02-23 16:45:13 +01:00
Ben Grande
db0d57cfcf
Initial commit 2023-11-13 14:11:21 +00:00