Results 1 to 3 of 3

Thread: System pause function for linux

  1. #1
    Join Date
    Aug 2006
    Posts
    122

    System pause function for linux

    Hi,

    Is there "Pause" function in the linux operation system. i heard that its only possible in Windows operating system and not in linux. can i use cin.get in C++. i have also heard that using System Pause can cause damage to your system and its unsafe programming practice.

    Thank you
    As you simplify your life, the laws of the universe will be simpler; solitude will not be solitude, poverty will not be poverty, nor weakness.Henry David Thoreau

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: System pause function for linux

    Pause will a program before it exits. but i dont understood why its so popular, but it will make your job easier. when your IDE won't wait as you test a program and as soon as the program finished the window closes taking all your data with it. You can usecin.get(), All you have to do is press RETURN and your program continues.

  3. #3
    Join Date
    Jan 2008
    Posts
    3,388

    Re: System pause function for linux

    I dont think its possible using "PAUSE" system command in linux. I dont think its possible in a C/C++ compiler distribution which has getch(), unless you use ncurses, which is typically available on Linux systems. don't use ncurses unless I really, really need some special screen functionality but don't need a full-fledged GUI program.

Similar Threads

  1. Cat command function on Linux
    By Gimbya in forum Operating Systems
    Replies: 5
    Last Post: 27-05-2011, 02:32 AM
  2. Replies: 4
    Last Post: 01-04-2011, 12:29 AM
  3. Best Friendly Linux Distribution For Biggest Linux System
    By Aniela in forum Operating Systems
    Replies: 3
    Last Post: 13-12-2010, 07:42 AM
  4. How to write pause, sleep, wait function
    By VinFanatic in forum Software Development
    Replies: 3
    Last Post: 07-07-2009, 03:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,042,817.79506 seconds with 17 queries