diff options
author | Dave Goodell <dave@goodell.io> | 2017-04-24 22:14:42 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-06-11 13:36:06 +0000 |
commit | affa6f18c87eaf430cc0bf260c54fbfe32976a5f (patch) | |
tree | abd05ecd22df083be93b00183e919ade9ceb5626 /fileset.c | |
parent | 5617527ee3831a8012f076b67e2532eeb8b1da2d (diff) | |
download | wireshark-affa6f18c87eaf430cc0bf260c54fbfe32976a5f.tar.gz |
print_stream: add a new print_line_color() method
This new interface allows printing a line with specified foreground and
background colors. The implementation avoids printing escape sequences
if the output stream is not a TTY and note that escape sequences are
ignored on Windows.
This initial implementation relies on relatively modern 24-bit color
support which is present in many terminal emulators but may not always
display properly on older or simpler emulators. Windows coloring is
handled with SetConsoleTextAttribute, which offers a "1-bit" color
experience (but it's better than nothing)
This commit is a precursor to adding additional coloring to tshark.
Bug: 5158
Change-Id: Ib2b9d800095a065a4bb60abe0550862cda5539ec
Reviewed-on: https://code.wireshark.org/review/21324
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'fileset.c')
0 files changed, 0 insertions, 0 deletions