Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Certain regex pattern gives strange output #81

Closed
Enf0 opened this issue Feb 5, 2020 · 5 comments
Closed

Certain regex pattern gives strange output #81

Enf0 opened this issue Feb 5, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Enf0
Copy link
Contributor

Enf0 commented Feb 5, 2020

The regex pattern in question:
^([^$#(]+)(\$|#|\([^)]+\)#)

Expected output:
xxUser123@server-001:~$
Actual output:
0;xxUser123@server-001: ~xxUser123@server-001:~$

Any idea why this is happening? Is there something wrong with the regex, or could it be a bug with Chromaterm?

@hSaria
Copy link
Owner

hSaria commented Feb 5, 2020

I cannot seam to reproduce this. Which version of ChromaTerm are you running?

image

@hSaria hSaria added the invalid This doesn't seem right label Feb 5, 2020
@Enf0
Copy link
Contributor Author

Enf0 commented Feb 6, 2020

Very strange. Might be something wrong with my shell?
image

Chromaterm 0.5.7.

@hSaria
Copy link
Owner

hSaria commented Feb 6, 2020

I would imagine this is matching some value in the PS1 of the server. Would you mind running

ssh server | tee pre.txt | ct | tee post.txt

and attaching pre.txt as well as post.txt (feel free to remove anything sensitive in the files).

@hSaria hSaria removed the invalid This doesn't seem right label Feb 6, 2020
@Enf0
Copy link
Contributor Author

Enf0 commented Feb 6, 2020

pre.txt
post.txt

@hSaria hSaria closed this as completed in 742ca93 Feb 6, 2020
@hSaria
Copy link
Owner

hSaria commented Feb 6, 2020

CT was not ignoring Operating System Command (OSC) codes, which include setting the title. This has been fixed now and will be published in v0.5.8 soon. Thanks a lot for your help with this :)

@hSaria hSaria added the bug Something isn't working label Feb 6, 2020
hSaria added a commit that referenced this issue Dec 28, 2021
hSaria added a commit that referenced this issue Dec 28, 2021
hSaria added a commit that referenced this issue Dec 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants