TheCoderMerlin / Curses

Curses provides a Swift object wrapper for the curses programming library for Linux (tested on Ubuntu 16.04, 18.04)
GNU General Public License v3.0
38 stars 16 forks source link

error: cannot find type 'WINDOW' in scope #4

Open Jomy10 opened 1 year ago

Jomy10 commented 1 year ago

Describe the bug error: cannot find type 'WINDOW' in scope

multiple errors appear:

/project_path/.build/checkouts/Curses/Sources/Curses/Curses.swift:173:57: error: cannot find type 'WINDOW' in scope
    func attributeOff(windowHandle:UnsafeMutablePointer<WINDOW>, attributeValue:Int) {
                                                        ^~~~~~
/project_path/.build/checkouts/Curses/Sources/Curses/Curses.swift:177:57: error: cannot find type 'WINDOW' in scope
    func attributeSet(windowHandle:UnsafeMutablePointer<WINDOW>, attributeValue:Int) {
                                                        ^~~~~~

To Reproduce

Environment (please complete the following information):

rickumali commented 1 year ago

I'm having the same issue, and I'm on an older Mac:

rickumali commented 1 year ago

I found a fork of this project here:

https://github.com/jbadger3/Curses

It seems to have made some adjustments to the library so that it could be used on the Mac.