[Jprogramming] screen output without a newline character

Björn Helgason gosinn at gmail.com
Wed Dec 21 15:24:17 HKT 2005


This works in jconsole and not in the sm case
the other method is needed there
in jconsole this does not produce the text test:


2005/12/21, Oleg Kobchenko <olegykj at yahoo.com>:
>
> This works in jconsole on all platforms:
>
>    1!:1 at 1:@(1!:2&4) 'test: '
> test: 1+1
> 1+1
>
>
> In fact, 1!:2&4, is a very useful and powerful feature,
> I recommend keeping it and making sure it
> works further cross-platform.
>
> As an example, it is what JHP: J Hypertext Processor
> relies on. It is specifically a way to output
> binary data to stdout for batch mode execution
> (when J is executed as an external process).
>
> So far there has only been one problem with it:
> on Windows, it converts LF to CRLF. It is seen
> on the Bitmap example of JHP run under Windows.
> I suggest marking the stream for 1!:2&4 as binary.
>
>
> --- Chris Burke <cburke at jsoftware.com> wrote:
>
> > June Kim wrote:
> > > It doesn't seem like working in jconsole through standard input and
> > > output. No other way to print string to standard output without a
> > > newline?
> >
> > The prompt verb will not work in jconsole, and there is no way to have
> > both prompt and input on the same line.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



--
Björn Helgason, Verkfræðingur, gsm: +354698 5532
Fugl&Fiskur ehf, Þerneyjarsund 23,
802 Selfoss ,t-póst: gosinn at gmail.com
http://www.linux.is/forritun/data/J/grunnur.pdf


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.

         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |
  (`-.  '--.)
   `. )----'


More information about the Programming mailing list