Lumail - The console email client

Lua primitives: count_lines()

NOTE: Lumail-legacy has been superseded by Lumail 2.x, which has a wholly unified Lua API.

When in message-mode, set with global_mode, the user interface consists of the display of a single message.

The count_lines() function will count the number of lines in that message body.

For example:

-- Show the message
msg( "This message is " .. count_lines() .. " long" );


This function has been available since version 0.16.

See Also

See also count_messages, delete, is_new, mark_read, mark_unread, save.