Removed the temporary range objects from ansiterm

This commit is contained in:
Thomas Nagy 2014-01-06 13:03:27 +01:00
parent cb3950ed1c
commit 9db44ff4a5
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 2 additions and 2 deletions

View File

@ -183,9 +183,9 @@ else:
c = int(c)
else:
c = to_int(c, 0)
if c in range(30,38): # fgcolor
if 29 < c < 38: # fgcolor
attr = (attr & 0xfff0) | self.rgb2bgr(c-30)
elif c in range(40,48): # bgcolor
elif 39 < c < 48: # bgcolor
attr = (attr & 0xff0f) | (self.rgb2bgr(c-40) << 4)
elif c == 0: # reset
attr = self.orig_sbinfo.Attributes