I'm hoping to develop a cross-platform CUI using a curses library in Rust called "pancurses", but I'm encountering a strange problem in windows. For some reason, instead of running the CUI in the current terminal emulator (i.e. cmd), some new terminal emulator is opening and running the CUI, while the stdout is directed to the current terminal. This is different from what I've seen in the windows-curses library in python, for instance so I suspect this is some kind of configuration option in pancurses, pdcurses, or the rust compiler but I haven't been able to find any documentation that seems related. Any help is appreciated.
Edit to include minimum reproducible example (using pancurses 0.17):
extern crate pancurses;
use pancurses::{initscr, noecho};
fn main() {
let window = initscr();
window.refresh();
window.keypad(true);
noecho();
window.getch();
}

pancurses is built on top of ncurses-rs on Linux and pdcurses-sys on Windows.
As mentioned in the README of pdcurses-sys and pancurses:
To enable the win32 feature for pancurses, you can do so by configuring a feature in your Cargo.toml file with this command:
or by adding this to your Cargo.toml: