Module: Raggle::Interfaces::NcursesInterface

Module | Raggle::Interfaces::NcursesInterface
In: | raggle (CVS)

NcursesInterface - methods and classes specific to the Ncurses interface of Raggle.

### Methods

add_feed drop_to_shell edit_feed find_entry find_feeds get_input get_key_bindings get_win_id goto_old_win handle_mouse init main_loop mark_current_as_unread mark_items_as_read mark_items_as_unread open_link populate_feed_win populate_item_win resize_term restore_screen save_bookmark save_screen save_theme select_cat select_feed select_id select_item select_next_unread select_prev_unread select_unread_item set_active_win set_status

### Classes and Modules

Module Raggle::Interfaces::NcursesInterface::Key
Class Raggle::Interfaces::NcursesInterface::ListWindow
Class Raggle::Interfaces::NcursesInterface::TextWindow
Class Raggle::Interfaces::NcursesInterface::Window

### Constants

DIRECTION_BACKWARD | = | -1
DIRECTION_FORWARD | = | 1

### Public Class methods

add_feed(opts = nil)

add a new feed from ncurses

drop_to_shell()

drop to sub-shell

edit_feed(feedopt)

edit the current feed’s options

find_entry(win, direction = 1)

find entry in window

find_feeds()

search for feeds from ncurses

get_input(msg = 'default_input')

get input from the user via the status line

get_key_bindings()

Formats info about key bindings into a hash

get_win_id(str)

get window id by key

goto_old_win()

Go to last selected window (that exists)

handle_mouse(ev)

handle mouse events

init()

initialize Ncurses interface

main_loop()

main input loop for Ncurses interface

mark_current_as_unread()

mark current item as unread

mark_items_as_read()

mark all items in feed as read

mark_items_as_unread()

mark all items in feed as unread

open_link(item)

open an item’s url in Ncurses mode

populate_feed_win()

populate feed window

populate_item_win(feed_id)

populate item window

resize_term()

terminal resize handler

restore_screen()

restore saved screen settings

save_bookmark()

save bookmark for current item

save_screen()

save screen mode, drop out of ncurses

save_theme(quit=true)

save theme

select_cat(str)

select the specified category

select_feed(id)

set active feed by id

select_id(id)

set active item by id in feeds list

select_item(item)

set active item by id in item window list

select_next_unread()

select next unread item

select_prev_unread()

select previous unread item

select_unread_item(direction)

Select next unread item in direction `direction`. Direction can be either `DIRECTION_FORWARD` or `DIRECTION_BACKWARD`

set_active_win(a_win)

set active window

set_status(str)

set status bar message (or log message, if running as daemon)

[Validate]