Terminal Colour stripped when filtering with grep and host uses custom options
eyehearttech opened this issue · 0 comments
eyehearttech commented
I have found that when I use grep to filter the storm list output, by bash terminal looses the previous terminal colour when it encounters a host entry that uses custom options (for example specifying deprecated ciphers for legacy equipment) and falls back to grey colour.
Is this an minor issue with storm ssh or just a known bug with bash/grep (likely)?
The command I use which is triggering this is:
storm list | grep HOST
An example of a .ssh/config entry that causes this when I use the following:
Host HOST
hostname hostname
user admin
port 22
ciphers aes256-cbc
My system is fully up-to-date, however I am running Ubuntu 19.04 and the below list is my venv (pytools) pip3 module list used for storm ssh:
(pytools) host:~$ pip3 list
Package Version
------------- ---------
asn1crypto 0.24.0
bcrypt 3.1.7
certifi 2019.9.11
cffi 1.12.3
chardet 3.0.4
Click 7.0
cryptography 2.7
Flask 1.1.1
idna 2.8
itsdangerous 1.1.0
Jinja2 2.10.1
MarkupSafe 1.1.1
netaddr 0.7.19
paramiko 2.6.0
passlib 1.7.1
pip 18.1
pkg-resources 0.0.0
pycparser 2.19
PyNaCl 1.3.0
pynetbox 4.0.7
requests 2.22.0
setuptools 40.8.0
six 1.12.0
storm 0.21
stormssh 0.7.0
termcolor 1.1.0
urllib3 1.25.5
Werkzeug 0.16.0
wheel 0.33.6