-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.toml
126 lines (104 loc) · 3.15 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
## This is the configuration file for the sisterm
##
## Its syntax is similar to Perl-style regular expressions, but lacks a few
## features like look around and backreferences.
## For more specific details on the API for regular expressions, please see
## the documentation for the Regex(https://docs.rs/regex) type.
##
## [[colorings]]
## color = "String" # required
## regex = "String" # required
## underlined = Boolean # option
## ignore_whitespace = Boolean # option
##
## Color example
## * RED [Uppercase]
## * 001 [Decimal number]
## * FF0000 [Hexadecimal]
## * #FF0000 [Hexadecimal]
## * (255, 0, 0) [Decimal number]
##
## Predefined colors
## * BLACK
## * RED
## * GREEN
## * YELLOW
## * BLUE
## * MAGENTA
## * CYAN
## * WHITE
##
## Specify default serial port
#port = "/dev/ttyS0"
## Specify default baud rate
#speed = "9600"
## Specify default Send '\r' instead of '\n'
#instead_cr = true
## Specify read buffer size
#read_buf_size = 16
## Specify TCP connect timeout
#tcp_connect_timeout = 5
## Enable timestamp by default
#timestamp = true
## Specify timestamp format
## See below for detailed documentation
## https://docs.rs/chrono/0.4.11/chrono/format/strftime/index.html
#timestamp_format = "[%Y-%m-%d %H:%M:%S %Z] "
## Auto save log
#auto_save_log = true
## Specify log file name format
## See below for detailed documentation
## https://docs.rs/chrono/0.4.11/chrono/format/strftime/index.html
#log_format = "%Y%m%d_%H%M%S.log"
## Destination folder for log file
#log_destination = "./"
## Debug mode
## Display all byte characters
#debug = false
## Terminal type to be reported to the host when the telnet connection is established.
## e.g. ansi, vt100, vt200, xterm, xterm-256color
#terminal_type = "xterm"
##############################
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
#_/_/ SAMPLE COLORINGS _/_/#
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
##############################
## comments
[[colorings]]
color = "(128, 150, 200)"
regex = ["(//.*)|(/\\*.*\\*/)|(/\\*.*)"] # C style
ignore_whitespace = true
## positive
[[colorings]]
color = "GREEN"
regex = ["(?i)yes|up|enable|enabled|active(?-i)"]
## string
[[colorings]]
color = "184"
regex = ["(\".*\")|('.*')|(\".*)|('.*)"]
ignore_whitespace = true
## emphansis
[[colorings]]
color = "MAGENTA"
regex = ["not?|confirm|warning|warnings|failed|failures|errors?|crash"]
## interface
[[colorings]]
color = "CYAN"
regex = ["(([Tt]engigabit|[Gg]igabit|[Ff]ast)?[Ee]thernet|[Ff]a|[Gg]i)\\d+/\\d+"]
## negative
[[colorings]]
underlined = true
color = "RED"
regex = ["unassigned|disable|disabled|deny|shutdown|down|administratively|none"]
## ipv4_net
[[colorings]]
color = "YELLOW"
regex = ["([^0-9]|^)(2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[1-8])\\.((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])"]
## ipv4_sub
[[colorings]]
color = "BLUE"
regex = ["((25[0-5]|24[89])\\.)((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])"]
## ipv4_wild
[[colorings]]
color = "MAGENTA"
regex = ["(0\\.)((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])"]