Bug#988383: bash: improve /etc/skel/.bashrc’s colour capability detection

2021-05-12 Thread Christoph Anton Mitterer
For (1): I guess adding just "linux" is not enough. E.g. screen sets TERM to "screen.linux", when run on the kernel console; and maybe tmux does something similar? Not sure though, whether it's good to simply add "*linux"

Bug#988383: bash: improve /etc/skel/.bashrc’s colour capability detection

2021-05-11 Thread Christoph Anton Mitterer
Oh and maybe it's better to test for more colours, e.g. "${colour_support}" -gt 8 than just 2.

Bug#988383: bash: improve /etc/skel/.bashrc’s colour capability detection

2021-05-11 Thread Christoph Anton Mitterer
Package: bash Version: 5.1-3 Severity: wishlist Hey. /etc/skel/.bashrc uses: case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac to detect whether the terminal supports a colourised prompt or not. 1) Could you please add "linux" to the list. That seems to be what the kernel