|
|
|
| Description |
| A simple text UI for hledger, based on the vty library.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| The application state when running the vty command.
| | Constructors | | AppState | | | av :: Vty | the vty context
| | aw :: Int | window width
| | ah :: Int | window height
| | amsg :: String | status message
| | aopts :: [Opt] | command-line opts
| | aargs :: [String] | command-line args at startup
| | ajournal :: Journal | parsed journal
| | abuf :: [String] | lines of the current buffered view
| | alocs :: [Loc] | user's navigation trail within the UI
^ never null, head is current location
|
|
| Instances | |
|
|
|
| A location within the user interface.
| | Constructors | | Loc | | | scr :: Screen | one of the available screens
| | sy :: Int | viewport y scroll position
| | cy :: Int | cursor y position
| | largs :: [String] | command-line args, possibly narrowed for this location
|
|
| Instances | |
|
|
|
| The screens available within the user interface.
| | Constructors | | BalanceScreen | like hledger balance, shows accounts
| | RegisterScreen | like hledger register, shows transaction-postings
| | PrintScreen | like hledger print, shows journal transactions
| LedgerScreen -- ^ shows the raw journal
|
| Instances | |
|
|
|
| Run the vty (curses-style) ui.
|
|
|
| Update the screen, wait for the next event, repeat.
|
|
|
| The number of lines currently available for the main data display area.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Scroll down by page height or until we can just see the last line,
without moving the cursor, or if we are already scrolled as far as
possible then move the cursor to the last line.
|
|
|
| Scroll up by page height or until we can just see the first line,
without moving the cursor, or if we are scrolled as far as possible
then move the cursor to the first line.
|
|
|
| Push a new UI location on to the stack.
|
|
|
|
|
|
|
|
|
|
|
| Get the filter pattern args in effect for the current ui location.
|
|
|
|
|
| Enter a new screen, with possibly new args, adding the new ui location to the stack.
|
|
|
|
|
| Regenerate the display data appropriate for the current screen.
|
|
|
|
|
|
|
| Get the account name currently highlighted by the cursor on the
balance screen. Results undefined while on other screens.
|
|
|
| Get the full name of the account being displayed at a specific line
within the balance command's output.
|
|
|
| If on the print screen, move the cursor to highlight the specified entry
(or a reasonable guess). Doesn't work.
|
|
|
| Get the transaction containing the posting currently highlighted by
the cursor on the register screen (or best guess). Results undefined
while on other screens.
|
|
|
|
| padClipString :: Int -> Int -> String -> [String] | Source |
|
|
| renderString :: Attr -> String -> Image | Source |
|
|
| renderStatus :: Int -> String -> Image | Source |
|
|
|
|
|
| Produced by Haddock version 2.6.1 |