Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct method invoked to set widget background color #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

movitto
Copy link

@movitto movitto commented Dec 2, 2017

Noticed that invoking 'setBackgroundColor' on any widget results against the current library results in an error. Take the following example:

require 'ncurses'
require 'cdk'

win = Ncurses.initscr
CDK::Draw.initCDKColor
scr = CDK::SCREEN.new(win)

widget = CDK::SLIDER.new(scr, 5, 5, "Foo", "Bar",
                         ' '.ord, 30, 1, 1, 10, 1, 2, false, false)

widget.setBackgroundColor("</29>")
widget.activate([])

With the attached patch, this succeeds in setting the widget color

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant