ogprintf.cc
objgfx40/objgfx40.h
objgfx40/ogFont.h
sde/ogDisplay_UbixOS.h
ubixos/vitals.h
sys/thread.h
ubixos/sched.h
objgfx40/ogFont.h
ubixos/vitals.h
ubixos/types.h
sys/_types.h
src/sys/lib/ogprintf.cc
ubixos/time.h
vfs/file.h
sys/tss.h
objgfx40/objgfx40.h
vfs/vfs.h
vfs/mount.h
sde/ogDisplay_UbixOS.h
ubixos/ubthread.h
ubixfs/dirCache.h
sys/sysproto.h
sys/signal.h
ubixos/tty.h
sys/io.h
int int ogPrintf (char *s) ogPrintf char * s vitalsStruct::font vitalsStruct::screen systemVitals
int int screenCol screenCol 0x1
int int screenRow screenRow 0x0

    /*****************************************************************************************
    Copyright(c)2002TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: ogprintf_8cc.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #include<objgfx40/objgfx40.h>
    #include<objgfx40/ogFont.h>
    #include<sde/ogDisplay_UbixOS.h>

    extern"C"{

    #include<ubixos/vitals.h>

    staticintscreenRow=0x0;
    staticintscreenCol=0x1;

    intogPrintf(char*s){
    inti=0x0;
    intbufHeight;
    ogSurface*screen=(ogDisplay_UbixOS*)systemVitals->screen;
    ogBitFont*font=(ogBitFont*)systemVitals->font;

    while('\0'!=s[i]){
    switch(s[i]){
    case'\t':
    screenCol+=3;
    break;
    case'\b':
    if(screenCol>0)--screenCol;
    case'\n':
    screenCol=0;

    bufHeight=((screen->ogGetMaxY()+1)/font->GetHeight())-1;
    if(screenRow<bufHeight)
    ++screenRow;
    else{
    screen->ogCopyBuf(0,0,
    *screen,
    0,font->GetHeight(),
    screen->ogGetMaxX(),screen->ogGetMaxY());
    screen->ogFillRect(0,bufHeight*font->GetHeight()+1,
    screen->ogGetMaxX(),screen->ogGetMaxY(),
    screen->ogPack(122,140,163));
    }
    break;
    default:
    font->PutChar(*screen,
    screenCol*font->GetWidth(),
    screenRow*font->GetHeight(),
    s[i]);
    break;
    }/*switch*/
    ++screenCol;
    ++i;
    }/*while*/

    return0;
    }//ogPrintf

    }

    /***
    $Log: ogprintf_8cc.xml,v $
    Revision 1.6  2006/12/19 14:12:52  reddawg
    rtld-elf almost workign

    Revision1.1.1.12006/06/0112:46:16reddawg
    ubix2

    Revision1.22005/10/1200:13:37reddawg
    Removed

    Revision1.1.1.12005/09/2617:24:13reddawg
    nomessage

    Revision1.72004/07/2022:58:33reddawg
    retiringtothelaptopforthenightmustsyncinworktoresumefromthere

    Revision1.62004/07/1714:24:22reddawg
    compile:changestothewaywelinkthekernelshouldpreventfutureerrors

    Revision1.52004/05/2323:30:34reddawg
    Fixens

    Revision1.42004/05/2301:40:19reddawg
    Spinlock

    Revision1.32004/05/1917:09:50flameshadow
    chg:Undidpreviousrenaming.ThisnowrestoresmeastheEOOUIAD.

    Revision1.22004/04/2612:56:01reddawg
    Madesrc/sys/sdeCopyandMaketheogPixelFormat.cpp

    Revision1.1.1.12004/04/1512:07:10reddawg
    UbixOSv1.0

    Revision1.192004/04/1316:36:33reddawg
    Changedourcopyright,itisallnowunderaBSD-Stylelicense

    END
    ***/