pancurses icon indicating copy to clipboard operation
pancurses copied to clipboard

Update `newterm()` to return a `Window`

Open gyscos opened this issue 5 years ago • 4 comments

To make newterm useful, we need a way to access the screen object. This can be done through stdscr() (see #43) or by returning a Window from newterm, so that it matches initscr. This PR does the second option.

gyscos avatar Mar 04 '19 03:03 gyscos

@gyscos Hi, I need this also. Wondered how/if you worked around it?

insidewhy avatar Nov 10 '19 05:11 insidewhy

I have not worked around it so far.

This PR currently fails on Windows - I forgot if it ever worked (and something changed), or if I just missed it in the first place.

gyscos avatar Nov 10 '19 05:11 gyscos

I would like to see this one merged. There was anything wrong with the windows code? I will have a look for you.

TimonPost avatar Jan 03 '20 06:01 TimonPost

pdcurses function returns a SCREEN while window::new_window expects an WINDOW

   pub fn newterm(arg1: *const ::std::os::raw::c_char,
                   arg2: *mut FILE,
                   arg3: *mut FILE)
                   -> *mut SCREEN;

TimonPost avatar Jan 03 '20 06:01 TimonPost