Thread: screen output question

  1. #1
    Registered User
    Join Date
    Apr 2006

    screen output question

    How to fix some text on the top of screen?
    How to clear one line after input?

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Out of scope
    How do I do the thing with the thing where the thing happens to the other thing?

    Be more descriptive.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Apr 2006
    problem solved by windows.h
    void clrscrn()
    COORD coordScreen={ 0, 0};
    DWORD cCharsWritten;
    DWORD dwConSize;
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    GetConsoleScreenBufferInfo(hConsole, &csbi);
    dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
    FillConsoleOutputCharacter(hConsole,TEXT(' '), dwConSize, coordScreen, &cCharsWritten);
    GetConsoleScreenBufferInfo(hConsole, &csbi);
    FillConsoleOutputAttribute(hConsole,csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten);
    SetConsoleCursorPosition(hConsole, coordScreen);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Blank output screen after compiling C.
    By thunderdome in forum C Programming
    Replies: 2
    Last Post: 01-19-2006, 06:53 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  4. Simple Ddraw question. Display bitmap on a screen.
    By tegwin in forum Game Programming
    Replies: 0
    Last Post: 05-22-2004, 05:50 PM
  5. output screen
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 04-03-2002, 04:03 PM