Skip to main content
  • Log in
  • Manage Cookies
Eclipse Plugins, Bundles and Products - Eclipse Marketplace
  • My Marketplace
  • Add Content
  • More
      • Community

      • Marketplace
      • Events
      • Planet Eclipse
      • Newsletter
      • Videos
      • Blogs
      • Participate

      • Report a Bug
      • Forums
      • Mailing Lists
      • Wiki
      • IRC
      • Research
      • Eclipse IDE

      • Download
      • Learn More
      • Documentation
      • Getting Started / Support
      • How to Contribute
      • IDE and Tools
      • Newcomer Forum
    • Search

  1. Home
  2. Marketplace
  3. Tools
  4. ANSI Escape in Console

Please be aware that some listings have been temporarily delisted from our marketplace in order to improve the security of the platform. We apologize for any inconvenience this may caused.

For more information on this matter, please visit #1.

If you are a listing owner and would like to have your listing(s) reinstated, please open a ticket at https://gitlab.eclipse.org/eclipsefdn/it/websites/marketplace.eclipse.org/-/issues.

Thank you for your understanding and cooperation.

ANSI Escape in Console

ANSI Escape in Console
444
38
Install

Drag to Install!

Drag to your running Eclipse* workspace.
*Requires Eclipse Marketplace Client

Add this URL to your Eclipse Installation to reach this solution's update site.

2022-06 (4.24)
2022-03 (4.23)
2021-12 (4.22)
2021-09 (4.21)
2021-06 (4.20)
2021-03 (4.19)
2020-12 (4.18)
2020-09 (4.17)
2020-06 (4.16)
2020-03 (4.15)
2019-12 (4.14)
2019-09 (4.13)
2019-06 (4.12)
2019-03 (4.11)
2018-12 (4.10)
2018-09 (4.9)
Photon (4.8)
Oxygen (4.7)
Neon (4.6)
Mars (4.5)
Luna (4.4)

https://www.mihai-nita.net/eclipse

Learn more...

Screenshot 0

Screenshot 1

Screenshot 2

Details Group Tabs

Details

This plugin is not needed starting with Eclipse 2022-09 (4.25)

From Eclipse 2022-09 the official Eclipse Console supports ANSI escape sequences:
https://www.eclipse.org/eclipse/news/4.25/platform.php#debug-ansi-support

I will keep this plugin up and running for older Eclipse versions, until the number of downloads trickles down to almost nothing.

Description

This Eclipse plugin interprets the ANSI escape sequences to color the console output. It works for output text with escape sequences directly from Java, Groovy, C/C++, Perl, Python, or any other Eclipse hosted language that outputs text to the standard output or standard error.

Supports 16 colors / 256 colors / true-colors for foreground and background, color palettes and attributes like bold, italic, underline, invert, conceal, strike, framed.

Unfortunately nothing that changes the content of the output (erase actions), or cursor positioning, because of the way the Eclipse console works.

See https://github.com/mihnita/ansi-econsole/wiki
Release notes: https://github.com/mihnita/ansi-econsole/wiki/Release-Notes
Standard ANSI escape codes: https://en.wikipedia.org/wiki/ANSI_escape_code

And it is open source: https://github.com/mihnita/ansi-econsole
That’s where you can file a bug, ask for a feature, contribute a fix, or just say hi.

Categories:
  • General Purpose Tools,
  • IDE,
  • Tools
Tags:
  • ansi,
  • color,
  • console,
  • colour
Additional Details
Eclipse Versions: 
2022-06 (4.24), 2022-03 (4.23), 2021-12 (4.22), 2021-09 (4.21), 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4)
Platform Support: 
Windows, Mac, Linux/GTK
Organization Name: 
Mihai Nita
Development Status: 
Production/Stable
Date Created: 
Tue, 2014-04-01 01:25
License: 
Apache 2.0
Date Updated: 
Wed, 2022-09-14 05:22
Submitted by: 
Mihai Nita
Screenshots
Screenshot 0
Screenshot 1
Screenshot 2
Metrics
DateRankingInstallsClickthroughs
March 202388/685578 (0.16%)10
February 202387/668549 (0.16%)16
January 202384/677568 (0.16%)14
December 202281/805590 (0.17%)24
November 202285/808694 (0.18%)10
October 202275/811780 (0.21%)23
September 202261/8121045 (0.26%)26
August 202256/8081046 (0.29%)39
July 202259/816921 (0.25%)33
June 202263/8101018 (0.26%)23
May 202263/8101034 (0.24%)29
April 202253/8171305 (0.31%)31
View Data for all Listings
Errors

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)
External Install Button

Marketplace Drag to Install button

By adding the following code below to your website you will be able to add an install button for ANSI Escape in Console.

HTML Code:


Markdown Syntax:



Output: Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client
Thursday, March 30, 2023 - 04:14

Reviews Sign in to post reviews

jcostademoya's picture

good job!

Submitted by Jose antonio Costa de moya on Sun, 2022-03-20 08:30

Thanks for your plugin, is very useful for works with rlutil.

 

jpalmerf27's picture

Navigation in Console

Submitted by Jeff Palmer on Wed, 2020-04-15 22:03

I find that navigation via the keyboard is slow.  Especially when a scroll is involved.

Thoughts?

skashihara's picture

Re: Navigation in Console

Submitted by Shinji Kashihara on Mon, 2021-11-08 01:21

Console hang issue and slow performance on Windows
https://github.com/mihnita/ansi-econsole/issues/66

mnita's picture

Re: Navigation in Console

Submitted by Mihai Nita on Sat, 2020-12-12 23:36

It might be this:
https://github.com/mihnita/ansi-econsole/issues/27

Meantime I've put a lot of work on performance, and at this point the performance with the plugin uninstalled / disabled / enabled are very similar, for both light / dark themes.

Trouble is, Eclipse is slow, and is getting worse.

With 2020-09 the performance of Light mode got as slow as the Dark one.
Eclipse 2020-12 adds a new Console setting, "word wrap",  more than 20 times slower for some use cases (like the code from youngm, Dec 2018).

I've added some checks and if the Console settings are known to be performance bottlenecks I warn, and explain where to change them.
I don't have the right to change them myself, as they don't belong to my plugin.

But increassing the buffer size helps (Preferences -- Run/Debug -- Console -- Limit console outpout).
Using 1 million feels a lot better (the default is 80K)

cmosertyf's picture

Love your pluggin, I'm interested in doing more.

Submitted by Chris Moser on Fri, 2020-01-31 01:43

Hi, I'm a high school computer science student in a Java programming class right now. I stumbled upon your pluggin after my teacher said that using colors in the terminal was "impossible". Anyway I love your pluggin, I'm using it to do some cool stuff with ASCII art. I've started to look into ANSI escape sequences, and it looks like there are a lot of cool commands, other than just colors, such as clearing the screen. Now I don't know if it'd be possible to run such a sequence, I've only been coding for 8 weeks. Everytime I've tried to so far to run the clear screen sequence I haven't been sucessful. I was wondering if your pluggin is capable of running these other ANSI sequences. If it's not, I'd be interested in how I could go about making my own pluggin that interfaces between the terminal and the other ANSI sequences. I apologize in advance for my ignorance, thank you for your time. If you would be so kind as to email me, my email is:

christopher.moser@mullenmail.com

mnita's picture

Re: Love your pluggin, I'm interested in doing more.

Submitted by Mihai Nita on Sat, 2020-02-01 12:34

I've answered Christopher by email.

But the gist was: I don't think it is possible to implement the complete set of ANSI commands on top of the existing Eclipse Console.
Maybe a couple of things like erase from begin / to end of line / document. Character positioning and changing there would probably be too messy.

But it might be possible to take the TM terminal plugin and either replace the default console with it, or have a way to run applications run in it.

mszwejkowski's picture

works beautifully!

Submitted by Michał Szwejkowski on Tue, 2019-11-12 16:32

Nothing to add. Works marvelous. If you observe washed colors in Windows (against vivid in the Windows 10 command prompt) you can switch color palette in preferences. I observe xterm as closest to these in command prompt

spaskewitz's picture

No longer displaying the StackTrace hyperlinks in blue

Submitted by Scott Paskewitz on Mon, 2019-06-24 09:48

I love the pluggin, works great, except for 1 small issue.

With ANSI Escape in Console enabled the blue underlining for the stack trace hyperlinks no longer show up.  You can still click on the text and it will take you to the spot in the code but new users do not know it is clickable because it is no longer blue or underlined like it is by default when ANSI Escape in Console is not enabled.

Is there a way to have the blue underlining still display properly via ANSI Escape in Console?  I tried to add ANSI formatting around it but that breaks the hyperlink. 

mnita's picture

Re: No longer displaying the StackTrace hyperlinks in blue

Submitted by Mihai Nita on Sat, 2020-02-01 12:36

Fiexd!!! A bit messy, but worth it :-)

Cheers,
Mihai

mnita's picture

Re: No longer displaying the StackTrace hyperlinks in blue

Submitted by Mihai Nita on Thu, 2020-01-23 20:38

https://github.com/mihnita/ansi-econsole/issues/32

And I think I have some way to fix that...

mnita's picture

Re: Re: No longer displaying the StackTrace hyperlinks in blue

Submitted by Mihai Nita on Sat, 2020-12-12 23:38

Should be fixed since v1.4.0

fmelot's picture

Essential but not working with latest version

Submitted by Florian Melot on Wed, 2019-06-19 08:51

I'm using it since neon and it just essential. Log is really annoying to read it and it allow to glance at console.

With the latest version of eclipse (2019-03), I cannot change configuration for Ansi Console. In neon, a button at the right of disable/enable plugin opened configuration window. Do you know where is the configuration window ?

mnita's picture

Re: Essential but not working with latest version

Submitted by Mihai Nita on Sat, 2020-02-01 12:41

Did you manage to solve this?

I've tested the latest version from mars (2015) to latest Eclipse.
Did it on Linux (2 distros), Win 10, and Mac OS.

Should be fine.

There is a small bug where the icon is enabled when you start Eclipse even if in fact the plugin is disabled.
But the status is actually preserved, it starts the way it was when exiting Eclipse. It is just the indicator that is wrong.
I have a bug opened for it, and I'm trying to solve it, because I find it anoying too (even if I almost never disable the plugin :-).

Regards,
Mihai

 

mnita's picture

Re: Essential but not working with latest version

Submitted by Mihai Nita on Wed, 2019-08-28 16:02

Over the last few days I've tested it on:

  • Eclipse 4.12 (2019-06)
  • Eclipse 4.11 (2019-03)
  • Eclipse 4.10 (2018-12)
  • Eclipse 4.9 (2018-09)
  • Eclipse 4.8 (Photon)

All of this combined with all platforms: Linux, Mac OS, and Windows
Did it on x64 platforms only, I don't have anything x32 anymore, sorry.

And it worked everywhere.
The enable / disable button is the same place as before, the top-right of the Console window, and I checked that it works.

I am quite sure I have no breaking changes, to it should (in theory) work all the way back to at least Neon (2016-06), but didn't test.

------------------------

"a button at the right of disable/enable plugin opened configuration window"

I never noticed this before. I do nothing in the plugin code to add such a button.
So I suspect that Eclipse was doing "some magic" to add it.
And maybe that "magic" was removed in 2019-something.

I have always accessed the configuration by going to Windows -- Preferences -- Ansi Console

Thank you,
Mihai

 

mmisingnamek75's picture

Enormously Useful!!!

Submitted by Missing name Mising name on Sun, 2019-06-09 09:14

This plugin is enormously useful. I really think it should be installed by default in every new Eclipse release!

spaskewitz's picture

No longer displaying the StackTrace hyperlinks in blue

Submitted by Scott Paskewitz on Tue, 2019-04-09 12:22

I love the pluggin, works great, except for 1 small issue.

With ANSI Escape in Console enabled the blue underlining for the stack trace hyperlinks no longer show up.  You can still click on the text and it will take you to the spot in the code but new users do not know it is clickable because it is no longer blue or underlined like it is by default when ANSI Escape in Console is not enabled.

Is there a way to have the blue underlining still display properly via ANSI Escape in Console?  I tried to add ANSI formatting around it but that breaks the hyperlink. 

mnita's picture

Re: No longer displaying the StackTrace hyperlinks in blue

Submitted by Mihai Nita on Sat, 2020-02-01 12:41

Fixed!!! (Jan 2020 :-)

 

cwolfv10's picture

Works great! Thanks for

Submitted by Christopher Wolf on Wed, 2019-02-20 16:57

Works great! Thanks for releasing and maintaining this!

mnita's picture

Re: Works great! Thanks for

Submitted by Mihai Nita on Tue, 2019-02-26 13:21

Glad that you like it :-)

Mihai

abarranco's picture

Can't install on Eclipse 2018-12 (4.10.0)

Submitted by André Barranco on Mon, 2019-02-04 21:06

When I drag and drop the install button on my Workspace all I get is a blank (standard) Eclipse Marketplace window opened.

I know it omits 4.10 support, but I know the Spring Tool Suite based on Eclipse 4.10 has it, so I thought I'd manage to get it working.

mnita's picture

Re: Can't install on Eclipse 2018-12 (4.10.0)

Submitted by Mihai Nita on Thu, 2019-03-07 04:51

Unfortunately it does not always happen, is pretty rare, so it is hard to debug :-(

Can you please give it another try? I have uipdated the URL, making sure it does not end up in a redirect.

And I made sure to set the falg that Eclipse 4.10 is supported (it worked without changes, it was only a setting in the Marketplace)

Sorry for the troubles,
Mihai

aunkrig's picture

Sweet!

Submitted by Arno Unkrig on Thu, 2019-01-10 04:29

Now the logging of my SPRING BOOT application is no longer scrambled with ANSI control characters. Exactly what I wanted.

The plugin appears to modify the standard console view, instead of adding a new view. No need to (re)configure anything.

drobinsonnd5's picture

Site not reached

Submitted by Daniel Robinson on Mon, 2018-10-01 19:51

I get this error:

Unable to read repository at http /www.miha i-nita.net/ eclipse/content.xml.
Received fatal alert: internal_error

Eclipse IDE for C/C++ Developers, with WICED SDK 3.4.0

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

drobinsonnd5's picture

Re: Site not reached

Submitted by Daniel Robinson on Tue, 2018-10-02 10:39

I switched to a different version of Eclipse and was able to install from the Marketplace to that version's plugins directory.

I copied the JAR file to the plugins directory of the version that failed to load and it works.

There appears to be a version incompatibility between the version of Eclipse used by Cypress and the Marketplace (at least for this package.)

asolovjevqet's picture

Multiline coloring doesn't work properly

Submitted by Andrey Solovjev on Sun, 2018-08-05 05:05

Does not work properly with multiline coloring. I have about 30 lines of output from c++. Let's say the line 10 is the sequence of red color. Then 3 lines that should be red and the code for restoring the default color in the end of the third line. Other lines should have default color. With such output I've got red in different places while scrolling the eclipse's terminal. Sometimes red are first 10 lines, sometimes last part of the text. May be the plugin works only if setting and restoring sequences are localized in the same line?

Oxygen.3a Release (4.7.3a)

mnita's picture

Re: Multiline coloring doesn't work properly

Submitted by Mihai Nita on Fri, 2018-08-10 18:20

Unfortiunately, a known problem, and one that I don't really think I can solve.
https://github.com/mihnita/ansi-econsole/issues/3

It is a limitation in the Eclipse console itself: my plugin only get a line at the time, and when the console buffer gets full the top lines are dropped, the line numbers change, and all context is lost. So when coloring the current line there is no way to know what was set X lines above :-(

I am also anoyed by this bug, I have some idea. But is very hacky, but it might also mess up the performance.

Sorry,
Mihai

 

mnita's picture

Re: Re: Multiline coloring doesn't work properly

Submitted by Mihai Nita on Sat, 2020-12-12 23:39

Should be fixed since v1.4.0 (Jan 2020)

sasadi's picture

does not work in Mac OS High Sierra

Submitted by Sepideh Asadi on Fri, 2017-10-20 08:45

Could you notify us whenever you have a new release of "ANSI Escape in Console" for Mac OS High Sierra?

I am using Eclipse C++ in Mac OS High Sierra. It seems this pluging removed a part of messages in the console. 

s_asadi83[at]yahoo.con

rcarrm45's picture

Won't render ANSI color text on Mac OS High Sierra (Public Beta)

Submitted by Rory Carr on Thu, 2017-07-06 17:48

Spring Boot applications that log using ANSI color codes won't display on the eclipse console. If the text is copied from the console to another app (say Terminal), you can read all the text. It is as though  the text is rendered in the same color as the background color of the conole.

mnita's picture

Re: Won't render ANSI color text on Mac OS High Sierra

Submitted by Mihai Nita on Tue, 2019-02-26 13:24

Works now.
This looked like a system / SWT problem. Fixed meantime (by Mac OS or Eclipse, I don't know)

mnita's picture

Re: Won't render ANSI color text on Mac OS High Sierra

Submitted by Mihai Nita on Tue, 2017-10-03 02:28

This seems to be a system / SWT problem.
Bug opened, https://bugs.eclipse.org/bugs/show_bug.cgi?id=525383

aamfistomos's picture

Re: Won't render ANSI color text on Mac OS High Sierra

Submitted by Atlas Amfistomos on Wed, 2017-09-27 09:26

Still occurs with Mac OS High Sierra official release...

mnita's picture

Re: Re: Won't render ANSI color text on Mac OS High Sierra

Submitted by Mihai Nita on Tue, 2017-10-03 02:29

This seems to be a system / SWT problem.
Bug opened, https://bugs.eclipse.org/bugs/show_bug.cgi?id=525383

hsengupta's picture

Cannot Install

Submitted by Himadri Sengupta on Tue, 2016-12-13 05:07

Cannot Install. Facing error
"Unable to read repository at http-www mihai-nita net -eclipse-content xml
peer not authenticated"

Can anyone look into this Please..

vmisingnamekvr's picture

ANSI-coloring during build ROS groovy projects?

Submitted by Valery Mising name on Fri, 2014-09-26 06:32

Hi, is it possible to turn on also ANSI-coloring during build in build console for ROS groovy projects?
For some reason it is not ANSI-colored here (Eclipse 4.4)

mnita's picture

ANSI-coloring during build ROS groovy projects?

Submitted by Mihai Nita on Tue, 2014-09-30 23:59

Sorry, I don't have an Ubuntu installed (just Win and Fedora).
I have found a VM, and I can try that.

But a quick look at the sources finds this "suspicious" line in catkin_make and catkin_prepare_release:

# force --no-color if stdout is non-interactive
if not sys.stdout.isatty():
    args.no_color = True

Since Eclipse needs to capture its output, it starts the build with the stdio and stderr redirected.
And that makes sys.stdout.isatty() return False (because the Eclipse console is not really a terminal).

It looks like there is no way to get around this without code changes.
But you can just comment these two lines and it should work.

If you are on Windows, the terminal_color.py also needs some fixing, because it assumes that Windows cannot support ANSI escapes (not true):

if os.name in ['nt']:
    disable_ANSI_colors()

The way I would fix ROS "for real" would be by adding a --force-color flag
(or do what most posix apps do: --color=never|always|auto and also honor an environment variable)

Anyway, if commenting the "if not sys.stdout.isatty():" does not work, please let me know, and I will go ahead and try top setup a working ROS environment.

Thank you,
Mihai

mnita's picture

ANSI-coloring during build ROS groovy projects?

Submitted by Mihai Nita on Mon, 2014-09-29 13:35

I don't know, I have never played with ROS. Let me give it a try, and will get back to you.
Thank you!
Mihai

pverest's picture

Colorize your CLI

Submitted by Paul Verest on Tue, 2014-04-01 10:49

Just look at picture and try to recall all those ANSI codes...

Markets

  • Eclipse Project (4)
  • Tools (1342)
    • Application Development Frameworks (171)
    • Application Management (32)
    • Application Server (31)
    • BIRT (10)
    • Build and Deploy (104)
    • Business Intelligence, Reporting and Charting (14)
    • Code Management (117)
    • Collaboration (37)
    • Database (44)
    • Database Development (34)
    • Database Persistence (17)
    • Documentation (60)
    • Eclipse Kura (122)
    • Eclipse SmartHome (46)
    • EclipseRT Target Platform Components (10)
    • Editor (339)
    • Entertainment (14)
    • General Purpose Tools (124)
    • Graphics (34)
    • IDE (344)
    • Internet of Things (IoT) (35)
    • J2EE Development Platform (44)
    • J2ME (5)
    • Languages (155)
    • Linux Tools (19)
    • Logging (22)
    • Mobile and Device Development (49)
    • Modeling (90)
    • Modeling Tools (146)
    • Mylyn Connectors (20)
    • Network (14)
    • Other (74)
    • Process (18)
    • Profiling (22)
    • Programming Languages (100)
    • Reporting (32)
    • Rich Client Applications (39)
    • Science (4)
    • SCM (20)
    • Search (42)
    • SOA Development (15)
    • Source Code Analyzer (99)
    • Systems Development (59)
    • Team Development (54)
    • Testing (90)
    • Tools (568)
    • UI (97)
    • UML (40)
    • Web (90)
    • Web Services (31)
    • Web, XML, Java EE and OSGi Enterprise Development (32)
    • XML (29)
  • IoT (172)
    • Eclipse Kura (122)
    • Eclipse SmartHome (46)
  • RCP Applications (79)
  • Training & Consulting (53)
  • Long Term Support (11)

Search

Advanced Search

More like this

  • LogViewer
  • Eclipse Color Theme
  • Extras for Eclipse
  • Eclipse Xtext
  • PexTools

Favorited by

Eclipse Foundation

  • About Us
  • Contact Us
  • Sponsor
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors
  • Careers

Legal

  • Publishing Guidelines
  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Welcome to Marketplace
  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace

Other

  • IDE and Tools
  • Projects
  • Working Groups
  • Research@Eclipse
  • Report a Vulnerability
  • Service Status

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top