mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-28 03:44:33 +00:00 
			
		
		
		
	Fix memzoom on Windows
Right now we can't call poll() on file and fifos on Windows. So we work around that by simply blocking on keyboard input. This is OK because on Windows we can't use /proc/*/mem for realtime monitoring, so there's no reason not to block. See #65
This commit is contained in:
		
							parent
							
								
									f3baa05195
								
							
						
					
					
						commit
						cc56038b05
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -97,6 +97,7 @@ static noasan textwindows wontreturn void WinMainNew(void) { | |||
|     SetConsoleCP(kNtCpUtf8); | ||||
|     SetConsoleOutputCP(kNtCpUtf8); | ||||
|     inhand = GetStdHandle(pushpop(kNtStdInputHandle)); | ||||
|     SetEnvironmentVariable(u"TERM", u"xterm-truecolor"); | ||||
|     GetConsoleMode(inhand, &__ntconsolemode); | ||||
|     SetConsoleMode(inhand, kNtEnableProcessedInput | kNtEnableLineInput | | ||||
|                                kNtEnableEchoInput | kNtEnableMouseInput | | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue