prompt should be modified to adding * to the "sm prompt" as follows:
prompt=:3 : 0
'' prompt y
:
if. IFQT do.
wd 'sm prompt *',y,x
inp=. 1!:1 ] 1
len=. #y
(len * y -: len {. inp) }. inp
else.
y 1!:2 (IFWIN+.IFJHS+.IFIOS) { 4 2
1!:1 ] 1
end.
)
Without it prompt works rather strangely if blanks are in y.
Also, it looks like 1!:1]1 now works within a script. The should be updated
in the help for 1!:1 .
On Wed, Feb 18, 2015 at 6:22 PM, Henry Rich <[email protected]> wrote:
> You can either redefine prompt in z locale or add the definition
>
> prompt_z_ =: prompt_base_
>
> or in your case IIUC
>
> prompt_panimals_ =: prompt_base_
>
> Henry Rich
>
> On 2/18/2015 7:55 PM, Brian Schott wrote:
>
>> Yes, I know that prompt__ is equivalent to prompt_base_, but plain old
>> prompt is different and does not work. That's my question: what can I do
>> to
>> make plain prompt work?
>>
>>
>>
>> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm