Remove Escape handling in Echo command and drop virtrepl

This commit is contained in:
RetiredWizard 2025-06-19 18:06:04 -04:00
parent 37b4479f28
commit 44b571a9e3
4 changed files with 2 additions and 52 deletions

View file

@ -73,7 +73,7 @@ def PyDOS():
global envVars
if "envVars" not in globals().keys():
envVars = {}
_VER = "1.51"
_VER = "1.51-fruitjam"
prmpVals = ['>','(',')','&','|','\x1b','\b','<','=',' ',_VER,'\n','$','']
print("Starting Py-DOS...")
@ -674,7 +674,7 @@ def PyDOS():
elif args[1].upper() == 'OFF':
batEcho = False
else:
print(cmdLine[5:].replace("\e",chr(27)).replace('\x1b',chr(27)).replace("\E",chr(27)).replace('\X1B',chr(27)))
print(cmdLine[5:])
elif cmd == "PAUSE":
anyKey()

View file

@ -1,46 +0,0 @@
import os
from supervisor import reload
try:
from codeop import compile_command
except:
pass
print("REPL in (Circuit-)Python (type exit to close)")
__cmd = ""
while True:
if 'compile_command' in dir():
# 9.0.0 alpha 7 or later supports multiple line statements
__line = input(",,, " if __cmd else "=>> " )
if __cmd:
__cmd += ("\n" + (" " if __line != "" else "") + __line)
else:
if __line.lower() == 'exit':
break
__cmd = __line
try:
if compile_command(__cmd):
exec(compile_command(__cmd))
__cmd = ""
except Exception as __err:
print("*ERROR* Exception:",str(__err))
__cmd = ""
else:
# Pre 9.0.0 alpha 7 code or Micropython (single line statments only)
__line = input("=>> ")
if __line.lower() == 'exit':
break
__result = None
try:
exec('__result='+__line)
except:
try:
exec(__line)
except Exception as err:
print("*ERROR* Exception:",str(err))
if __result != None and __line.find('=') == -1:
print(__result)
reload()

View file

@ -1,4 +0,0 @@
{
"title": "Virtual REPL",
"icon": "virtrepl.bmp"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB