|Re: "Console" widget using pure SWT? [message #467665 is a reply to message #467606]
||Fri, 03 February 2006 12:55
| Konstantin Scheglov
Registered: July 2009
Daniel Spiewak wrote:|
> I've never seen anything quite like that, you'll probably have to roll your own solution.
> Considering that you'll probably want to lock certain portions of the window for editing, you'll want to roll your own text box. For that you can look at StyledText for inspiration. The console pass through can be done using streams and the Process class.
I have some experience with this (in my telnet/ssh client ShellGuard).
Console is not so easy task.
You should interpret ESC sequences that move cursor, change
background and foreground colors, erase parts of screen, insert rows,
etc. I recommend you startd from Canvas and implement all drawing
yourself. Editing text is not client side task, but server task. Server
will tell you (using ESC sequences) how to draw this.
Of course all this is in general case, in simple cases more simple
solution is possible.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Powered by FUDForum
. Page generated in 0.02039 seconds