Пример #1
0
bool intern initbios( void )
/**************************/
{
    bool        initialized;

    initialized = false;
    if( initmonitor() ) {
        UIData->desqview = 0;
        UIData->f10menus = true;
        if( UIData->colour == M_MONO ) {
            UIData->screen.origin = MK_FP( _B000h, 0 );
        } else {
            UIData->screen.origin = MK_FP( _B800h, 0 );
        }

        UIData->screen.increment = UIData->width;
        uiinitcursor();
        initkeyboard();
        UIData->mouse_acc_delay = 5;   /* ticks */
        UIData->mouse_rpt_delay = 1;   /* ticks */
        UIData->mouse_clk_delay = 5;   /* ticks */
        UIData->tick_delay = 9;        /* ticks */
        initialized = true;
    }
    return( initialized );
}
Пример #2
0
static int td_init( void )
/************************/
{
    int         rows, cols;
    const char  *tmp;

    if( UIData == NULL ) {
        UIData = &ui_data;
    }

    if( !td_initconsole() )
        return( FALSE );

    if( !initmonitor() )
        return( FALSE );

    if( TCAP_MONOCHROME ) {
        UIData->colour = M_TERMINFO_MONO;
    }

    UIData->no_blowup = TRUE;

    tmp = getenv( "TIOPTIMIZE" );
    if( tmp != NULL )
        OptimizeTerminfo = ( stricmp( tmp, "no" ) != 0 );

    // Figure out the number of columns to use
    cols = 0;
    tmp = getenv( "COLUMNS" );
    if( tmp != NULL )
        cols = strtoul( tmp, NULL, 0 );

    // Figure out the number of rows to use
    rows = 0;
    tmp = getenv( "LINES" );
    if( tmp != NULL )
        rows = strtoul( tmp, NULL, 0 );

    // Set up screen buffer
    if( !setupscrnbuff( rows, cols ) )
        return( FALSE );

    uiinitcursor();
    if( !initkeyboard() )
        return( FALSE );

    UIData->mouse_acc_delay = 277;
    UIData->mouse_rpt_delay = 100;
    UIData->mouse_clk_delay = 277;
    UIData->tick_delay      = 500;
    UIData->f10menus        = true;

    //find point at which repeat chars code becomes efficient
    ti_find_cutoff();

    ti_refresh( 1 );
    return( TRUE );
}
Пример #3
0
int intern initbios( void )
/*************************/
{
    int                 initialized;
    // unsigned            offset;
    #ifdef __386__
        void        __far16 *ptrLVB;
        void                *ptr;
    #else
        unsigned    long    ptrLVB;
    #endif
    unsigned    short   SizeOfLVB;

    initialized = FALSE;
    if( initmonitor() ) {
        VioGetBuf( (PULONG) &ptrLVB, (PUSHORT) &SizeOfLVB, 0);
        // offset = SCREEN_OFFSET; AFS 08-feb-91
        #ifdef __386__
            ptr = ptrLVB;
            UIData->screen.origin = ptr;
        #else
            UIData->screen.origin = (LP_PIXEL)ptrLVB;
        #endif
        UIData->screen.increment = UIData->width;
        uiinitcursor();
        initkeyboard();
        if( _osmode == DOS_MODE ) {
            UIData->mouse_acc_delay = 5;   /* ticks */
            UIData->mouse_rpt_delay = 1;   /* ticks */
            UIData->mouse_clk_delay = 5;   /* ticks */
            UIData->tick_delay = 9;        /* ticks */
            UIData->mouse_speed = 8;       /* mickeys to ticks ratio */
        } else {
            UIData->mouse_acc_delay = 250;
            UIData->mouse_rpt_delay = 100;
            UIData->mouse_clk_delay = 250;
            UIData->tick_delay = 500;
            UIData->mouse_speed = 8;       /* mickeys to ticks ratio */
        }
        initialized = TRUE;
    }
    return( initialized );
}
Пример #4
0
static int td_init( void )
/************************/
{
    if (UIData == NULL) {
        UIData = &ui_data;
    }
    if( !td_initconsole() ) return( FALSE );

    if (!initmonitor()) return (FALSE);
    if (!setupscrnbuff(0,0)) return (FALSE);

    uiinitcursor();
    initkeyboard();
    UIData->mouse_acc_delay = 277;
    UIData->mouse_rpt_delay = 55;
    UIData->mouse_clk_delay = 277;
    UIData->tick_delay = 500;
    UIData->f10menus = TRUE;
    td_refresh(1);
    return (TRUE);
}
Пример #5
0
int intern initbios( void )
/*******************/
{
    int                 initialized = FALSE;
    int                 i;

    if( initmonitor() ) {

        UIData->screen.origin = (LPPIXEL) uimalloc(
            UIData->width * UIData->height * sizeof( PIXEL )
        );

        for( i = 0 ; i < UIData->width * UIData->height ; ++i ){
            UIData->screen.origin[i].ch = ' ';
            UIData->screen.origin[i].attr = 7;
        } /* end for */

        UIData->screen.increment = UIData->width;

        uiinitcursor();
        initkeyboard();

        /* No mouse support in NetWare! */

        UIData->mouse_acc_delay = 0;
        UIData->mouse_rpt_delay = 0;
        UIData->mouse_clk_delay = 0;
        UIData->mouse_speed     = 0;

/* A 500 millisecond tick delay is pretty reasonable. */

        UIData->tick_delay      = uiclockdelay( 500 );

        initialized = TRUE;
    } /* end if */

    return( initialized );

} /* end initbios */
Пример #6
0
static int cd_init( void )
/************************/
{
    int                 initialized;

    initialized = false;
    if( UIData == NULL ) {
        UIData = &ui_data;
    }
    if( !initmonitor() )
        return( false );
    if( !setupscrnbuff() )
        return( false );

    uiinitcursor();
    initkeyboard();
    UIData->mouse_acc_delay = 277;
    UIData->mouse_rpt_delay = 100;
    UIData->mouse_clk_delay = 277;
    UIData->tick_delay      = 500;
    UIData->f10menus        = true;
    return( true );
}