Journal.count

From OpenEUO
Revision as of 20:23, 8 January 2011 by Ximan (Talk | contribs) (Created page with "== 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 ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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