GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Sep-2004, 16:30
nkhambal nkhambal is offline
Regular Member
 
Join Date: Jul 2004
Location: CA USA
Posts: 313
nkhambal is a jewel in the roughnkhambal is a jewel in the rough

equivalent of clrscr() on unix/linux??


Hi,

Like clrscr() on windows platform which function should i use to clear the display screen on Unix platform?I am using Linux with gcc complier.

Thanks,
  #2  
Old 03-Sep-2004, 16:53
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,709
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by nkhambal
Hi,

Like clrscr() on windows platform which function should i use to clear the display screen on Unix platform?I am using Linux with gcc complier.

Thanks,

If, on a command line, you enter

clear


It should clear the screen. (If it works, it means that there is an executable on the default $PATH, typically /usr/bin/clear.)

If it works, then in your C or C++ program you can have the following:

CPP / C++ / C Code:
  system("clear");

and it will do the same thing as entering the command from a command line.

Regards,

Dave
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on setsid() [Only for UNIX/Linux users] nusstu C Programming Language 3 03-Apr-2004 09:21

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:15.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.