hSaria / ChromaTerm

Color your Terminal with RegEx!
MIT License
188 stars 32 forks source link

Existing colors in the input are not overridden #95

Closed ciscohack closed 2 years ago

ciscohack commented 2 years ago

Environment

Hello Expert,

Chromaterm Script is not functioning properly. Today i installed cleaned chromaterm and trigger not working properly and it matches partial keywords. This is applicable for SSH/Telnet and local log files.

image

Check this IP is not fully matching and same for port and many other keywords. I thought my old config has problem so installed cleaned to test it and found it's script bug. If this could be fix would be good but don't know how much it's doable

-Praveen

ciscohack commented 2 years ago

For me, doing it manually feels like the best way, as I’ve described it in the example above. The tools online work fine, but they don’t teach you how to fish, so to speak; they just hand you the fish. On 28 Dec 2021, at 5:46 pm, ciscohack @.***> wrote:  @hSaria You said this to me "Spend some time understanding the different featuresRegex by reviewing a Regex and parsing it visually" is there any tool where i can debug the regex and see it visually. i use regex101.com and the regex i shared is working in that tool but you pin point lots of mistake so that tool is not reliable for debugging.. how can i visually see my regex in action — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.

okay to fish manually need some regex learning guide me some good resource if you have or know any.. between CT 0.9.0 is way better and smooth than all previous release thanks

ciscohack commented 2 years ago

@hSaria In latest CT i have seen this command appear randomly and console stuck for that 2s interval

image i think this is P=2s means pause for 2sec

hSaria commented 2 years ago

The interval can never be 2s,ct never prints the interval, that format isn't found anywhere in ct, and ct doesn't sleep for 2s.

Are you sure you're not using some special trigger? Can you please give more details, like how often it happens and whether it happens when connected to the same SSH server (i.e. ASA) or anywhere, even a shell without a remote connection.

Also, please start opening new issues when it's different from the current issue; this thread contains 4 different issues now.

ciscohack commented 2 years ago

The interval can never be 2s,ct never prints the interval, that format isn't found anywhere in ct, and ct doesn't sleep for 2s.

Are you sure you're not using some special trigger? Can you please give more details, like how often it happens and whether it happens when connected to the same SSH server (i.e. ASA) or anywhere, even a shell without a remote connection.

Also, please start opening new issues when it's different from the current issue; this thread contains 4 different issues now.

Nope as far as i know i am not using any special trigger and this message i only seen after upgrade. exact frequency i can't tell.

ciscohack commented 2 years ago

@hSaria Check this screenshot i do see characters like that some at the start of terminal or middle of work then this disappear own it's own

image

hSaria commented 2 years ago

Please open a new issue and include your tmux configuration so I can recreate the issue.

On 11 Jan 2022, at 8:27 am, ciscohack @.***> wrote:

 @hSaria Check this screenshot i do see characters like that some at the start of terminal or middle of work then this disappear own it's own

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.

ciscohack commented 2 years ago

@hSaria I have opened a new ticket. Thanks!

ciscohack commented 2 years ago

@hSaria Hello My friend, do you know how to setup terminal wide CT for kitty terminal as we did for iterm and hyper term like below config. can you please suggest .. i tried couple but failing

"I haven't tested Hyper.is, but I think you set shell to /usr/local/bin/ct and shellArgs to ['/bin/zsh', '--login']."

hSaria commented 2 years ago

Please read Kitty's documentation

In Kitty, open preferences (cmd + ,), paste shell /usr/local/bin/ct /bin/zsh --login, save it (i.e. :wq), then reload the config by either restarting Kitty or pressing (cmd + ctrl + ,).