atomontage / xterm-color

ANSI & xterm-256 color text property translator for Emacs
BSD 2-Clause "Simplified" License
214 stars 20 forks source link

Is it possible to make this work in M-x ansi-term? #2

Closed peterhadlaw closed 8 years ago

peterhadlaw commented 8 years ago

I have this working in shell but I really prefer using ansi-term. Is it possible to set this up in a way to also work there?

Thanks!

atomontage commented 8 years ago

Peter,

I started writing xterm-color as part of a bigger project (a complete VT100 terminal emulator) that I didn't get to finish. I then extracted the color handling and released xterm-color.el.

ansi-term (term.el really) does its own terminal emulation so one would need to hook into its model of doing things in order to add support for xterm 256 colors, so there's no straightforward way that I see to get xterm-color.el working on top. You'd have to add what's missing directly.

I would like to eventually finish my terminal emulator (which is a lot faster than term.el) but then I look at the stack of unfinished projects I have and confidence in me doing so evaporates :)

Chris

On Fri, 27 Nov 2015 08:41:16 -0800, Peter Hadlaw notifications@github.com wrote:

I have this working in shell but I really prefer using ansi-term. Is it possible to set this up in a way to also work there?

Thanks!


Reply to this email directly or view it on GitHub: https://github.com/atomontage/xterm-color/issues/2

peterhadlaw commented 8 years ago

Chris,

Thanks for such a quick response. I definitely feel yah on that one. Thanks for contributing this to the community, I would help with things (even at least this) but I'm relatively new to emacsen land. Maybe in the future ;)

Have a good one!

dieggsy commented 7 years ago

@peterhadlaw I sorta got 256 colors in ansi term with the help of a function from xterm-color. See post and edit 2 here: https://www.reddit.com/r/emacs/comments/6zngo4/ansiterm_256_color_hack/