IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
 View Only
  • 1.  How to get back to the standard output terminal

    Posted Thu August 26, 2021 08:48 AM

    When running the C program below [1], I can see an output window that says:

     Hello, World!
     Press ENTER to end terminal session.

    Pressing enter brings me back to the 5250 session.

    How can I get this terminal back after I have exited it?

    One way is to call the C program again. When doing so I can see the result of the previous invocation. However, I just want to popup the terminal with the existing contents.

    Cheers, Wim

     [1]             

    #include <stdio.h>
    int main(void)                
    {                              
    printf("%s", "Hello, World!");    
    }                              



    ------------------------------
    Wim Jongman
    ------------------------------


  • 2.  RE: How to get back to the standard output terminal

    Posted Thu September 02, 2021 07:07 AM
    How about creating another C program as follows: 

    #include <stdio.h>
    int main(void)
    {
    printf("\n");
    }

    Running this will just give the same screen as before with an additional "Press ENTER..." line.

    ------------------------------
    Keith Pryke
    ------------------------------



  • 3.  RE: How to get back to the standard output terminal

    Posted Thu September 02, 2021 08:54 AM
    That is very clever! Thanks, Keith.

    Of course, I would still like to know how to popup that "console" without putting anything new on it.

    Cheers,

    Wim

    ------------------------------
    Wim Jongman
    ------------------------------



  • 4.  RE: How to get back to the standard output terminal

    Posted Tue September 07, 2021 10:22 AM
    What about STRDBG and press "terminal" (is it F15) ?