P
Paminu
Is there something like system("PAUSE") for linux?
Paminu said:Is there something like system("PAUSE") for linux?
Paminu said:Is there something like system("PAUSE") for linux?
Is there something like system("PAUSE") for linux?
Simon said:This is off-topic for comp.lang.c, you should have posted to
comp.unix.programmer. However, I have written a clone of the MS-DOS
pause command for Linux, and I can give you a link to it here.
http://members.optushome.com.au/sbiber/pause-1.0.tar.gz
It should work on other Unix-like systems too. Extract it, change to the
directory pause-1.0, and type
make
to build, and you can type
sudo make install
to copy the executable to /usr/local/bin
Paminu said:Is there something like system("PAUSE") for linux?
Paminu said:Ok done that but how do I use it in my source.c file??
Paminu said:Is there something like system("PAUSE") for linux?
Roger Leigh said:The only use I've seen for this in Windows programs is to work around
the horrible broken terminal emulator that comes with Windows.
You won't have that problem on Linux: the emulator is not going to close
when your program terminates, so this is pointless.
Roger Leigh said:While it's certainly possible, you
1) Don't want to use system(3) just to pause the program: create a
pause() function.
Ben Pfaff said:Why is it a bad idea to use system() to pause a program? Waiting
for a keystroke from a user is hardly performance-intensive.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.