diff --git a/src/pygbag/support/cpythonrc.py b/src/pygbag/support/cpythonrc.py index 97c7114..90f7b80 100644 --- a/src/pygbag/support/cpythonrc.py +++ b/src/pygbag/support/cpythonrc.py @@ -1475,6 +1475,7 @@ def log(*argv, **kw): async def import_site(__file__, run=True): import builtins + if builtins.LOCK: platform.window.console.error("1473: import_site IS NOT RE ENTRANT") return @@ -1643,4 +1644,4 @@ async def main(): shell.interactive(prompt=True) return None finally: - LOCK = False + builtins.LOCK = False diff --git a/src/pygbag/support/cross/aio/pep0723.py b/src/pygbag/support/cross/aio/pep0723.py index 7b740a2..f4d113d 100644 --- a/src/pygbag/support/cross/aio/pep0723.py +++ b/src/pygbag/support/cross/aio/pep0723.py @@ -238,7 +238,7 @@ async def async_repos(): print( f""" -=============== REDIRECTION TO DEV HOST {repo['-CDN-']} ================ +====== REDIRECT TO DEV HOST {repo['-CDN-']} ======== {abitag=} {apitag=} diff --git a/static/pythons.js b/static/pythons.js index dae8af1..cd9c551 100644 --- a/static/pythons.js +++ b/static/pythons.js @@ -1036,15 +1036,22 @@ async function feat_vtx(debug_hidden) { document.body.appendChild(terminal) } + var console_divider = 1 const cols = get_terminal_cols() - const cons = get_terminal_console() + var cons = get_terminal_console() + if (cons<0) { + console_divider = -cons + cons = 0 + } + const { WasmTerminal } = await import("./vtx.js") const lines = get_terminal_lines() + cons // including virtual get_terminal_console() const py = window.document.body.clientHeight var fntsize = Math.floor(py/lines) - 1 - if (lines<=33) - fntsize = fntsize - 5 + if (lines<=33) { + fntsize = ( fntsize - 5 ) / console_divider + } console.warn("fnt:",window.document.body.clientHeight ,"/", lines,"=", fntsize, " Cols:", cols, "Cons:", cons) vm.vt = new WasmTerminal(