cs-education / sysbuild

A system programming learning environment in the browser
https://cs-education.github.io/sys/
Other
36 stars 35 forks source link

Improve "program.c" consistency #140

Closed jwchang0206 closed 8 years ago

jwchang0206 commented 8 years ago

[Case 1] Q: When user first uses the site, automatically load program.c? what is shown during boot? A: Default “Hello world” code is shown. After loading, it shows the real “program.c” content.

[Case 2] Q: When a user deleted program.c and return to the site A: It creates “program.c” with default hello world code when there is no “program.c”

[Case 3] Q: Insure errors are not thrown when saving a file open in editor after it’s deleted, or saving program.c before it exists A: When current editing file is removed, the editor content becomes empty and not able to save it. It goes to void file “Untitled”. So download that will make the file called “untitled” with empty content.