Compare commits
2 Commits
314ea65427
...
4eee568840
Author | SHA1 | Date | |
---|---|---|---|
4eee568840 | |||
f05d866d84 |
|
@ -10,13 +10,13 @@ def get_app_class(template):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for file in os.listdir(path):
|
for file in os.listdir(path):
|
||||||
print(file)
|
self.console.write(file)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
try:
|
try:
|
||||||
os.stat(path)
|
os.stat(path)
|
||||||
print(path)
|
self.console.write(path)
|
||||||
except OSError:
|
except OSError:
|
||||||
print(f"ls: cannot access '{path}': No such file or directory")
|
self.console.write(f"ls: cannot access '{path}': No such file or directory")
|
||||||
|
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ def get_app_class(template):
|
||||||
for pid, app in apps.items():
|
for pid, app in apps.items():
|
||||||
args = app.argv[1:]
|
args = app.argv[1:]
|
||||||
name = app.name
|
name = app.name
|
||||||
print(f'{pid} {name} {args}')
|
self.console.write(f'{pid} {name} {args}')
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
return App
|
return App
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import circuitos.exceptions
|
import fibonaccios.exceptions
|
||||||
import shlex
|
import shlex
|
||||||
import console
|
import console
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ def get_app_class(template):
|
||||||
self.jump('prompt')
|
self.jump('prompt')
|
||||||
|
|
||||||
def F_prompt(self):
|
def F_prompt(self):
|
||||||
self.console.write(b'CicuitOS sh # ')
|
self.console.write(b'FibonacciOS sh # ')
|
||||||
self.store['buf'] = []
|
self.store['buf'] = []
|
||||||
self.jump('input')
|
self.jump('input')
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ def get_app_class(template):
|
||||||
pid = self.os.launch(*line)
|
pid = self.os.launch(*line)
|
||||||
self.wait(pid)
|
self.wait(pid)
|
||||||
self.transfer_console(pid)
|
self.transfer_console(pid)
|
||||||
except circuitos.exceptions.AppNotFound as e:
|
except fibonaccios.exceptions.AppNotFound as e:
|
||||||
print('error: app not found')
|
print('error: app not found')
|
||||||
self.jump('prompt')
|
self.jump('prompt')
|
||||||
|
|
||||||
|
|
4
code.py
4
code.py
|
@ -1,2 +1,2 @@
|
||||||
import circuitos
|
import fibonaccios
|
||||||
circuitos.run()
|
fibonaccios.run()
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import bin #this is at the end of the script in case any functions from bin
|
import bin #this is at the end of the script in case any functions from bin
|
||||||
#depend on anything here
|
#depend on anything here
|
||||||
from circuitos.exceptions import *
|
from fibonaccios.exceptions import *
|
||||||
from circuitos.apploader import get_app
|
from fibonaccios.apploader import get_app
|
||||||
import circuitos.apploader # apploader hack
|
import fibonaccios.apploader # apploader hack
|
||||||
import time
|
import time
|
||||||
import usb_cdc
|
import usb_cdc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user