In pre-GUI days, it was often convenient to output a prompt 
and then input a response on the same line.  
So the user would see something like:

  Sex(M/F):       NB. result of first prompt

  Sex(M/F): M     NB. user responds

  Sex(M/F): M     NB. what the user sees after hitting RETURN;
  Age(yrs):       NB. next response now awaited.

It used to be possible to do this in the J execution window, 
in one version (J3?) using  wd 'smappend...',
and in another (J4?) combining  (1!:1) 1  and  (1!:2) 2 .  
However,  1!:1&2  now automatically goes on to the next line 
after outputting its argument.

Is it currently possible to prompt & receive input on the one line?

Regards, Ewart Shaw

J.E.H.Shaw      http://www.warwick.ac.uk/statsdept 
Ewart Shaw      http://www.ewartshaw.co.uk

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to