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