Ask Your Question
1

Read keyboard input directly in progress window, not terminal read

asked Mar 19 '14

QuangNguyen gravatar image

updated Mar 27 '14

JervisW gravatar image

Hi everyone,

When I use "raw_input" function to read keyboard input, a "terminal read" window pops up so that I can enter my data there.

It works fine, but I would like to know if we can type our data directly in progress window of PSSE, just like when PSSE asks us to enter choice for its function, such as:

 ACTIVITY? vchk kv

   ENTER OUTPUT DEVICE CODE:

    0 FOR NO OUTPUT               1 FOR REPORT DEVICE

    2 FOR A FILE                  3 FOR DEFAULT PRINTER

    6 FOR ALTERNATE SPOOL DEVICE  7 FOR PROGRESS DEVICE:

   7

   ENTER MIN, MAX BASE KV
   750 750

   ENTER VMAX, VMIN: 1.05 0.95

Thanks,

Comments

Did anyone figure this out?

mikerosz gravatar imagemikerosz (Aug 21 '17)

1 answer

Sort by » oldest newest most voted
0

answered Nov 16 '0

the--duke gravatar image

I tried to suppress the prompt output (I/O control -> ODEV -> Suppress output or psspy.prompt_output(6,"",[0,0])) but whenever I tried to input something, either by using raw_input() or by using psspy.userin(), the 'Terminal Read' window still popped up. I believe this is the only way to reach to this window by the user's actions, so I don't think there is any other immediate way of suppressing it. Thus, I don't think it's possible to avoid the window at all.

I will try to work around it whenever I have time, by printing the requests to the progress window, then trying to reach the CLI Input without executing it, and then importing it to the desired variable. I shall return to report if I ever manage to do it or find any other way around it.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

Stats

Asked: Mar 19 '14

Seen: 1,207 times

Last updated: Nov 16 '20