Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Change Color on IOConsoleOutputStream
Change Color on IOConsoleOutputStream [message #290289] Mon, 22 August 2005 19:37 Go to next message
Eclipse UserFriend
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 19:40 Go to previous messageGo to next message
Eclipse UserFriend
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 08:31 Go to previous messageGo to next message
Eclipse UserFriend
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 14: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: Wed Jul 16 03:10:21 EDT 2025

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

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

Back to the top