Lumail - The console email client

Lua primitives: scroll_text_up()

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

When in text-mode, set with global_mode, the user interface consists of some text set by either show_text() or show_file_contents().

The scroll_text_up() function allows the display to be scrolled up.

For example:

function up()
   m = global_mode()

   if ( string.find( m, "maildir" ) ) then
      scroll_maildir_up( 1 )
   elseif (string.find(m, "index" ) ) then
      scroll_index_up( 1 )
   elseif (string.find(m, 'message') ) then
      scroll_message_up( 1 )
   elseif (string.find(m, 'text') ) then
      scroll_text_up( 1 )
      msg( "up() not implemented for mode:" .. m )

-- bind the `up` function to the obvious keys.
keymap['global']['k'] = 'up()'
keymap['global']['KEY_UP'] = 'up()'


This function has been available since version 0.25.

See Also

See also scroll_text_down, scroll_text_to, show_file_contents, show_text.