Ophidian Code Editor
terminal = "auto"
docked = false
xterm = true
[[fetch]]
files = ['main.py','Ophidian.py','string_with_arrows.py']
Output:
from js import get_code
import js
import asyncio
from pyscript import Element
import main
import Ophidian
import string_with_arrows
import time
def exe():
val = get_code()
if val.isspace() == False:
# Brute force method to dodge an error i dont know how to fix
out = main.execute("WRITE(\"\")\n"+get_code())
paragraph = Element("output")
paragraph.write(str(out))
else:
paragraph.write("")
async def adjust_term_size(columns, rows):
xterm = await js.document.querySelector('py-terminal').xtermReady
xterm.resize(columns, rows)
asyncio.ensure_future(adjust_term_size(60,20))