You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you workaround issue #1 commenting the code that raises exceptions every time asciicast2gif finds unsupported escape characters using this patch:
diff --git a/asciicast2gif/asciicast.py b/asciicast2gif/asciicast.py
index 5a1b3be..1c49f7a 100644
--- a/asciicast2gif/asciicast.py
+++ b/asciicast2gif/asciicast.py
@@ -263,7 +263,7 @@ class ANSITerminal(Screen):
elif char in '\030\031':
self._state = ANSITerminal.TerminalState.OUTSIDE
else:
- raise Exception("Escape sequence ESC \\x%x is not currently supported!" % ord(char))
+ print("Escape sequence ESC \\x%x is not currently supported!" % ord(char))
def _write_escbkt(self, char):
esc_value = to_int(self._esc, 1)
@@ -308,13 +308,13 @@ class ANSITerminal(Screen):
# we don't need to handle bracketed paste mode
pass
else:
- raise Exception("ESC[%sh escape is currently unsupported!" % self._esc)
+ print("ESC[%sh escape is currently unsupported!" % self._esc)
elif char == 'l':
if self._esc == '?2004':
# we don't need to handle bracketed paste mode
pass
else:
- raise Exception("ESC[%sl escape is currently unsupported!" % self._esc)
+ print("ESC[%sl escape is currently unsupported!" % self._esc)
elif char == 'm':
self._write_esc_m()
elif char == 's':
@@ -323,7 +323,7 @@ class ANSITerminal(Screen):
if self._stored_pos is not None:
self.move_to(*self._stored_pos)
elif char in 'STfinhl':
- raise Exception("ESC[%s%s escape is currently unsupported!" % (self._esc, char))
+ print("ESC[%s%s escape is currently unsupported!" % (self._esc, char))
else:
matched = False
if matched:
then converting this asciinema cast file will trigger very large memory allocations that will force you to kill the program (or you will have to restart your computer!)
The text was updated successfully, but these errors were encountered:
If you workaround issue #1 commenting the code that raises exceptions every time
asciicast2gif
finds unsupported escape characters using this patch:then converting this asciinema cast file will trigger very large memory allocations that will force you to kill the program (or you will have to restart your computer!)
The text was updated successfully, but these errors were encountered: