This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: annotations for Kawa
On 12/14/2010 12:15 PM, Jamison Hope wrote:
Of course there is no good reason (except history) why consoles don't
support multiple fonts, colors, and graphics:
http://per.bothner.com/blog/2007/ReplPane/
Well, we do have ANSI escape codes (at least on non-Windows). But I know
what you're saying. I've adopted a ReplPane as an embedded command
interpreter in some of my Java apps, as a matter of fact. Like you
mention in the blog post, though, it's annoyingly easy to trigger
exceptions.
Patches to fix those would be welcome!
A possibly-better alternative is to use a web browser as the front-end.
That might be more robust, would allow people to do HTML-in-a-REPL,
and provides a standard and flexible way to do graphics in a REPL.
I've done some experimentation, but it's somewhat tricky to do the
bi-directional communication. Using HTML5 websockets might be the
way to go. (In addition there is issues related to setting up a
web-server and firing up a browser window.)
(I have been experimenting on something that could provide the best of
both approaches, but it has its own problems and depends on work code
that I don't know when or if it might be released.)
--
--Per Bothner
per@bothner.com http://per.bothner.com/