[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Programming Console-Draw-Programm



> It seems that Linux lacks a (simple) console-based
> drawing-programm to draw objects (text, lines, rectangles
> and circles) with cut/copy/paste functionallity.
You mean, drawing objects with characters? If you want to draw graphics
on console you'll need SVGAlib.

> * function "keypressed" (waiting for a key pressed and
> recognition of all keys like cursor- or function-keys)
> * how to influence the colors of text and background
> (at least to show inverted text)
> * function "xytext" (write a text at cusorposition x,y)
> * function "beep" and "click" (maybe a function "sound")
> * function "cursorwait" (position the cursor at x,y)
Everything above you'll find in ncurses. You're using debian, right?
`apt-get install libncurses5-dev` and read the documentation in
/usr/share/doc/libncurses5-dev/html . There's a lot of examples there.

> * write to / read from a (text)file
> * mathematic functions like sqrt or sin
> * source for a simple introduction to C (available on the web)
The above are standard C library functions. If you `apt-get install
glibc-doc`, you can find'em in "info libc". But I strongly reccomend the
book by the authors of the language, Kernighan & Ritchie "The C
Programming Language".

> * What headers do I have to include?
To know what headers you should include for a given function, try "man 3
function" or "man 2 function". If you installed the above, this will
work for both ncurses functions and standard C functions.

Hope this helps,
-- 
	Leonardo Boiko
	"Doko ni datte, hito wa tsunagatte iru."
	(No matter where, people are all connected)
	-Lain


-- 
To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: