Opened 8 years ago

Closed 6 years ago

#6405 closed task (fixed)

What can we use for pause.

Reported by: Kurt Schwehr Owned by: Kurt Schwehr
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

I'd like to totally get rid of CPLReadLine now that we have CPLReadLineL. What is the best way to implement pause in a cross platform manner? How about cin >> osString; or std::cin.get();?

/* -------------------------------------------------------------------- */
/*      --pause                                                         */
/* -------------------------------------------------------------------- */
        else if( EQUAL(papszArgv[iArg],"--pause") )
        {
            printf( "Hit <ENTER> to Continue.\n" );
            CPLReadLine( stdin );
        }

From source:trunk/gdal/gcore/gdal_misc.cpp?rev=33528#L2757

Change History (3)

comment:1 by Kurt Schwehr, 8 years ago

r33693 using std::cin

comment:2 by Jukka Rahkonen, 6 years ago

Was r33603 an answer to this question?

comment:3 by Kurt Schwehr, 6 years ago

Resolution: fixed
Status: newclosed

r33693 seems to work and there haven't been any complaints in more than a year. Closing

Note: See TracTickets for help on using tickets.