gtstd.c | |||
Type | Function | Source | Line |
---|---|---|---|
STATIC VOID | sig_handler( int iSigNo )
static void sig_handler( int iSigNo ) { switch( iSigNo ) { #ifdef SIGCHLD case SIGCHLD: { int e = errno, stat; pid_t pid; while ( ( pid = waitpid( -1, &stat, WNOHANG ) ) > 0 ) ; errno = e; break; } #endif #ifdef SIGWINCH case SIGWINCH: /* s_WinSizeChangeFlag = TRUE; */ break; #endif #ifdef SIGINT case SIGINT: /* s_InetrruptFlag = TRUE; */ break; #endif #ifdef SIGQUIT case SIGQUIT: /* s_BreakFlag = TRUE; */ break; #endif #ifdef SIGTSTP case SIGTSTP: /* s_DebugFlag = TRUE; */ break; #endif #ifdef SIGTSTP case SIGTTOU: s_fRestTTY = FALSE; break; #endif } } | gtstd.c | 132 |
STATIC VOID | hb_gt_std_setKeyTrans( PHB_GTSTD pGTSTD, char * pSrcChars, char * pDstChars )
static void hb_gt_std_setKeyTrans( PHB_GTSTD pGTSTD, char * pSrcChars, char * pDstChars ) { int i; for( i = 0; i < 256; ++i ) pGTSTD->keyTransTbl[ i ] = ( BYTE ) i; if( pSrcChars && pDstChars ) { BYTE c; for( i = 0; i < 256 && ( c = ( BYTE ) pSrcChars[ i ] ) != 0; ++i ) pGTSTD->keyTransTbl[ c ] = ( BYTE ) pDstChars[ i ]; } } | gtstd.c | 177 |
STATIC VOID | hb_gt_std_termOut( PHB_GTSTD pGTSTD, const BYTE * pStr, ULONG ulLen )
static void hb_gt_std_termOut( PHB_GTSTD pGTSTD, const BYTE * pStr, ULONG ulLen ) { hb_fsWriteLarge( pGTSTD->hStdout, pStr, ulLen ); } | gtstd.c | 192 |
STATIC VOID | hb_gt_std_newLine( PHB_GTSTD pGTSTD )
static void hb_gt_std_newLine( PHB_GTSTD pGTSTD ) { hb_gt_std_termOut( pGTSTD, ( BYTE * ) pGTSTD->szCrLf, pGTSTD->ulCrLf ); } | gtstd.c | 197 |
STATIC VOID | hb_gt_std_Init( PHB_GT pGT, HB_FHANDLE hFilenoStdin, HB_FHANDLE hFilenoStdout, HB_FHANDLE hFilenoStderr )
static void hb_gt_std_Init( PHB_GT pGT, HB_FHANDLE hFilenoStdin, HB_FHANDLE hFilenoStdout, HB_FHANDLE hFilenoStderr ) { PHB_GTSTD pGTSTD; HB_TRACE(HB_TR_DEBUG, ("hb_gt_std_Init(%p,%p,%p,%p)", pGT, hFilenoStdin, hFilenoStdout, hFilenoStderr)); pGTSTD = ( PHB_GTSTD ) hb_xgrab( sizeof( HB_GTSTD ) ); memset( pGTSTD, 0, sizeof( HB_GTSTD ) ); HB_GTLOCAL( pGT ) = pGTSTD; pGTSTD->hStdin = hFilenoStdin; pGTSTD->hStdout = hFilenoStdout; pGTSTD->hStderr = hFilenoStderr; pGTSTD->fStdinConsole = hb_fsIsDevice( pGTSTD->hStdin ); pGTSTD->fStdoutConsole = hb_fsIsDevice( pGTSTD->hStdout ); pGTSTD->fStderrConsole = hb_fsIsDevice( pGTSTD->hStderr ); hb_gt_std_setKeyTrans( pGTSTD, NULL, NULL ); pGTSTD->szCrLf = hb_strdup( hb_conNewLine() ); pGTSTD->ulCrLf = strlen( pGTSTD->szCrLf ); hb_fsSetDevMode( pGTSTD->hStdout, FD_BINARY ); HB_GTSUPER_INIT( pGT, hFilenoStdin, hFilenoStdout, hFilenoStderr ); /* SA_NOCLDSTOP in #if is a hack to detect POSIX compatible environment */ #if ( defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) ) && \ defined( SA_NOCLDSTOP ) if( pGTSTD->fStdinConsole ) { #if defined( SIGTTOU ) struct sigaction act, old; /* if( pGTSTD->saved_TIO.c_lflag & TOSTOP ) != 0 */ sigaction( SIGTTOU, NULL, &old ); memcpy( &act, &old, sizeof( struct sigaction ) ); act.sa_handler = sig_handler; /* do not use SA_RESTART - new Linux kernels will repeat the operation */ #if defined( SA_ONESHOT ) act.sa_flags = SA_ONESHOT; #elif defined( SA_RESETHAND ) act.sa_flags = SA_RESETHAND; #else act.sa_flags = 0; #endif sigaction( SIGTTOU, &act, 0 ); #endif s_fRestTTY = TRUE; tcgetattr( pGTSTD->hStdin, &pGTSTD->saved_TIO ); memcpy( &pGTSTD->curr_TIO, &pGTSTD->saved_TIO, sizeof( struct termios ) ); /* atexit( restore_input_mode ); */ pGTSTD->curr_TIO.c_lflag &= ~( ICANON | ECHO ); pGTSTD->curr_TIO.c_iflag &= ~ICRNL; pGTSTD->curr_TIO.c_cc[ VMIN ] = 0; pGTSTD->curr_TIO.c_cc[ VTIME ] = 0; tcsetattr( pGTSTD->hStdin, TCSAFLUSH, &pGTSTD->curr_TIO ); #if defined( SIGTTOU ) act.sa_handler = SIG_DFL; sigaction( SIGTTOU, &old, NULL ); #endif pGTSTD->fRestTTY = s_fRestTTY; } #ifdef TIOCGWINSZ if( pGTSTD->fStdoutConsole ) { struct winsize win; if( ioctl( pGTSTD->hStdout, TIOCGWINSZ, ( char * ) &win ) != -1 ) { HB_GTSELF_RESIZE( pGT, win.ws_row, win.ws_col ); } } #endif #elif defined( HB_WIN32_IO ) && ! defined( HB_WINCE ) if( pGTSTD->fStdinConsole ) { SetConsoleMode( ( HANDLE ) hb_fsGetOsHandle( pGTSTD->hStdin ), 0x0000 ); } #endif HB_GTSELF_SETFLAG( pGT, HB_GTI_STDOUTCON, pGTSTD->fStdoutConsole ); HB_GTSELF_SETFLAG( pGT, HB_GTI_STDERRCON, pGTSTD->fStderrConsole ); } | gtstd.c | 203 |
STATIC VOID | hb_gt_std_Exit( PHB_GT pGT )
static void hb_gt_std_Exit( PHB_GT pGT ) { PHB_GTSTD pGTSTD; int iRow, iCol; HB_TRACE(HB_TR_DEBUG, ("hb_gt_std_Exit(%p)", pGT)); HB_GTSELF_REFRESH( pGT ); HB_GTSELF_GETPOS( pGT, &iRow, &iCol ); pGTSTD = HB_GTSTD_GET( pGT ); HB_GTSUPER_EXIT( pGT ); if( pGTSTD ) { /* update cursor position on exit */ if( pGTSTD->fStdoutConsole && pGTSTD->iLastCol > 0 ) { hb_gt_std_newLine( pGTSTD ); ++pGTSTD->iRow; } while( ++pGTSTD->iRow <= iRow ) hb_gt_std_newLine( pGTSTD ); #if defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) if( pGTSTD->fRestTTY ) tcsetattr( pGTSTD->hStdin, TCSANOW, &pGTSTD->saved_TIO ); #endif if( pGTSTD->iLineBufSize > 0 ) hb_xfree( pGTSTD->sLineBuf ); if( pGTSTD->szCrLf ) hb_xfree( pGTSTD->szCrLf ); hb_xfree( pGTSTD ); } } | gtstd.c | 292 |
STATIC INT | hb_gt_std_ReadKey( PHB_GT pGT, int iEventMask )
static int hb_gt_std_ReadKey( PHB_GT pGT, int iEventMask ) { PHB_GTSTD pGTSTD; int ch = 0; HB_TRACE(HB_TR_DEBUG, ("hb_gt_std_ReadKey(%p,%d)", pGT, iEventMask)); HB_SYMBOL_UNUSED( iEventMask ); pGTSTD = HB_GTSTD_GET( pGT ); #if defined( _MSC_VER ) && !defined( HB_WINCE ) if( pGTSTD->fStdinConsole ) { if( _kbhit() ) { ch = _getch(); if( ( ch == 0 || ch == 224 ) && _kbhit() ) { /* It was a function key lead-in code, so read the actual function key and then offset it by 256 */ ch = _getch() + 256; } ch = hb_gt_dos_keyCodeTranslate( ch ); if( ch > 0 && ch <= 255 ) ch = pGTSTD->keyTransTbl[ ch ]; } } else if( !_eof( pGTSTD->hStdin ) ) { BYTE bChar; if( _read( pGTSTD->hStdin, &bChar, 1 ) == 1 ) ch = pGTSTD->keyTransTbl[ bChar ]; } #elif defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) { struct timeval tv; fd_set rfds; tv.tv_sec = 0; tv.tv_usec = 0; FD_ZERO( &rfds ); FD_SET( pGTSTD->hStdin, &rfds); if( select( pGTSTD->hStdin + 1, &rfds, NULL, NULL, &tv ) > 0 ) { BYTE bChar; if( hb_fsRead( pGTSTD->hStdin, &bChar, 1 ) == 1 ) ch = pGTSTD->keyTransTbl[ bChar ]; } } #elif defined( HB_WIN32_IO ) if( !pGTSTD->fStdinConsole || WaitForSingleObject( ( HANDLE ) hb_fsGetOsHandle( pGTSTD->hStdin ), 0 ) == 0x0000 ) { BYTE bChar; if( hb_fsRead( pGTSTD->hStdin, &bChar, 1 ) == 1 ) ch = pGTSTD->keyTransTbl[ bChar ]; } #else { int TODO; /* TODO: */ } #endif return ch; } | gtstd.c | 330 |
STATIC BOOL | hb_gt_std_IsColor( PHB_GT pGT )
static BOOL hb_gt_std_IsColor( PHB_GT pGT ) { HB_TRACE(HB_TR_DEBUG, ("hb_gt_std_IsColor(%p)", pGT)); HB_SYMBOL_UNUSED( pGT ); return FALSE; } | gtstd.c | 396 |
STATIC VOID | hb_gt_std_Tone( PHB_GT pGT, double dFrequency, double dDuration )
static void hb_gt_std_Tone( PHB_GT pGT, double dFrequency, double dDuration ) { double dCurrentSeconds; PHB_GTSTD pGTSTD; HB_TRACE(HB_TR_DEBUG, ("hb_gt_std_Tone(%p,%lf,%lf)", pGT, dFrequency, dDuration)); pGTSTD = HB_GTSTD_GET( pGT ); /* Output an ASCII BEL character to cause a sound */ /* but throttle to max once per second, in case of sound */ /* effects prgs calling lots of short tone sequences in */ /* succession leading to BEL hell on the terminal */ dCurrentSeconds = hb_dateSeconds(); if( dCurrentSeconds < pGTSTD->dToneSeconds || dCurrentSeconds - pGTSTD->dToneSeconds > 0.5 ) { hb_gt_std_termOut( pGTSTD, s_szBell, 1 ); pGTSTD->dToneSeconds = dCurrentSeconds; } HB_SYMBOL_UNUSED( dFrequency ); /* convert Clipper (DOS) timer tick units to seconds ( x / 18.2 ) */ hb_idleSleep( dDuration / 18.2 ); } | gtstd.c | 405 |
STATIC VOID | hb_gt_std_Bell( PHB_GT pGT )
static void hb_gt_std_Bell( PHB_GT pGT ) { HB_TRACE(HB_TR_DEBUG, ( "hb_gt_std_Bell(%p)", pGT ) ); hb_gt_std_termOut( HB_GTSTD_GET( pGT ), s_szBell, 1 ); } | gtstd.c | 433 |
STATIC CONST CHAR * | hb_gt_std_Version( PHB_GT pGT, int iType )
static const char * hb_gt_std_Version( PHB_GT pGT, int iType ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Version(%p,%d)", pGT, iType ) ); HB_SYMBOL_UNUSED( pGT ); if( iType == 0 ) return HB_GT_DRVNAME( HB_GT_NAME ); return "Harbour Terminal: Standard stream console"; } | gtstd.c | 440 |
STATIC BOOL | hb_gt_std_Suspend( PHB_GT pGT )
static BOOL hb_gt_std_Suspend( PHB_GT pGT ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Suspend(%p)", pGT ) ); #if defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) { PHB_GTSTD pGTSTD = HB_GTSTD_GET( pGT ); if( pGTSTD->fRestTTY ) tcsetattr( pGTSTD->hStdin, TCSANOW, &pGTSTD->saved_TIO ); } #endif return HB_GTSUPER_SUSPEND( pGT ); } | gtstd.c | 452 |
STATIC BOOL | hb_gt_std_Resume( PHB_GT pGT )
static BOOL hb_gt_std_Resume( PHB_GT pGT ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Resume(%p)", pGT ) ); #if defined( HB_OS_UNIX_COMPATIBLE ) || defined( __DJGPP__ ) { PHB_GTSTD pGTSTD = HB_GTSTD_GET( pGT ); if( pGTSTD->fRestTTY ) tcsetattr( pGTSTD->hStdin, TCSANOW, &pGTSTD->curr_TIO ); } #endif return HB_GTSUPER_RESUME( pGT ); } | gtstd.c | 467 |
STATIC VOID | hb_gt_std_Scroll( PHB_GT pGT, int iTop, int iLeft, int iBottom, int iRight, BYTE bColor, BYTE bChar, int iRows, int iCols )
static void hb_gt_std_Scroll( PHB_GT pGT, int iTop, int iLeft, int iBottom, int iRight, BYTE bColor, BYTE bChar, int iRows, int iCols ) { int iHeight, iWidth; HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Scroll(%p,%d,%d,%d,%d,%d,%d,%d,%d)", pGT, iTop, iLeft, iBottom, iRight, bColor, bChar, iRows, iCols ) ); /* Provide some basic scroll support for full screen */ HB_GTSELF_GETSIZE( pGT, &iHeight, &iWidth ); if( iCols == 0 && iRows > 0 && iTop == 0 && iLeft == 0 && iBottom >= iHeight - 1 && iRight >= iWidth - 1 ) { PHB_GTSTD pGTSTD; /* scroll up the internal screen buffer */ HB_GTSELF_SCROLLUP( pGT, iRows, bColor, bChar ); /* update our internal row position */ pGTSTD = HB_GTSTD_GET( pGT ); pGTSTD->iRow -= iRows; if( pGTSTD->iRow < 0 ) pGTSTD->iRow = 0; } else HB_GTSUPER_SCROLL( pGT, iTop, iLeft, iBottom, iRight, bColor, bChar, iRows, iCols ); } | gtstd.c | 482 |
STATIC BOOL | hb_gt_std_SetDispCP( PHB_GT pGT, char *pszTermCDP, char *pszHostCDP, BOOL fBox )
static BOOL hb_gt_std_SetDispCP( PHB_GT pGT, char *pszTermCDP, char *pszHostCDP, BOOL fBox ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_SetDispCP(%p,%s,%s,%d)", pGT, pszTermCDP, pszHostCDP, (int) fBox ) ); HB_GTSUPER_SETDISPCP( pGT, pszTermCDP, pszHostCDP, fBox ); #ifndef HB_CDP_SUPPORT_OFF if( !pszHostCDP ) pszHostCDP = hb_cdpID(); if( !pszTermCDP ) pszTermCDP = pszHostCDP; if( pszTermCDP && pszHostCDP ) { PHB_GTSTD pGTSTD = HB_GTSTD_GET( pGT ); pGTSTD->cdpTerm = hb_cdpFind( pszTermCDP ); pGTSTD->cdpHost = hb_cdpFind( pszHostCDP ); pGTSTD->fDispTrans = pGTSTD->cdpTerm && pGTSTD->cdpHost && pGTSTD->cdpTerm != pGTSTD->cdpHost; return TRUE; } #endif return FALSE; } | gtstd.c | 508 |
STATIC BOOL | hb_gt_std_SetKeyCP( PHB_GT pGT, char *pszTermCDP, char *pszHostCDP )
static BOOL hb_gt_std_SetKeyCP( PHB_GT pGT, char *pszTermCDP, char *pszHostCDP ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_SetKeyCP(%p,%s,%s)", pGT, pszTermCDP, pszHostCDP ) ); HB_GTSUPER_SETKEYCP( pGT, pszTermCDP, pszHostCDP ); #ifndef HB_CDP_SUPPORT_OFF if( !pszHostCDP ) pszHostCDP = hb_cdpID(); if( !pszTermCDP ) pszTermCDP = pszHostCDP; if( pszTermCDP && pszHostCDP ) { PHB_CODEPAGE cdpTerm = hb_cdpFind( pszTermCDP ), cdpHost = hb_cdpFind( pszHostCDP ); if( cdpTerm && cdpHost && cdpTerm != cdpHost && cdpTerm->nChars && cdpTerm->nChars == cdpHost->nChars ) { char *pszHostLetters = ( char * ) hb_xgrab( cdpHost->nChars * 2 + 1 ); char *pszTermLetters = ( char * ) hb_xgrab( cdpTerm->nChars * 2 + 1 ); hb_strncpy( pszHostLetters, cdpHost->CharsUpper, cdpHost->nChars * 2 ); hb_strncat( pszHostLetters, cdpHost->CharsLower, cdpHost->nChars * 2 ); hb_strncpy( pszTermLetters, cdpTerm->CharsUpper, cdpTerm->nChars * 2 ); hb_strncat( pszTermLetters, cdpTerm->CharsLower, cdpTerm->nChars * 2 ); hb_gt_std_setKeyTrans( HB_GTSTD_GET( pGT ), pszTermLetters, pszHostLetters ); hb_xfree( pszHostLetters ); hb_xfree( pszTermLetters ); } else hb_gt_std_setKeyTrans( HB_GTSTD_GET( pGT ), NULL, NULL ); return TRUE; } #endif return FALSE; } | gtstd.c | 534 |
STATIC VOID | hb_gt_std_DispLine( PHB_GT pGT, int iRow )
static void hb_gt_std_DispLine( PHB_GT pGT, int iRow ) { BYTE bColor, bAttr; USHORT usChar; int iCol, iMin = 0; PHB_GTSTD pGTSTD = HB_GTSTD_GET( pGT ); for( iCol = 0; iCol < pGTSTD->iLineBufSize; ++iCol ) { if( !HB_GTSELF_GETSCRCHAR( pGT, iRow, iCol, &bColor, &bAttr, &usChar ) ) break; if( usChar < 32 || usChar == 127 ) usChar = '.'; pGTSTD->sLineBuf[ iCol ] = ( BYTE ) usChar; if( usChar != ' ' ) iMin = iCol + 1; } hb_gt_std_newLine( pGTSTD ); if( iMin > 0 ) hb_gt_std_termOut( pGTSTD, pGTSTD->sLineBuf, iMin ); pGTSTD->iLastCol = pGTSTD->iCol = iMin; pGTSTD->iRow = iRow; } | gtstd.c | 576 |
STATIC VOID | hb_gt_std_Redraw( PHB_GT pGT, int iRow, int iCol, int iSize )
static void hb_gt_std_Redraw( PHB_GT pGT, int iRow, int iCol, int iSize ) { BYTE bColor, bAttr; USHORT usChar; int iLineFeed, iBackSpace, iLen, iMin; PHB_GTSTD pGTSTD; HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Redraw(%p,%d,%d,%d)", pGT, iRow, iCol, iSize ) ); iLineFeed = iBackSpace = 0; pGTSTD = HB_GTSTD_GET( pGT ); if( pGTSTD->iRow != iRow ) { iLineFeed = pGTSTD->iRow < iRow ? iRow - pGTSTD->iRow : 1; iCol = 0; iSize = pGTSTD->iLineBufSize; } else if( pGTSTD->iCol < iCol ) { iSize += iCol - pGTSTD->iCol; iCol = pGTSTD->iCol; } else if( pGTSTD->iCol > iCol ) { if( pGTSTD->fStdoutConsole && pGTSTD->iCol <= pGTSTD->iLineBufSize ) { iBackSpace = pGTSTD->iCol - iCol; if( iBackSpace > iSize ) iSize = iBackSpace; } else { iLineFeed = 1; iCol = 0; iSize = pGTSTD->iLineBufSize; } } iMin = iLineFeed > 0 || pGTSTD->iLastCol <= iCol ? 0 : pGTSTD->iLastCol - iCol; while( iSize > iMin && HB_GTSELF_GETSCRCHAR( pGT, iRow, iCol + iSize - 1, &bColor, &bAttr, &usChar ) ) { if( usChar != ' ' ) break; --iSize; } if( iSize > 0 ) { if( iLineFeed > 0 ) { /* * If you want to disable full screen redrawing in console (TTY) * output then comment out the 'if' block below, Druzus */ if( pGTSTD->fStdoutConsole ) { int i; if( pGTSTD->iRow > iRow ) { pGTSTD->iRow = -1; pGTSTD->fFullRedraw = TRUE; } for( i = pGTSTD->iRow + 1; i < iRow; ++i ) hb_gt_std_DispLine( pGT, i ); iLineFeed = 1; } do hb_gt_std_newLine( pGTSTD ); while( --iLineFeed ); pGTSTD->iLastCol = 0; } else if( iBackSpace > 0 ) { memset( pGTSTD->sLineBuf, HB_CHAR_BS, iBackSpace ); hb_gt_std_termOut( pGTSTD, pGTSTD->sLineBuf, iBackSpace ); } for( iLen = 0; iLen < iSize; ++iLen ) { if( !HB_GTSELF_GETSCRCHAR( pGT, iRow, iCol, &bColor, &bAttr, &usChar ) ) break; if( usChar < 32 || usChar == 127 ) usChar = '.'; pGTSTD->sLineBuf[ iLen ] = ( BYTE ) usChar; ++iCol; } if( iLen ) { #ifndef HB_CDP_SUPPORT_OFF if( pGTSTD->fDispTrans ) hb_cdpnTranslate( ( char * ) pGTSTD->sLineBuf, pGTSTD->cdpHost, pGTSTD->cdpTerm, iLen ); #endif hb_gt_std_termOut( pGTSTD, pGTSTD->sLineBuf, iLen ); } pGTSTD->iRow = iRow; pGTSTD->iCol = iCol; if( pGTSTD->iCol > pGTSTD->iLastCol ) pGTSTD->iLastCol = pGTSTD->iCol; } } | gtstd.c | 600 |
STATIC VOID | hb_gt_std_Refresh( PHB_GT pGT )
static void hb_gt_std_Refresh( PHB_GT pGT ) { int iHeight, iWidth; PHB_GTSTD pGTSTD; HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Refresh(%p)", pGT ) ); HB_GTSELF_GETSIZE( pGT, &iHeight, &iWidth ); pGTSTD = HB_GTSTD_GET( pGT ); if( pGTSTD->iLineBufSize == 0 ) { pGTSTD->sLineBuf = ( BYTE * ) hb_xgrab( iWidth ); pGTSTD->iLineBufSize = iWidth; } else if( pGTSTD->iLineBufSize != iWidth ) { pGTSTD->sLineBuf = ( BYTE * ) hb_xrealloc( pGTSTD->sLineBuf, iWidth ); pGTSTD->iLineBufSize = iWidth; } pGTSTD->fFullRedraw = FALSE; HB_GTSUPER_REFRESH( pGT ); if( pGTSTD->fFullRedraw ) { int i; if( pGTSTD->iRow < iHeight - 1 ) { for( i = pGTSTD->iRow + 1; i < iHeight; ++i ) hb_gt_std_DispLine( pGT, i ); } } } | gtstd.c | 707 |
STATIC BOOL | hb_gt_std_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo )
static BOOL hb_gt_std_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) { HB_TRACE( HB_TR_DEBUG, ( "hb_gt_std_Info(%p,%d,%p)", pGT, iType, pInfo ) ); switch ( iType ) { case HB_GTI_FULLSCREEN: case HB_GTI_KBDSUPPORT: pInfo->pResult = hb_itemPutL( pInfo->pResult, TRUE ); break; default: return HB_GTSUPER_INFO( pGT, iType, pInfo ); } return TRUE; } | gtstd.c | 740 |
STATIC BOOL | hb_gt_FuncInit( PHB_GT_FUNCS pFuncTable )
static BOOL hb_gt_FuncInit( PHB_GT_FUNCS pFuncTable ) { HB_TRACE(HB_TR_DEBUG, ("hb_gt_FuncInit(%p)", pFuncTable)); pFuncTable->Init = hb_gt_std_Init; pFuncTable->Exit = hb_gt_std_Exit; pFuncTable->IsColor = hb_gt_std_IsColor; pFuncTable->Redraw = hb_gt_std_Redraw; pFuncTable->Refresh = hb_gt_std_Refresh; pFuncTable->Scroll = hb_gt_std_Scroll; pFuncTable->Version = hb_gt_std_Version; pFuncTable->Suspend = hb_gt_std_Suspend; pFuncTable->Resume = hb_gt_std_Resume; pFuncTable->SetDispCP = hb_gt_std_SetDispCP; pFuncTable->SetKeyCP = hb_gt_std_SetKeyCP; pFuncTable->Tone = hb_gt_std_Tone; pFuncTable->Bell = hb_gt_std_Bell; pFuncTable->Info = hb_gt_std_Info; pFuncTable->ReadKey = hb_gt_std_ReadKey; return TRUE; } /* ********************************************************************** */ static const HB_GT_INIT gtInit = { HB_GT_DRVNAME( HB_GT_NAME ), hb_gt_FuncInit, HB_GTSUPER, HB_GTID_PTR }; HB_GT_ANNOUNCE( HB_GT_NAME ) HB_CALL_ON_STARTUP_BEGIN( _hb_startup_gt_Init_ ) hb_gtRegister( >Init ); HB_CALL_ON_STARTUP_END( _hb_startup_gt_Init_ ) #if defined( HB_PRAGMA_STARTUP ) #pragma startup _hb_startup_gt_Init_ #elif defined( HB_MSC_STARTUP ) #if defined( HB_OS_WIN_64 ) #pragma section( HB_MSC_START_SEGMENT, long, read ) #endif #pragma data_seg( HB_MSC_START_SEGMENT ) static HB_$INITSYM hb_vm_auto__hb_startup_gt_Init_ = _hb_startup_gt_Init_; | gtstd.c | 759 |
Page url: http://www.yourdomain.com/help/index.html?gtstd.htm