Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed May 22, 2014
2 parents 009c68d + ee42f94 commit 8b179c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
6 changes: 3 additions & 3 deletions trachet/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def append(self, action):

def resume(self):
self.__mode = _DEBUG_MODE_NONE
#self.__tty.xon()
# self.__tty.xon()

def set_normal_step(self):
self.__mode = _DEBUG_MODE_NORMAL_STEP
Expand All @@ -59,7 +59,7 @@ def set_fuzzy_step(self):

def set_break(self):
self.__mode = _DEBUG_MODE_STOP
#self.__tty.xoff()
# self.__tty.xoff()

def _get_repeat_count(self):
now = time.time()
Expand Down Expand Up @@ -103,4 +103,4 @@ def tick(self):

if __name__ == "__main__":
import doctest
doctest.testmod()
doctest.testmod()
19 changes: 5 additions & 14 deletions trachet/seqdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@
'> ESC ]52;h<ST>' : 'OSC 52 / term+-shell-history (term+.el)',
'> ESC ]52<ST>' : 'OSC 52 - PASTE64 / base64 clipboard read/write operation (xterm)',
'> ESC ]104<ST>' : 'OSC 104 / reset specified color number',
'> ESC ]104<ST>' : 'OSC 104 / reset specified special color number',
'> ESC ]105<ST>' : 'OSC 105 / reset specified special color number',
'> ESC ]110<ST>' : 'OSC 110 / reset VT100 text foreground color',
'> ESC ]111<ST>' : 'OSC 111 / reset VT100 text background color',
'> ESC ]112<ST>' : 'OSC 112 / reset cursor color',
Expand Down Expand Up @@ -1916,8 +1916,6 @@
'> ESC M' : 'RI / moves the cursor up one line in the same column',
'> ESC N' : 'SS2 / temporarily maps the G2 character set into GL or GR, for the next graphic character',
'> ESC O' : 'SS3 / temporarily maps the G3 character set into GL or GR, for the next graphic character',
'> ESC V' : 'SPA / start of guarded area',
'> ESC W' : 'EPA / end of guarded area',
'> ESC \\' : 'ST / String terminator. Ends a DCS, SOS, OSC, PM and APC sequence',
'> ESC c' : 'RIS / full reset',
'> ESC <SP>F' : 'S7C1T',
Expand Down Expand Up @@ -2003,11 +2001,7 @@
'> ESC U' : 'MW / message waiting',
'> ESC V' : 'SPA / start of guarded area',
'> ESC W' : 'EPA / end of guarded area',
'> ESC X<ST>' : 'SOS / start of string',
'> ESC Z' : 'SCI / single character introducer',
'> ESC ]<ST>' : 'OSC',
'> ESC ^<ST>' : 'PM',
'> ESC _<ST>' : 'APC',
'> CSI @' : 'ICH / insert blank characters',
'> CSI [0]@' : 'ICH 1 / insert a blank character',
'> CSI A' : 'CUU / cursor up',
Expand Down Expand Up @@ -2073,7 +2067,7 @@
'> CSI S' : 'SU / scroll up',
'> CSI [0]S' : 'SU 1 / scroll up',
'> CSI T' : 'SD / scroll down',
'> CSI T' : 'SD 1 / scroll down',
'> CSI [0]T' : 'SD 1 / scroll down',
'> CSI [1]T' : 'SD / scroll down %s times',
'> CSI [6]T' : 'Initiate highlight mouse tracking (startx=%s,starty=%s,endx=%s,endy=%s,mousex=%s,mousey=%s)',
'> CSI >T' : 'Title Mode - Reset (xterm)',
Expand Down Expand Up @@ -2155,7 +2149,6 @@
'> CSI ?7783h' : 'DECSET 7783 / enable shortcut override mode (MinTTY)',
'> CSI ?7786h' : 'DECSET 7786 / enable mousewheel reporting (cursor emulation) mode (MinTTY)',
'> CSI ?7787h' : 'DECSET 7787 / enable application mousewheel reporting mode (MinTTY)',
'> CSI ?7700h' : 'DECSET 7700 / enable ambiguous reporting(MinTTY)',
'> CSI ?8428h' : 'DECSET 8428 - RLAMBCHM / treat ambiguous characters as narrow(RLogin)',
'> CSI ?8441h' : 'DECSET 8441 / IME open(RLogin)',
'> CSI ?8442h' : 'DECSET 8442 / application escape keycode mode (RLogin)',
Expand Down Expand Up @@ -2226,7 +2219,6 @@
'> CSI ?7783l' : 'DECRST 7783 / disable shortcut override mode (MinTTY)',
'> CSI ?7786l' : 'DECRST 7786 / disable mousewheel reporting (cursor emulation) mode (MinTTY)',
'> CSI ?7787l' : 'DECRST 7787 / disable application mousewheel reporting mode (MinTTY)',
'> CSI ?7700l' : 'DECRST 7700 / disable ambiguous reporting (MinTTY)',
'> CSI ?8428l' : 'DECRST 8428 - RLAMBCHM / treat ambiguous characters as wide(RLogin)',
'> CSI ?8441l' : 'DECRST 8441 / IME close(RLogin)',
'> CSI ?8442l' : 'DECRST 8442 / normal escape keycode mode (RLogin)',
Expand Down Expand Up @@ -2339,11 +2331,10 @@
'> CSI 2"q' : 'DECSCA 2 / select character protection attribute: DECSED and DECSEL can erase',
'> CSI r' : 'DECSTBM / set top and bottom margins: full size of window',
'> CSI [2]r' : 'DECSTBM / set top and bottom margins: top=%s bottom=%s',
'> CSI [0]s' : 'DECSLRM / set right and left margins, or Save cursor (ANSI.SYS)',
'> CSI [0]s' : 'DECSLRM or Save cursor/ set right and left margins, or Save cursor (ANSI.SYS)',
'> CSI [2]s' : 'DECSLRM / set right and left margins: left=%s right=%s',
'> CSI ?s' : 'save DEC private mode values',
'> CSI ?r' : 'restore DEC private mode values',
'> CSI [0]s' : 'Save cursor (ANSI.SYS)',
'> CSI [0]u' : 'Restore cursor (ANSI.SYS)',
'> CSI t' : 'DECSLPP or Window Manipulation (dtterm)',
'> CSI [1]t' : 'DECSLPP / Resize to %s lines',
Expand Down Expand Up @@ -2478,7 +2469,7 @@ def get():
import conf
for key, value in conf.get().items():
_SEQDB[key] = value
except:
except Exception:
print str(sys.exc_info())
finally:
sys.path.remove(rcdir)
Expand All @@ -2504,7 +2495,7 @@ def _test():
n = match.group(1)
try:
value % tuple([0] * int(n))
except TypeError, e:
except TypeError:
raise Exception("invalid entry: (%s, %s)" % (key, value))
return "ok"

Expand Down
4 changes: 2 additions & 2 deletions trachet/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def set_input(self):
self.__bufferring = False
self._io_mode.set_input()

''' Override Interface tff.EventObserver '''
# Override Interface tff.EventObserver

def handle_esc(self, context, intermediate, final):
if self._xterm_mouse_buffer is not None and self._io_mode.is_input():
Expand Down Expand Up @@ -206,7 +206,7 @@ def handle_ss3(self, context, final):
return False # not handled

def handle_control_string(self, context, prefix, value):
if not self._xterm_mouse_buffer is None and self._io_mode.is_input():
if self._xterm_mouse_buffer is not None and self._io_mode.is_input():
seq = self._xterm_mouse_buffer
self._xterm_mouse_buffer = None
self.handle_invalid(context, seq)
Expand Down
2 changes: 1 addition & 1 deletion trachet/trachet.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _parse_options():
parser.add_option('-b', '--break', dest='breakstart',
action="store_true", default=False,
help='"break" the program at the startup time'
' default: false')
' default: false')

parser.add_option('-m', '--monochrome', dest='monochrome',
action="store_true", default=False,
Expand Down

0 comments on commit 8b179c7

Please sign in to comment.