mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Fix example demo. (#506)
This commit is contained in:
		 Arthur Sonzogni (slow/sick)
					Arthur Sonzogni (slow/sick)
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							dfdbe1eecf
						
					
				
				
					commit
					9babfea36b
				
			| @@ -92,13 +92,16 @@ | ||||
|     } | ||||
|     term.onBinary(onBinary); | ||||
|     term.onData(onBinary) | ||||
|     term.resize(140,43); | ||||
|     window.Module = { | ||||
|       preRun: () => { | ||||
|         FS.init(stdin, stdout, stderr); | ||||
|       }, | ||||
|       postRun: [], | ||||
|       onRuntimeInitialized: () => { | ||||
|         // Handle screen resize: | ||||
|         if (window.Module._ftxui_on_resize == undefined) | ||||
|           return; | ||||
|  | ||||
|         const fit_addon = new (FitAddon.FitAddon)(); | ||||
|         term.loadAddon(fit_addon); | ||||
|         fit_addon.fit(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user