Coder Social home page Coder Social logo

chromaterm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chromaterm's Issues

Too much output too fast causes the terminal to lock up

I have been using Chromaterm to colorize Java based logging output from a ssh'd server. Usually this is just standard tailing which works fairly well. However, from time to time I find that when too much output gets rendered to quickly, the text output stops randomly and the whole terminal gets locked up.

I am using updated Linux Mint 17 on my workstation, and "C H R O M A T E R M 0.01.0" (looks like it is the latest version).

Here is my config:

$ cat ~/.chromatermrc 
#config regex on
#event {SESSION CONNECTED} {#session ssh}
#event {SESSION DISCONNECTED} {#end}

#highlight {{\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}}} {bold yellow}
#highlight {{[a-zA-Z0-9-._]*\.(com|net|org)}} {bold yellow}

#highlight { any } {white}
#highlight {{permit(ted)*}} {bold green}
#highlight {{(d|D)eny}} {bold red}
#highlight {{ (E|e)rr..}} {bold white}
#highlight {INSIDE} {bold blue}
#highlight {OUTSIDE} {bold green}
#highlight {DMZ} {bold magenta}

#substitute {^Cisco %1 Version %2, %3} {Cisco %1 <134>Version %2<088>, %3}
#substitute {%1pkts encaps: %d, %3} {%1pkts encaps: <150>%2<088>, %3}
#substitute {%1pkts decaps: %d, %3} {%1pkts decaps: <120>%2<088>, %3}
#substitute {%1 uptime is %2} {%1 uptime is <150>%2<088>}

#highlight {{.*INFO .*}} {green}
#highlight {{.*WARN .*}} {yellow}
#highlight {{.*ERROR .*}} {red}

#highlight {{^20\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d}} {blue}
#highlight {{^\d\d/\d\d/\d\d \d\d:\d\d:\d\d}} {blue}

#highlight {{.*(Except(ion)?|Error).*}} {red}
#highlight {{\W*at [^(]*\([^)]*\)}} {red}
#highlight {{^Caused by: .*$}} {red}
#highlight {{\W*... \d* more$}} {red}
  • Use the following command to ssh: ct -Ge "#run {ssh} {ssh <server>}"
  • On the server, cat a really large file
  • Notice that eventually the output stops, and the terminal freezes and is unresponsive

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.