lines
sets and queries the display width and pagination for the console
Syntax
lines(nl) lines(nl, nc) lines(ncl) ncl = lines()
Arguments
- nl
An integer, the number of lines for vertical paging control.
If 0: no vertical paging control is done.
If -1: reset vertical paging control to current size of the window.
- nc
An integer, the number of column of output. Used for formatting output
- ncl
A 1x2 vector [nc, nl]
Description
lines
handles Scilab display paging.
lines()
returns the vector [# columns, #
rows]
currently used by Scilab for displaying the
results.
lines(nl)
sets the number of displayed lines
(before user is asked for more) to nl
.
lines(0)
disables vertical paging.
lines(nl,nc)
and lines([nc,nl])
changes also the size of the output
to nc
columns.
When Scilab is launched without -nw option, the
lines
parameters are automatically set according to the
output window size, these parameters are also automatically modified when
the window is resized.
Examples
--> lines(0,100) --> rand(2,8) ans = 0.2113249 0.0002211 0.6653811 0.8497452 0.8782165 0.5608486 0.7263507 0.5442573 0.7560439 0.3303271 0.6283918 0.685731 0.068374 0.6623569 0.1985144 0.2320748 --> lines(0,65) --> rand(2,8) ans = column 1 to 5 0.2312237 0.8833888 0.3076091 0.2146008 0.3616361 0.2164633 0.6525135 0.9329616 0.312642 0.2922267 column 6 to 8 0.5664249 0.3321719 0.5015342 0.4826472 0.5935095 0.4368588
See also
History
Version | Description |
5.4.0 |
|
Report an issue | ||
<< input | Console | mode >> |