mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Patch for an Issue #910
This commit is contained in:
		
							parent
							
								
									8fdf9ff746
								
							
						
					
					
						commit
						3b06665c9f
					
				| 
						 | 
					@ -1693,8 +1693,11 @@ def getConsoleWidth(default=80):
 | 
				
			||||||
        width = int(os.getenv("COLUMNS"))
 | 
					        width = int(os.getenv("COLUMNS"))
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            with open(os.devnull, 'w') as FNULL:
 | 
					            try:
 | 
				
			||||||
                process = execute("stty size", shell=True, stdout=PIPE, stderr=FNULL)
 | 
					                FNULL = open(os.devnull, 'w')
 | 
				
			||||||
 | 
					            except IOError:
 | 
				
			||||||
 | 
					                FNULL = None
 | 
				
			||||||
 | 
					            process = execute("stty size", shell=True, stdout=PIPE, stderr=FNULL or PIPE)
 | 
				
			||||||
            stdout, _ = process.communicate()
 | 
					            stdout, _ = process.communicate()
 | 
				
			||||||
            items = stdout.split()
 | 
					            items = stdout.split()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user