standard outoput buffer

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Mr_Spam

standard outoput buffer

Post by Mr_Spam »

how would one go about creating a standard output buffer? is that the same as the video memory or is it something different? I'm to the point where i'm writing the printf function but would like compatability with ported programs eventually. maby i'm entierlly missing something to do with I/O buffers.

thanks,

Mr_Spam
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:standard outoput buffer

Post by Pype.Clicker »

the basic idea with output buffer is to provide a common interface to programs output regardless it is actually received by a window, a text console or a file on disk ...
thus, rather than emitting characters directly to a video area, they are put in a buffer (shared between the application and the kernel) and wait for the display manager to be ready.

In addition to the "protection feature" (don't let the application play directly with the hardware), the output buffer can reduce the amount of system call made.
Post Reply