mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Probable fix for an Issue #908
This commit is contained in:
@@ -1693,7 +1693,8 @@ def getConsoleWidth(default=80):
|
|||||||
width = int(os.getenv("COLUMNS"))
|
width = int(os.getenv("COLUMNS"))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
process = execute("stty size", shell=True, stdout=PIPE, stderr=PIPE)
|
with open(os.devnull, 'w') as FNULL:
|
||||||
|
process = execute("stty size", shell=True, stdout=PIPE, stderr=FNULL)
|
||||||
stdout, _ = process.communicate()
|
stdout, _ = process.communicate()
|
||||||
items = stdout.split()
|
items = stdout.split()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user