LINUX programming

Moderators: ITA
Number of threads: 1347
Number of posts: 2935

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
clrscr() Posted by RejithRR on 14 Mar 2004 at 12:38 PM
ihave found <conio.h>
in my os rht9.0
But cn't use the clrscr()
and many other fns that i used in the TCC-IDE in Win-Dog
could any one tell a similar fn to clear the terminal while running a
menu based prog ..............
thanku


Report
Re: clrscr() Posted by athomas on 18 Mar 2004 at 11:59 AM
Hi,

it would help to know what os you are exactly using and what kind of compiler you work with. This sound like you dont have installed the gcc libc package.
Cheers.
Alexander


: ihave found <conio.h>
: in my os rht9.0
: But cn't use the clrscr()
: and many other fns that i used in the TCC-IDE in Win-Dog
: could any one tell a similar fn to clear the terminal while running a
: menu based prog ..............
: thanku
:
:
:

Report
Re: clrscr() Posted by RejithRR on 20 Mar 2004 at 11:12 AM
: Hi,
:
: it would help to know what os you are exactly using and what kind of compiler you work with. This sound like you dont have installed the gcc libc package.
: Cheers.
: Alexander
:
:
: : ihave found <conio.h>
: : in my os rht9.0
: : But cn't use the clrscr()
: : and many other fns that i used in the TCC-IDE in Win-Dog
: : could any one tell a similar fn to clear the terminal while running a
: : menu based prog ..............

: : I have gcclibc package&&g++ installed thanku
: :
: :
: :
:
:

Report
Re: clrscr() Posted by fnoyan on 21 Mar 2004 at 10:35 AM
: ihave found <conio.h>
: in my os rht9.0
: But cn't use the clrscr()
: and many other fns that i used in the TCC-IDE in Win-Dog
: could any one tell a similar fn to clear the terminal while running a
: menu based prog ..............
: thanku
Hi
you can use system("/bin/clear") (or whatever your clear path is) to clear the screen.
For a menu based console program, most probably, you have to use ncurses. type "man ncurses" for more info about curses lib.


Report
Re: clrscr() Posted by egotham on 26 Mar 2004 at 2:28 AM
how about trying
system("clear");
system command u may be knowing is defined in <stdlib.h>
and executes the string that is passed as a arguement to it on the shell.

EGOTHAM
: ihave found <conio.h>
: in my os rht9.0
: But cn't use the clrscr()
: and many other fns that i used in the TCC-IDE in Win-Dog
: could any one tell a similar fn to clear the terminal while running a
: menu based prog ..............
: thanku
:
:
:



Report
Re: clrscr() Posted by inder_vijay on 3 Apr 2004 at 3:46 AM
: ihave found <conio.h>
: in my os rht9.0
: But cn't use the clrscr()
: and many other fns that i used in the TCC-IDE in Win-Dog
: could any one tell a similar fn to clear the terminal while running a
: menu based prog ..............
: thanku
:
:
:
Hi,

U can make use of system(). This fn., takes command as the arg.
For eg., system("ls"); will display all the files. So make use of
system("clear");

I U want to know more about these things mail to me!

- Vijay




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.