sisterm 3.0.2

A simple terminal with syntax highlighting
## 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])"]