Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit function has ASCII color codes #199

Closed
roguh opened this issue Nov 29, 2018 · 1 comment
Closed

Edit function has ASCII color codes #199

roguh opened this issue Nov 29, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@roguh
Copy link

roguh commented Nov 29, 2018

I saw #13, but I'm still getting color codes around functions I edit.

Mongo shell:

mongos> function test() { return }
mongos> edit test
2018-11-29T14:29:23.279-0800 E QUERY    [js] SyntaxError: illegal character @tojs:1:7
error executing assignment: test = function test() { return }

My editor sees:

 ^[[35mfunction test() { return }^[[m

I have to strip color codes before editing if I want mongo to accept my edits. Any help would be appreciated.

@jemag
Copy link

jemag commented Mar 28, 2019

I have the same problem here. Using vim as $EDITOR

@stennie stennie self-assigned this Aug 23, 2019
@stennie stennie added this to the 0.1.0 milestone Aug 23, 2019
@stennie stennie added the bug label Aug 23, 2019
stennie added a commit to stennie/mongo-hacker that referenced this issue Aug 25, 2019
@stennie stennie closed this as completed Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants