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

ANSI escape sequences other than color #350

Closed
mdietrich16 opened this issue Jul 7, 2019 · 8 comments · Fixed by #616
Closed

ANSI escape sequences other than color #350

mdietrich16 opened this issue Jul 7, 2019 · 8 comments · Fixed by #616
Labels
Milestone

Comments

@mdietrich16
Copy link

I am using the jupyter qtconsole through spyder, but I have tested the following in a standalone console aswell.

I know that certain ANSI escape sequences are being parsed, like simple colors and TrueColors, but is it possible to use stuff like '\027[A' (cursor up) or implement it myself?

I'm not very profound in stuff like this, but if I could get a little nudge in the right direction I might be able to at least help myself if it is not overly complicated and hard to pull off.

Oh, and I saw that line 27 in ansi_code_processor.py actually says
# FIXME: Not implemented in AnsiCodeProcessor.

So do you just need people or good ideas, because I would happy to fix the first :)

@ccordoba12
Copy link
Collaborator

We need people, so you're more than welcome to help us to improve this.

@wmvanvliet
Copy link
Contributor

PRs are always welcome!

@mdietrich16
Copy link
Author

Well, seeing that I have never worked with the intrinsics of this project, I would need some pointer as to what and where to look to try to improve this, as I said. But other than the first steps, happy to help!

@sylvain-bougnoux
Copy link
Contributor

Yes, same for erase line, eg:
print('Hello','\x1b[2K\rBye')
Should print 'Bye' and not 'Byelo'.
It does work on a windows terminal (both with python & ipython).

@ma-sadeghi
Copy link

Can I ask what's the status of this issue? Is it hard to fix?

@ccordoba12
Copy link
Collaborator

It shouldn't be too hard to fix, we just haven't had time to sit down and do it.

@ma-sadeghi
Copy link

Could you please give me some pointers so I can take a crack at it? I don't know where to start.

@ccordoba12
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants