TerminalView.Count (gb.form.terminal)

Property Read Count As Integer

Return the terminal view lines count.


The line count is not a reliable way to detect how many lines of text the TerminalView has visible.

For example if you are running bash in a TerminalView and you press the up key to go through the command history you may get a long line of text that takes up maybe 3 lines.

The Count value will grow to 3 at this point but if you press the up key again or down key and the next history command is small and only uses one line or you delete the long text the Count property will still read as 3.

The TerminalView.Count value will grow to accommodate long texts but it will not shrink back when a smaller text replaces it.