| Alex Hunsley 2004-10-30, 8:56 pm |
| Andrew Thompson wrote:
> On 30 Oct 2004 10:08:37 -0700, Avraham wrote:
>
>
>
>
> I don't see the point of using Java to (try to) interact so
> closely with the command line. It is not a language well
> suited for it and it destroys the x-platform nature of Java
> for the sake of a few lines on the screen.
>
> If your students are so hungry for pretty lines, it would be
> better to give your students a quick taste* of Java GUI's
> with a single frame where you overide paint.
Yup, totally agree... trying to do ascii art graphics is not practical
in this fashion (i.e. controlling ascii output location much like the
curses library would).
A way is *could* be done is to make an object that accepts drawing
operations, buffers/remembers them, and then when requested outputs a
block of X by Y ascii showing the given lines, triangles etc. (It would
just output spaces, of course, where nothing was drawn.)
If AWT and graphics were really, really cryptic and hard to do, I could
see why the original poster was requesting this; but AWT is pretty
simple to do once you've got started!
alex
|