mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 20:37:08 -05:00 
			
		
		
		
	Fix stty detection
This commit is contained in:
		@@ -2999,7 +2999,7 @@ def parseOpts():
 | 
			
		||||
		try:
 | 
			
		||||
			sp = subprocess.Popen(['stty', 'size'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 | 
			
		||||
			out,err = sp.communicate()
 | 
			
		||||
			return out.split()[1]
 | 
			
		||||
			return int(out.split()[1])
 | 
			
		||||
		except:
 | 
			
		||||
			pass
 | 
			
		||||
		return None
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user