Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm-play-gui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roman Alifanov
eepm-play-gui
Commits
c170516c
Commit
c170516c
authored
Oct 28, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command_runner: clearing textview first
parent
a2cd273c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
command_runner.py
src/tools/command_runner.py
+5
-0
No files found.
src/tools/command_runner.py
View file @
c170516c
...
@@ -18,6 +18,10 @@ class CommandRunner:
...
@@ -18,6 +18,10 @@ class CommandRunner:
GLib
.
idle_add
(
self
.
dialog
.
logdialog_textview
.
scroll_to_mark
,
GLib
.
idle_add
(
self
.
dialog
.
logdialog_textview
.
scroll_to_mark
,
self
.
textbuffer
.
get_insert
(),
0
,
False
,
0.0
,
1.0
)
self
.
textbuffer
.
get_insert
(),
0
,
False
,
0.0
,
1.0
)
def
clear_textview
(
self
):
self
.
textbuffer
.
set_text
(
""
)
self
.
dialog
.
logdialog_textview
.
scroll_to_mark
(
self
.
textbuffer
.
get_insert
(),
0
,
False
,
0.0
,
1.0
)
def
remove_ansi_escape_sequences
(
self
,
text
):
def
remove_ansi_escape_sequences
(
self
,
text
):
result
=
[]
result
=
[]
in_escape
=
False
in_escape
=
False
...
@@ -80,6 +84,7 @@ class CommandRunner:
...
@@ -80,6 +84,7 @@ class CommandRunner:
break
break
def
process_runner
(
self
,
command
):
def
process_runner
(
self
,
command
):
self
.
clear_textview
()
process
=
None
process
=
None
sel
=
None
sel
=
None
master_fd
,
slave_fd
=
pty
.
openpty
()
master_fd
,
slave_fd
=
pty
.
openpty
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment