Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
3aabfbe0
Commit
3aabfbe0
authored
Nov 04, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP #575: support raw !!
parent
9e811f8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
pronsole.py
printrun/pronsole.py
+2
-2
pronterface.py
printrun/pronterface.py
+3
-3
No files found.
printrun/pronsole.py
View file @
3aabfbe0
...
...
@@ -1221,8 +1221,8 @@ class pronsole(cmd.Cmd):
def
recvcb_actions
(
self
,
l
):
if
l
.
startswith
(
"!!"
):
self
.
do_pause
(
None
)
msg
=
l
.
split
(
" "
,
1
)
[
1
]
if
self
.
silent
is
False
:
self
.
logError
(
msg
.
ljust
(
15
))
msg
=
l
.
split
(
" "
,
1
)
if
len
(
msg
)
>
1
and
self
.
silent
is
False
:
self
.
logError
(
msg
[
1
]
.
ljust
(
15
))
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
flush
()
return
True
...
...
printrun/pronterface.py
View file @
3aabfbe0
...
...
@@ -1676,9 +1676,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if
l
.
startswith
(
"!!"
):
if
not
self
.
paused
:
wx
.
CallAfter
(
self
.
pause
)
msg
=
l
.
split
(
" "
,
1
)
[
1
]
if
not
self
.
p
.
loud
:
wx
.
CallAfter
(
self
.
addtexttolog
,
msg
+
"
\n
"
)
msg
=
l
.
split
(
" "
,
1
)
if
len
(
msg
)
>
1
and
not
self
.
p
.
loud
:
wx
.
CallAfter
(
self
.
addtexttolog
,
msg
[
1
]
+
"
\n
"
)
return
True
elif
l
.
startswith
(
"//"
):
command
=
l
.
split
(
" "
,
1
)[
1
]
...
...
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