Journal.clear

From OpenEUO
Jump to: navigation, search

Calling Pattern

Call

local j = sl.journal()

later

local r = j.clear()

Returns

r is a number, the number of new journal messages since last call to clear or refresh

Description

Clear empties the internal store, resets the reading marker used by nextline and calls [[journal.refresh|refresh] to grab any new journal messages.

See Also