Figure a way to define a program
Opened this issue · 2 comments
dd86k commented
At some point, whenever there will be a virtual filesystem, a program would be defined as an object with prototyping.
dd86k commented
Idea :
- AJAX call load e.g. notepad.js
start("notepad.js")
start
function of those js files will contain the loading point for programs
3a. From there people could either call a Form (with Form.*.show()) or Conhost (or multiple)
Will require a lot of research.
dd86k commented
New idea (from my pal Kenan)
Example
load mspaint.js
- AJAX load "mspaint.js" into str
- var o = eval(str);
- o.pid = PID // Generate pid and assign
- Programs.add(o);
- Programs[PID].init( argc, argv );