Journal.count

From OpenEUO
Jump to: navigation, search

Calling Pattern

Call

local j = sl.journal()

later

local a,b = j.count()

Returns

a is a number, the total number of journal messages
b is a number, the number of unread lines since last mark or nextline call

Description

Count returns the total number of lines in the internal message store. Count does not force an update of the store from the journal-- if that is needed, call refresh instead.

See Also