void ClrEol(void) { int row, col; GetCurPos(&col, &row); scroll(0, 0, GetCurAtr(), row, col, row, SCREENCOLS); }
UINT32 IStrlBuilder::GetCurLen () const { LPCTSTR lpszCurPos=GetCurPos(), lpszBufPos=GetBuffer(); if (IsEmptyStr(lpszBufPos) || (NULL == lpszCurPos)) return 0; else return (lpszCurPos - lpszBufPos); }
void ClrEop(void) { int row, col; GetCurPos(&col, &row); ClrEol(); if (++row < SCREENROWS) scroll(0, 0, GetCurAtr(), row, 0, SCREENROWS, SCREENCOLS); }
int GetCurAtr(void) { int row, col; unsigned short chat; GetCurPos(&col, &row); chat = *((unsigned short FAR *)MK_FP(SCREENSEG, (row * SCREENCOLS + col) << 1)); return (chat >> 8); }
BOOL CMPQFileAccessor::IsEOF() { if(m_hFile) { return GetCurPos()==GetSize(); } else if(m_pRealFSFile) { return m_pRealFSFile->IsEOF(); } return TRUE; }
struct SCREEN *SaveScrn(void) { struct SCREEN *screen; if (NULL == (screen = malloc(sizeof(struct SCREEN)))) return NULL; if (NULL == (screen->vbuf = malloc(SCRNBYTES))) { free(screen); return NULL; } _fmemcpy((unsigned short FAR *)(screen->vbuf), SCRBUFF, SCRNBYTES); GetCurPos(&screen->curX, &screen->curY); return screen; }
BOOL CLinuxFileAccessor::IsEOF() { return GetCurPos()==GetSize(); }