Lesson 4 Pancurses and macbooks?

Skip to first unread message

Mitch Raful

Jan 27, 2021, 8:44:17 AM1/27/21
to Begin Rust
Do we need pancurses for mac? The docs say it is for Windows and Linux.  If not what would mac's use instead?

 Compiling pancurses v0.16.1
error[E0308]: mismatched types
   --> /Users/mitch/.cargo/registry/src/github.com-1ecc6299db9ec823/pancurses-0.16.1/src/window.rs:372:39
372 |         unsafe { curses::wmouse_trafo(self._window, &mut mut_y, &mut mut_x, to_screen as u8); }
    |                                       ^^^^^^^^^^^^ expected *-ptr, found `i8`
    = note: expected raw pointer `*mut *mut i8`
               found raw pointer `*mut i8`

Posted on the blog as well.




Jan 27, 2021, 9:42:39 AM1/27/21
to Mitch Raful, Begin Rust

I’m guessing this is about the Rust Crash Course, not the book, right?


I thought pancurses used to work on Mac, I’m surprised it doesn’t. You may be able to adapt the exercise to work with a similar library, such as ncurses.

You received this message because you are subscribed to the Google Groups "Begin Rust" group.
To unsubscribe from this group and stop receiving emails from it, send an email to begin-rust+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/begin-rust/50bbaaf8-8e1d-4699-a9aa-f5be7f536217n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
0 new messages