Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colorization for route #232

Open
codenyte opened this issue Dec 12, 2023 · 3 comments
Open

Add colorization for route #232

codenyte opened this issue Dec 12, 2023 · 3 comments

Comments

@codenyte
Copy link

Add colorization for the route command on Linux

@iax7
Copy link
Contributor

iax7 commented Dec 13, 2023

The problem with route command is that the command is a bit slow. GRC colorizes after the command exits.

TLDR; You will have no output until the command finishes. In my tests, about 17 seconds

@iax7
Copy link
Contributor

iax7 commented Dec 13, 2023

I did a quick mock up:
image

This is the file I used:

# Network DEFAULT
regexp=\bdefault\b
colours=on_green bold black
-
# IP
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=magenta
-
# Mask
regexp=(?<=255)((\.0)+)
colours=bold magenta
-
# all host
regexp=0\.0\.0\.0
colours=bright_black
-
# Flags
regexp=\b[UHGRDMAC!]+\b
colours=yellow
-
# iface
regexp=(?<=\d\s)\b[-\w\d]+$
colours=cyan

@codenyte
Copy link
Author

This is great, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants