If you are using the J ide, rather than pasting the clipboard contents in to the terminal, use the menu command "Run | Clipboard". (pasting in to a jconsole session works fine) On Feb 16, 2014 9:05 AM, "Jan-Pieter Jacobs" <janpieter.jac...@gmail.com> wrote:
> The problem is that pasting multiple lines somehow only results in the last > one being seen in the GUI's. In the console it does work as expected. > This is a point where I think the GUI's are a bit counter intuitive. > The workarounds have been given by others. > Kind regards, > > Jan-Pieter > > > 2014-02-15 19:27 GMT+01:00 robert therriault <bobtherria...@mac.com>: > > > You can put the linefeeds in yourself. > > > > a=:'ab',LF,'cd',LF,'ef',LF,'gh',LF,'ij' > > a > > ab > > cd > > ef > > gh > > ij > > $a > > 14 > > b=: 'ab','cd','ef','gh',:'ij' > > b > > ab > > cd > > ef > > gh > > ij > > $b > > 5 2 > > c=: 0 : 0 > > ab > > cd > > ef > > gh > > ij > > ) > > c > > ab > > cd > > ef > > gh > > ij > > $c > > 15 > > > > Note that a is a 14 character string which displays linefeeds and b is > a > > 5 2 array. c is a 15 character string because of the extra LF you have > used > > to moved to the last line ')' in your explicit definition. > > > > Hope this helps, > > > > Cheers, bob > > > > On Feb 15, 2014, at 10:09 AM, Henry Rich <henryhr...@nc.rr.com> wrote: > > > > > Usually put it into .ijs, but you can copy it into .ijx, then select it > > all in the .ijx, and do Run|Selection. > > > > > > Henry Rich > > > > > > On 2/15/2014 1:06 PM, Asdasd Asdasd wrote: > > >> > > >> > > >> > > >> Hi, I'm a novice in J and I was trying to define a noun as a > multi-line > > text like this: > > >> > > >> txt =: 0 : 0 > > >> ab > > >> cd > > >> fg > > >> hi > > >> jk > > >> ij > > >> ) > > >> > > >> I tried first executing the first line (txt =: 0 : 0) and then pasting > > (ctrl v) my text. The result was only 'ij'. > > >> I tried then to execute the first line and press F8 (run clipboard), > > getting 0!:101 inputx_jrx_ as a result. > > >> > > >> So, is there a way to assign multiline text to a noun without having > to > > create a new ijs and running from there? > > >> > > >> Thanks. > > >> > > >> > > >> > > >> ---------------------------------------------------------------------- > > >> For information about J forums see > http://www.jsoftware.com/forums.htm > > >> > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm