class BidirectionalNewIterator(BidirectionalIterator):
Known subclasses: unicodes_api.cli.HackerMixerInteractive
Terminal keypress class that allows you to navigate collections.
| Method | setup |
Setup class. |
| Method | new |
menu item new. |
| Method | next |
next navigation. |
| Method | prev |
previous navigation. |
Inherited from BidirectionalIterator:
| Class Variable | NAME |
subcommand name. |
| Class Variable | PAD_MAX_HEIGHT |
initial setting of curses window size. |
| Method | __init__ |
Init class. |
| Instance Variable | popts |
Parser options. |
| Instance Variable | is_mouse |
initial setting for enabling/disabling mouse interaction. |
| Instance Variable | args |
future argparse.Namespace value. |
| Instance Variable | highlight_vals |
values to hightlight. |
| Instance Variable | height |
terminal max height. |
| Instance Variable | width |
terminal max width. |
| Instance Variable | nav |
Navigation group. |
| Instance Variable | items |
output lines. |
| Method | mouse_callback |
setup argparse options. |
| Method | setup_popts |
setup argparse options. |
| Method | set_args |
Set argparse args. |
| Method | toggle_mouse |
toggle mouse switch. |
| Instance Variable | collection |
collection of values. |
| Instance Variable | index |
Current collection value. |
| Instance Variable | txt |
supplemental messages. |
| Instance Variable | kp |
initial key press value. |
| Method | getch |
Get next keypress. |
| Property | current_value |
return current value. |
| Static Method | get_input |
Get user input through the user interface and return it. |
| Method | pad_refresh |
Refresh screen. |
| Method | mouseclick |
Scrolling the window when pressing up/down arrow keys |
| Method | scroll |
Scrolling the window when pressing up/down arrow keys |
| Instance Variable | pad_pos |
initial pad position. |
| Instance Variable | win |
Main curses window. |
| Instance Variable | pad |
pad value. |
| Method | run |
Run cli command. |
| Method | _print_menu |
Output text. |
| Method | _trywrite |
Attempt to write, and pass if failure occurs. |
| Method | _dowrite |
perform a bunch of operations to ensure the curses screen renders properly. |
| Static Method | _get_mouse_breakout |
Get character / word / line from where the mouse is clicked. |
| Method | _run |
run program (for reals). |