RubyGems Navigation menu

curses-extension 1.1.0

The attributes and functions included in this gem: Attribute | Description ----------|-------------------------------------------------------- color | Set the windows color to an already initiated color pair with init_pair(index, forground, backround) fg | Foreground color for window (0-255) bg | Background color for window (0-255) attr | Attributes for window (such as Curses::A_BOLD) - string with "\|" (such as Curses::A_BOLD \| Curses::A_UNDERLINE) update | Whether to update the window on the next refresh Function | Description --------------------|-------------------------------------------------------- clr | Clears window without flicker (win.clear flickers) clr_to_cur_pos | Clears the window up to the current line clr_from_cur_pos | Clears the rest of the window after the current line fill | Fill window with color as set by :color ( or :bg if not :color is set) fill_to_cur_pos | Fill the window up to the current line fill_from_cur_pos | Fill the rest of the window after the current line p(text) | Write text to window with color or fg/bg and attributes (will handle the exceptions if no colors are set) pclr(text) | As `p(text)` but also clears the rest of the window pa(fg,bg,attr,text) | Write text to window with specified fg, bg and attribute(s) paclr(text) | As pa(text) but also clears the rest of the window The curses_template.rb includes the class extension and serves as the basis for my curses applications.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 3.0.1 - July 14, 2023 (10 KB)
  2. 3.0 - July 13, 2023 (9.5 KB)
  3. 2.3 - July 10, 2023 (9 KB)
  4. 2.2 - July 09, 2023 (8.5 KB)
  5. 2.1 - July 07, 2023 (8.5 KB)
  6. 1.1.0 - September 25, 2021 (7 KB)
Show all versions (13 total)

Runtime Dependencies (1):

curses ~> 1.3, >= 1.3.2

Owners:

Pushed by:

Authors:

  • Geir Isene

SHA 256 checksum:

3ead2a827c803006f3a712c78872ff3dc7e43887a5a40dafe2724f5f45204601

Total downloads 8,793

For this version 1,274

License:

Unlicense

Required Ruby Version: >= 0

Links: