mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
for now, if it's on windows, it's windows terminal #2248
This commit is contained in:
parent
245f9f85c7
commit
b0b4c965a5
@ -1377,7 +1377,7 @@ getpipes(ipipe pipes[static 2]){
|
||||
#endif
|
||||
#else // windows
|
||||
if(!CreatePipe(&pipes[0], &pipes[1], NULL, BUFSIZ)){
|
||||
logerror("couldn't get pipes (%u)\n", GetLastError());
|
||||
logerror("couldn't get pipes\n");
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
@ -1406,6 +1406,7 @@ create_inputctx(tinfo* ti, FILE* infp, int lmargin, int tmargin, int rmargin,
|
||||
if(set_fd_nonblocking(i->stdinfd, 1, &ti->stdio_blocking_save) == 0){
|
||||
i->termfd = tty_check(i->stdinfd) ? -1 : get_tty_fd(infp);
|
||||
memset(i->initdata, 0, sizeof(*i->initdata));
|
||||
i->initdata->qterm = ti->qterm;
|
||||
i->iread = i->iwrite = i->ivalid = 0;
|
||||
i->cread = i->cwrite = i->cvalid = 0;
|
||||
i->initdata_complete = NULL;
|
||||
|
@ -88,6 +88,7 @@ int prepare_windows_terminal(tinfo* ti, size_t* tablelen, size_t* tableused){
|
||||
return -1;
|
||||
}
|
||||
loginfo("verified Windows ConPTY\n");
|
||||
ti->qterm = TERMINAL_MSTERMINAL;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user