MCPcopy Index your code
hub / github.com/RustPython/RustPython / do

Method do

Lib/_pyrepl/commands.py:231–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

229
230class suspend(Command):
231 def do(self) -> None:
232 import signal
233
234 r = self.reader
235 p = r.pos
236 r.console.finish()
237 os.kill(os.getpid(), signal.SIGSTOP)
238 ## this should probably be done
239 ## in a handler for SIGCONT?
240 r.console.prepare()
241 r.pos = p
242 # r.posxy = 0, 0 # XXX this is invalid
243 r.dirty = True
244 r.console.screen = []
245
246
247class up(MotionCommand):

Callers

nothing calls this directly

Calls 3

finishMethod · 0.45
killMethod · 0.45
prepareMethod · 0.45

Tested by

no test coverage detected