Skip navigation.
The QNX Community Portal

View topic - using Ptty or PtTerminal

using Ptty or PtTerminal

Isn't the name clear?

using Ptty or PtTerminal

Postby rashidmirza » Mon Aug 01, 2011 7:48 pm

would like to execute a system command ( int system( const char *command )), and see the output of this in a Ptty or
PtTerminal window in a photon application.
Currently, when i execute the system command, i cannot seem to see the output in the Ptty window, but i can see it
happening in the terminal window from where i executed the application.

For Instance:

system("ls -l");
PtSetArg( &FlagArgs, Pt_ARG_TTY_CMD, NULL, 0 );
PtSetResources( ABW_PtTtyDisplay, 1, &FlagArgs );

is what i am trying to do....any suggestions?
Active Member
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

RE: using Ptty or PtTerminal

Postby mario » Mon Aug 01, 2011 9:23 pm

There is a nice example in th PtTty documentation
QNX Master
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: using Ptty or PtTerminal

Postby maschoen » Tue Aug 02, 2011 3:12 pm

or try "use pterm" to get some information.
QNX Master
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest