How do I make a C program draw a single pixel on the screen (without using X or any other such thing)?
I would like to have the simplest, most rudimentary BIOS call for drawing pixels in VESA mode, in the form of a simple C program. All I have is a fresh install of FreeBSD in console mode, a minimal installation, and I want to keep things simple. Can I do simple VESA mode graphics without installing any new (or at least as few as possible) packages?
My story:
I decided I wanted to learn to really use a computer. I decided to get learn to use some UNIX system, and really learn things by reading the source files for things I use. I installed FreeBSD, and started reading the handbook and setting up my computer for everyday use, looking for basic utils. I
I would like to have the simplest, most rudimentary BIOS call for drawing pixels in VESA mode, in the form of a simple C program. All I have is a fresh install of FreeBSD in console mode, a minimal installation, and I want to keep things simple. Can I do simple VESA mode graphics without installing any new (or at least as few as possible) packages?
My story:
I decided I wanted to learn to really use a computer. I decided to get learn to use some UNIX system, and really learn things by reading the source files for things I use. I installed FreeBSD, and started reading the handbook and setting up my computer for everyday use, looking for basic utils. I
pkg_add
'd X.Org and I almost fainted as I saw the flood of dependencies! I can't read the source files of all these hundreds of libraries! Anyway, so I decided to wipe the disk and reinstall FreeBSD, this time making sure I would only install packages with a humanly understandable number of dependencies. Now I want to do some graphics programming, as in draw pixels in C. The end.