|
@@ -35,7 +35,7 @@ import os
|
|
import struct
|
|
import struct
|
|
import getpass
|
|
import getpass
|
|
import cmd
|
|
import cmd
|
|
-import traceback
|
|
|
|
|
|
+#import traceback
|
|
import time
|
|
import time
|
|
import select as uselect
|
|
import select as uselect
|
|
import subprocess as sp
|
|
import subprocess as sp
|
|
@@ -690,7 +690,7 @@ the url must contain http:// or https://."
|
|
|
|
|
|
try:
|
|
try:
|
|
readline.read_history_file(self._historyfile)
|
|
readline.read_history_file(self._historyfile)
|
|
- except Exception, e:
|
|
|
|
|
|
+ except IOError, e:
|
|
pass
|
|
pass
|
|
|
|
|
|
self.prompt = "pwman> "
|
|
self.prompt = "pwman> "
|
|
@@ -833,7 +833,7 @@ def typeset(text, color, bold=False, underline=False):
|
|
else:
|
|
else:
|
|
bold = ""
|
|
bold = ""
|
|
if (underline):
|
|
if (underline):
|
|
- underline = "%d;" % (ANSI.Underline)
|
|
|
|
|
|
+ underline = "%d;" % (ANSI.Underscore)
|
|
else:
|
|
else:
|
|
underline = ""
|
|
underline = ""
|
|
return "\033[%s%s%sm%s\033[%sm" % (bold, underline, color,
|
|
return "\033[%s%s%sm%s\033[%sm" % (bold, underline, color,
|
|
@@ -865,7 +865,7 @@ def text_to_clipboards(text):
|
|
please check your configuration file ... "
|
|
please check your configuration file ... "
|
|
|
|
|
|
|
|
|
|
-def text_to_mcclipboards(text):
|
|
|
|
|
|
+def text_to_mcclipboard(text):
|
|
"""
|
|
"""
|
|
copy text to mac os x clip board
|
|
copy text to mac os x clip board
|
|
credit:
|
|
credit:
|