Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Change Color on IOConsoleOutputStream
Change Color on IOConsoleOutputStream [message #290289] Mon, 22 August 2005 23:37 Go to next message
Gordon Pike is currently offline Gordon PikeFriend
Messages: 2
Registered: July 2009
Junior Member
I am writing a terminal emulator in a plugin and have the basics
working. I now want to recognize escape commands that change the text
color. I have an OutputStream that wraps IOConsoleOutputStream and on a
write it parses the escape sequences but I get an error when calling the
method setColor on the IOConsoleOutputStream. Is there a better way to
do this?
Re: Change Color on IOConsoleOutputStream [message #290290 is a reply to message #290289] Mon, 22 August 2005 23:40 Go to previous messageGo to next message
Gordon Pike is currently offline Gordon PikeFriend
Messages: 2
Registered: July 2009
Junior Member
Gordon Pike wrote:
> I am writing a terminal emulator in a plugin and have the basics
> working. I now want to recognize escape commands that change the text
> color. I have an OutputStream that wraps IOConsoleOutputStream and on a
> write it parses the escape sequences but I get an error when calling the
> method setColor on the IOConsoleOutputStream. Is there a better way to
> do this?
I also have a problem with the cursor not following the end of written
text. When a letter is typed the cursor does travel to the end of text.
Re: Change Color on IOConsoleOutputStream [message #290310 is a reply to message #290289] Tue, 23 August 2005 12:31 Go to previous messageGo to next message
Kevin Barnes is currently offline Kevin BarnesFriend
Messages: 174
Registered: July 2009
Senior Member
Gordon Pike wrote:
> I am writing a terminal emulator in a plugin and have the basics
> working. I now want to recognize escape commands that change the text
> color. I have an OutputStream that wraps IOConsoleOutputStream and on a
> write it parses the escape sequences but I get an error when calling the
> method setColor on the IOConsoleOutputStream. Is there a better way to
> do this?

You need to call setColor(..) from the UI thread. Calling from any other
thread would likely cause an invalid thread access error.
Re: Change Color on IOConsoleOutputStream [message #290324 is a reply to message #290289] Tue, 23 August 2005 18:21 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I wish I could help you with your particular problem, I can't, but I am dying to know what you based your terminal emulation code on? I wrote a simple terminal window for an application in Eclipse once, and I think I used the JTerm source as a model? I remember that the code was a fraking nightmare and I don't remember too many good open source java curses libraries.

Thanks,
James E. Ervin
Previous Topic:enable state of the application menu
Next Topic:how to create a view like the Package Explorer?
Goto Forum:
  


Current Time: Thu Apr 25 05:30:32 GMT 2024

Powered by FUDForum. Page generated in 0.03685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top