Guest User

Untitled

a guest
Jan 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <windows.h>
  2.  
  3.  
  4. void gotoxy ( int column, int line )
  5. {
  6. COORD coord;
  7. coord.X = column;
  8. coord.Y = line;
  9. SetConsoleCursorPosition(
  10. GetStdHandle( STD_OUTPUT_HANDLE ),
  11. coord
  12. );
  13. }
  14.  
  15. for i in range(10):
  16. print("Loading" + "." * i)
  17.  
  18. doSomeTimeConsumingProcessing()
  19.  
  20. sys.stdout.write("33[F") # Cursor up one lin
Add Comment
Please, Sign In to add comment