mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-01 19:17:07 -04:00 
			
		
		
		
	[fix] utils/lib.sh: prefix_stdout show cursor (ANSI escape \e[?25h)
Some piped commands hide the cursor, show cursory when the stream ends. Most often this is a bug of the command which piped. The command should not hide the cursor when it writes to a pipe. I have seen this bug with the package manager (pacman) from ArchLinux. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									4b60c557a9
								
							
						
					
					
						commit
						2a12637f59
					
				| @ -270,6 +270,8 @@ prefix_stdout () { | ||||
|     (while IFS= read line; do | ||||
|         echo -e "${prefix}$line" | ||||
|     done) | ||||
|     # some piped commands hide the cursor, show cursory when the stream ends | ||||
|     echo -en "\e[?25h" | ||||
| } | ||||
| 
 | ||||
| append_line() { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user