Re:Ask HN: How to draw a single pixel?
by mooism2 on Sunday February 20, 2011 @11:07AM
(#2242137)
Are you running under Windows, OS X, Linux, something else?
[ Parent
| on HN ]
Re:Ask HN: How to draw a single pixel?
by RiderOfGiraffes on Sunday February 20, 2011 @11:09AM
(#2242149)
And if you're running Linux, which window manager are you running?
I am running Linux (ubuntu 10.10) and I am using the Gnome terminal.
Of course I could switch to something else if this could make things easier.
You cannot draw graphics in a terminal window (he says, half-expecting to be corrected).
Your program can open up a window of its own and draw graphics in that.
Or you can do the low level thing on a different virtual console using Linux's framebuffer support (see the svgalib link octopus posted above) (as an aside, press Ctrl+Alt+F2, observe what happens, then Alt+F7 to return here).
> You cannot draw graphics in a terminal window (he says, half-expecting to be corrected).
Depends on the terminal. xterm has a "tektronix mode" to emulate the old Tektronix 4014 graphic terminal. This has a 4096x4096 coordinate system for vector graphics. Most other terminals do not emulate this, of course.