Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Dec 18, 2023
1 parent 5716a02 commit aafc489
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
3 changes: 0 additions & 3 deletions pygbag/support/cross/aio/clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import asyncio
import os

WTF = 1


class tui:
# use direct access, it is absolute addressing on raw terminal.
if 0:
Expand Down
23 changes: 12 additions & 11 deletions static/pkpyrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,9 @@ def CSI(*argv):


CSI("2J","f")
with open("/data/data/org.python/assets/pkpy.six","r") as source:
with open("pkpy.six","r") as source:
print(source.read())
print(f"Python {sys.version} pykpocket on Emscripten", '.'.join(map(str, sys._emscripten_info)))
print(">>> ",end=sys.__eot__)



print(f"Python {sys.version} PocketPy::pykpocket edition on Emscripten", '.'.join(map(str, sys._emscripten_info)))


def new_module(name, code):
Expand Down Expand Up @@ -130,9 +126,6 @@ def step():
def step():
global frame
# if not frame % 300:
# print(frame)
for task in self.tasks:
if next(task) is StopIteration:
self.tasks.remove(task)
Expand Down Expand Up @@ -169,10 +162,13 @@ def shelltry(*cmd):
return False
return True





def main():
line = ""
line = "\n"
while line not in ["exit()","quit()"]:
line = embed.readline()
if line:
line = line.rstrip()
fail = False
Expand All @@ -195,7 +191,12 @@ def main():
print()
print('>>> ',end=sys.__eot__)
yield 0
line = embed.readline()
print("bye")


asyncio.get_running_loop().create_task(main())


pkpyrc = 1

0 comments on commit aafc489

Please sign in to comment.