Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to handle ANSI escape sequences to move cursor #616

Merged
merged 35 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
83f6780
First commit to fix TQDM
jsbautista Jul 29, 2024
95f2498
Fix command F
jsbautista Jul 30, 2024
a711809
add Test to moveCursor
jsbautista Aug 5, 2024
be2f619
Fix Test to moveCursor
jsbautista Aug 5, 2024
548c65f
Fix Test to moveCursor
jsbautista Aug 5, 2024
530ba46
Merge branch 'jupyter:main' into TQDMQtConsole
jsbautista Aug 12, 2024
dea62c7
Add down line action
jsbautista Aug 20, 2024
f8cb1a8
Merge branch 'TQDMQtConsole' of https://github.com/jsbautista/qtconso…
jsbautista Aug 20, 2024
6f82ea8
Merge branch 'jupyter:main' into TQDMQtConsole
jsbautista Aug 20, 2024
d54f69b
Add action move down AnsiCodeProcessor
jsbautista Aug 27, 2024
b492920
Add new behavior to \n
jsbautista Aug 27, 2024
6044edc
Add new behavior to \n
jsbautista Aug 27, 2024
461a8d4
fixTests
jsbautista Aug 27, 2024
83e2f1d
fixTests
jsbautista Aug 27, 2024
3b23c09
Add new behavior to \n
jsbautista Aug 27, 2024
152740a
fixTests
jsbautista Aug 27, 2024
75a53bf
fix behavior to \n
jsbautista Aug 27, 2024
c198d20
fix behavior to \n
jsbautista Aug 27, 2024
380e56c
fixTests
jsbautista Aug 27, 2024
03e83dc
fix behavior to \n
jsbautista Sep 2, 2024
6aa21d6
fixTests
jsbautista Sep 2, 2024
46aa854
fix behavior to \n
jsbautista Sep 2, 2024
7aff3b0
fixTests
jsbautista Sep 2, 2024
9189023
fixTests
jsbautista Sep 2, 2024
7591edd
fixTests
jsbautista Sep 2, 2024
41ea37e
Update qtconsole/console_widget.py
jsbautista Sep 9, 2024
cb7bcaa
Clean code
jsbautista Sep 16, 2024
ebdd625
Merge branch 'jupyter:main' into TQDMQtConsole
jsbautista Sep 16, 2024
7aaff63
Update qtconsole/tests/test_ansi_code_processor.py
jsbautista Sep 24, 2024
42cc431
Clean Code
jsbautista Oct 8, 2024
ddf5a1d
Apply suggestions from code review
jsbautista Oct 17, 2024
a7b4c10
add coment to test
jsbautista Oct 17, 2024
c7b4589
Merge branch 'TQDMQtConsole' of https://github.com/jsbautista/qtconso…
jsbautista Oct 17, 2024
e56dd60
add comment to test
jsbautista Oct 21, 2024
a7ee27f
Update qtconsole/tests/test_ansi_code_processor.py
jsbautista Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions qtconsole/tests/test_ansi_code_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def test_move_cursor_up(self):
"""Are the ANSI commands for the cursor movement actions
(movement up and to the beginning of the line) processed correctly?
"""
#This line moves the cursor up once, then moves it up five more lines.
#Next, it moves the cursor to the beginning of the previous line, and
#finally moves it to the beginning of the fifth line above the current
#position
jsbautista marked this conversation as resolved.
Show resolved Hide resolved
string = '\x1b[A\x1b[5A\x1b[F\x1b[5F'
ccordoba12 marked this conversation as resolved.
Show resolved Hide resolved
i = -1
for i, substring in enumerate(self.processor.split_string(string)):
Expand Down
Loading