Ask Your Question
1

Read keyboard input directly in progress window, not terminal read

asked 2014-03-18 22:41:37 -0500

QuangNguyen gravatar image

updated 2014-03-26 23:09:57 -0500

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,

edit retag flag offensive close merge delete

Comments

Did anyone figure this out?

mikerosz gravatar imagemikerosz ( 2017-08-21 10:52:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-11-16 02:49:30 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-03-18 22:41:37 -0500

Seen: 1,179 times

Last updated: Nov 16 '20