LINES (int)

Character height of terminal

Description

LINES returns the cell height of the terminal.

This is a reserved variable so it cannot be changed.

Detail

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.

See Also


This 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 Wed Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.