mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Speedup utoi by loading numbers in 8 byte chunks
This commit is contained in:
@@ -213,7 +213,7 @@ class TestParser(BaseTest):
|
||||
self.ae(str(s.line(0)), 'xy bc')
|
||||
pb('x\033[2;7@y', 'x', ('CSI code @ has 2 > 1 parameters',), 'y')
|
||||
pb('x\033[2;-7@y', 'x', ('CSI code @ has 2 > 1 parameters',), 'y')
|
||||
pb('x\033[-2@y', 'x', ('CSI code @ is not allowed to have negative parameter (-2)',), 'y')
|
||||
pb('x\033[-0001234567890@y', 'x', ('CSI code @ is not allowed to have negative parameter (-1234567890)',), 'y')
|
||||
pb('x\033[2-3@y', 'x', ('Invalid character in CSI: 3 (0x33), ignoring the sequence',), '@y')
|
||||
pb('x\033[@y', 'x', ('screen_insert_characters', 1), 'y')
|
||||
pb('x\033[345@y', 'x', ('screen_insert_characters', 345), 'y')
|
||||
@@ -226,6 +226,7 @@ class TestParser(BaseTest):
|
||||
pb('\033[3;2;H', ('screen_cursor_position', 3, 2))
|
||||
pb('\033[00000000003;0000000000000002H', ('screen_cursor_position', 3, 2))
|
||||
self.ae(s.cursor.x, 1), self.ae(s.cursor.y, 2)
|
||||
pb('\033[0001234567890H', ('screen_cursor_position', 1234567890, 1))
|
||||
pb('\033[J', ('screen_erase_in_display', 0, 0))
|
||||
pb('\033[?J', ('screen_erase_in_display', 0, 1))
|
||||
pb('\033[?2J', ('screen_erase_in_display', 2, 1))
|
||||
|
||||
Reference in New Issue
Block a user