With the caveat that the threshold size that determines what gets displayed in its entirety and what doesn't is tunable, this works for me.
The root problem that I'm addressing is the pitfall of doing something that prints for ever and ever just because I forgot the ';'. On Wed, 2015-05-27 at 09:41 +0200, Serge Steer wrote: > For me displaying a huge matrix (or huge structure) on the screen has in > general no interest. So it should be convenient to display only its size > and type as it is done when displaying a struct which contain a large array: > -->S.A=rand(1000,1000) > S = > > A: [1000x1000 constant] > This solution can be set as a default display mode, keeping others as > options. > > Serge Steer > > 25/05/2015 15:29, Antoine Monmayrant a écrit : > > > > Le Samedi 23 Mai 2015 00:05 CEST, Samuel Gougeon <[email protected]> a > > écrit: > > > >> Hello Tim, > >> > >> Le 21/05/2015 17:48, Tim Wescott a écrit : > >>> .../... > >>> First, is there a way to get it to stop? ctrl-C does not do the job. > >> In your startup file .scilab or scilab.ini, you may add the instruction > >> lines(1000) > >> in order to turn on the pager and make it prompting the user to continue > >> listing lines after each block of 1000 lines (or whatever you want). > >> At the prompt, CTRL+C + abort works. > > OK, but this also interrupts the execution of any script that display more > > than 1000 lines on the command line! > > This can be particularly annoying when using scripts that process big data > > and output some progression infos on the command line. > > It's never nice to find out the next morning that your script stopped at > > 10% to ask whether it should keep on displaying text. > > For me, this is more a workaround (with one big caveat) than a real > > solution. > > The Julia way of displaying big matrices seems interesting. > > Would it be hard to implement? > > (honest question, I have no idea what work it implies) > > As someone filled a bug/feature request? > > > > Cheers, > > > > Antoine > > > >> Regards > >> Samuel > >> > >> _______________________________________________ > >> users mailing list > >> [email protected] > >> http://lists.scilab.org/mailman/listinfo/users > >> > > > > > > > > > > > > > > _______________________________________________ > > users mailing list > > [email protected] > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > [email protected] > http://lists.scilab.org/mailman/listinfo/users -- Tim Wescott www.wescottdesign.com Control & Communications systems, circuit & software design. Phone: 503.631.7815 Cell: 503.349.8432 _______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
