Skip to content

Commit

Permalink
FIXES issue behave#38 (and behave#39) with patch from behave#39 (ANSI…
Browse files Browse the repository at this point in the history
… CursorUp (CUU) escape sequence).
  • Loading branch information
jenisys committed Mar 31, 2012
1 parent 6401ddc commit cf9299f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behave/formatter/ansi_escapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

escapes = {
'reset': u'\x1b[0m',
'up': u'\x1b[#1A',
'up': u'\x1b[1A',
}

if 'GHERKIN_COLORS' in os.environ:
Expand All @@ -42,4 +42,4 @@


def up(n):
return u"\x1b[#%dA" % n
return u"\x1b[%dA" % n

0 comments on commit cf9299f

Please sign in to comment.