mirror of
				https://github.com/troglobit/editline.git
				synced 2025-11-01 01:01:34 +08:00 
			
		
		
		
	Add tty_flush() to rl_forced_update_display()
Forcing update should flush, otherwise weird stuff happen when writing to console asynchronously (cursor is moved, text is not displayed). Signed-off-by: Jakub Pawlowski <jakubpawlo@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
		 Jakub Pawlowski
					Jakub Pawlowski
				
			
				
					committed by
					
						 Joachim Nilsson
						Joachim Nilsson
					
				
			
			
				
	
			
			
			 Joachim Nilsson
						Joachim Nilsson
					
				
			
						parent
						
							59a2db7217
						
					
				
				
					commit
					edc38768ff
				
			| @@ -1170,6 +1170,7 @@ void rl_clear_message(void) | |||||||
| void rl_forced_update_display() | void rl_forced_update_display() | ||||||
| { | { | ||||||
|     redisplay(); |     redisplay(); | ||||||
|  |     tty_flush(); | ||||||
| } | } | ||||||
|  |  | ||||||
| char *readline(const char *prompt) | char *readline(const char *prompt) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user