mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
update of beep
This commit is contained in:
parent
9ec9d223e1
commit
b9ff91b6e9
|
@ -1506,6 +1506,7 @@ def beep():
|
|||
|
||||
if sys.platform == 'linux2':
|
||||
try:
|
||||
if os.path.exists('/dev/audio'):
|
||||
audio = file('/dev/audio', 'wb')
|
||||
|
||||
for i in xrange(250):
|
||||
|
@ -1513,6 +1514,12 @@ def beep():
|
|||
audio.write(chr(0) * 4)
|
||||
|
||||
audio.close()
|
||||
else:
|
||||
import curses
|
||||
|
||||
curses.initscr()
|
||||
curses.beep()
|
||||
curses.endwin()
|
||||
except:
|
||||
dataToStdout('\a', True)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user