LINES
(int)Character height of terminal
LINES
returns the cell height of the terminal.
This is a reserved variable so it cannot be changed.
The Murex controlling terminal is assumed to be the terminal. If Stdout cannot be successfully queried for its dimensions, for example Murex is a piped rather than controlling a TTY, then $LINES
will generate an error:
» exec $MUREX_EXE -c 'out $LINES' -> cat
Error in `out` ( 1,1):
Command: out $LINES
Error: cannot assign value to $LINES: inappropriate ioctl for device
> Expression: out $LINES
> : ^
> Character : 9
Error in `/Users/laurencemorgan/dev/go/src/github.com/lmorg/murex/murex` (0,1): exit status 1
This error can be caught via ||
, try
et al.
exec
): Runs an executabletry
): Handles non-zero exits inside a block of codeCOLUMNS
(int): Character width of terminalMUREX_EXE
(path): Absolute path to running shellint
: Whole number (primitive)||
Or Logical Operator: Continues next operation only if previous operation failsThis document was generated from gen/variables/LINES_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Tue Dec 10 22:56:57 UTC 2024 against commit 60f05a260f05a227caf73dd5b3478e3cb3f4bb24e46745b.
Current version is 6.4.1005 (develop) which has been verified against tests cases.