MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / line_range

Method line_range

pye.py:347–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

345 def mark_order(self, line, col):
346 return col - self.mark[1] if self.mark[0] == line else line - self.mark[0]
347 def line_range(self):
348 res = self.mark_range()
349 return (res[0], res[2]) if res[3] > 0 else (res[0], res[2] - 1)
350 def line_edit(self, prompt, default, zap=None):
351 push_msg = lambda msg: self.wr(msg + Editor.TERMCMD[13] * len(msg))
352 self.goto(Editor.height, 0)

Callers 1

handle_edit_keysMethod · 0.95

Calls 1

mark_rangeMethod · 0.95

Tested by

no test coverage detected