Skip to content

Commit

Permalink
Allow ^X to exit F mode on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwsw committed Dec 2, 2020
1 parent 0ea0cee commit 26e91bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions os.c
Expand Up @@ -167,6 +167,14 @@ iread(fd, buf, len)
return (READ_INTR);
}
}
#else
#if MSDOS_COMPILER==WIN32C
if (win32_kbhit() && WIN32getch() == CONTROL('X'))
{
sigs |= S_INTERRUPT;
return (READ_INTR);
}
#endif
#endif
n = read(fd, buf, len);
#if 1
Expand Down

0 comments on commit 26e91bd

Please sign in to comment.