Quote:
Originally Posted by
vistastar
I mean graphics inside terminal.
Maybe it will be better to understand if I call it pixel based game.
Video doesn't work that way. Text mode is text. Byte 'a' in 0xb800:0000 (if my memory serves me correctly) shows an 'a' in the very upper left of your screen, messing with the contents of byte 0xb800:0001 will change that one letter's color. You don't have finer grained control than that, except perhaps by changing the meaning of 'a' in the video card's character set, and that's extremely limited.
To draw graphics in DOS you had to talk to the video card itself and change the video mode. Then the way the video hardware interprets the contents of memory would change. In mode 13 -- 320x240 resolution 8-bit color -- the first byte in video memory would be the very upper left pixel, the second would be a pixel one to the right of it, and so on. (This is also how svgalib works, though controlling the video card in UNIX is much less direct than in DOS.)
If DOS itself was stuck in a video mode that wasn't text, it could still print text, but only because it used small programs embedded inside the BIOS itself to do so. Very slow, but works in nearly any video mode.
Quote:
They can not execute any more.
Why not?
Perhaps if you were more specific about your goal here? not "how to do graphics in text", which doesn't make much sense no matter how you explain it. But what problem you're trying to solve with graphics, on what kind of system.
It'd also help to know what you mean by "terminal". A raw text console of some sort, or a terminal running inside an X server, or what?