Fix console copy/paste issue

Fixes #936
This commit is contained in:
Justine Tunney 2023-11-08 09:29:45 -08:00
parent 956e68be59
commit ac125d3e1f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 49 additions and 60 deletions

View file

@ -59,7 +59,7 @@ static textwindows ssize_t sys_write_nt_impl(int fd, void *data, size_t size,
}
// intercept ansi tty configuration sequences
if (isconsole && _weaken(InterceptTerminalCommands)) {
if (isconsole && _weaken(GetConsoleOutputHandle)) {
_weaken(InterceptTerminalCommands)(data, size);
}