FxLinux : mini Linux emulator program for fx-9860 series
Posté le 29/12/2023 21:01
FxLinux is a mini Linux emulator program that runs on the
fx-9860 series. It contains a
terminal similar to Linux systems and takes input from the buttons in the same way as input
from the rest of the calculator add-ins.
The program contains some commands in the F1-F6 buttons, which are :
-->
F1: It cleans the terminal of all contents
-->
F2: Switch between uppercase and lowercase letters
-->
F3: It shows you the commands available in the system
-->
F6 : Stops the program/add-in
The program is a Linux emulator, So of course there will be text commands that you can use
and interact with the system with, which are :
-->
help: It shows you the commands available in the system
-->
exit: Stops the program/add-in
-->
shutdown: Same thing as exit
-->
clear: It cleans the terminal of all contents
-->
ls: Display files and folders in the current path
-->
cat: Print the content of a specified file
-->
uname: Print system information
-->
echo: Print text in the terminal
-->
cd: Change the current path
-->
rm: Delete a specified file
-->
rmdir: Delete a specified folder
-->
sleep: Stop the system for several seconds
-->
pwd: Print the current path
-->
touch: Create an empty file
-->
mkdir: Make a folder
-->
bash: Run a bash script file for FX Linux. You can write the same terminal
-->
./ : commands inside the file and then run it.
This program is the first program I wrote in the C language and also the first program I wrote
for a calculator, so there are some strange errors. For example, the addin crash sometimes
.when using some commands such as :
mkdir, rmdir, cat , etc.. ( after they are executed)
Also, dealing with paths is a bit clumsy, so make sure you are in the right place to point to a
specific file or folder.
Support Me on Github
https://github.com/mohdmot/FxLinux
Fichier joint
Citer : Posté le 29/12/2023 21:49 | #
I have to say, it is pretty impressive you managed to write pretty much the whole thing in a bit more than two weeks
I don't have an fx-9860GIII to test it on, but it seems to work for the FX-CG50 (with only the UI broken) once the makefile is fixed ... And also the sleep at the start of the program removed
Although the commands seem to all crash so far, which i don't think would be the ""port"" 's fault given how agnostic gint is.
Caltos : G35+EII, G90+E (briquée )
Citer : Posté le 29/12/2023 22:14 | #
I have to say, it is pretty impressive you managed to write pretty much the whole thing in a bit more than two weeks
I don't have an fx-9860GIII to test it on, but it seems to work for the FX-CG50 (with only the UI broken) once the makefile is fixed ... And also the sleep at the start of the program removed
Although the commands seem to all crash so far, which i don't think would be the ""port"" 's fault given how agnostic gint is.
I literally haven't done anything to FX-CG50. I don't know anything about it and I don't have one to try on
Citer : Posté le 29/12/2023 22:19 | # | Fichier joint
I literally haven't done anything to FX-CG50. I don't know anything about it and I don't have one to try on
Programming-wise it's a faster and with a larger color screen 9860GIII (when using gint)
There is a pretty complete emulator from Heath123/Circuit10 ( https://github.com/Heath123/casio-emu ) if you want to try it out, and here is the build (File in the upper-right corner)
Caltos : G35+EII, G90+E (briquée )
Citer : Posté le 29/12/2023 22:26 | #
Hi.
Very nice project. But is it a bash terminal simulator or a real port of the Linux kernel?
Trad by Google Trad
Citer : Posté le 29/12/2023 22:30 | #
Hi.
Very nice project. But is it a bash terminal simulator or a real port of the Linux kernel?
Trad by Google Trad
If you had read the main post you would know
Si tu avais lu le post principal tu saurais
Caltos : G35+EII, G90+E (briquée )
Citer : Posté le 29/12/2023 22:32 | #
It wasn't really explicitly stated that it was an emulator of the linux kernel.
Or maybe I took it differently. If so, sorry. And following the same logic, congratulations to you!
Citer : Posté le 29/12/2023 22:34 | #
No it's not. It's "just" a shell that uses system's file API and things like that to properly create a terminal/shell.
Citer : Posté le 30/12/2023 01:17 | #
I literally haven't done anything to FX-CG50. I don't know anything about it and I don't have one to try on
Programming-wise it's a faster and with a larger color screen 9860GIII (when using gint)
There is a pretty complete emulator from Heath123/Circuit10 ( https://github.com/Heath123/casio-emu ) if you want to try it out, and here is the build (File in the upper-right corner)
Nice, is there an emulator for 9860g because I am tired of connecting the calculator to the computer a lot
Citer : Posté le 30/12/2023 01:20 | #
Nice, is there an emulator for 9860g because I am tired of connecting the calculator to the computer a lot
There is the official one but it's paid and a bit mediocre from what i heard, and that's about all for the 9860GIII.
But Drakalex is working on an emulator for the earlier ones (Without the standard io support iirc) if you want to make simpler addins
Caltos : G35+EII, G90+E (briquée )
Citer : Posté le 30/12/2023 01:22 | #
Hi.
Very nice project. But is it a bash terminal simulator or a real port of the Linux kernel?
Trad by Google Trad
Thank you
No, it's just something stupid, nothing more. It's like:
if input.startswith("echo "):
print(input[5:])
elif input.startswith('sleep '):
time.sleep(float(input[6:]))
Same thing but in C
Bash files, they are only a set of commands allowed in FxLinux, and they are read and executed and nothing more. They are not real Bash, and there is no Linux kernel.
Citer : Posté le 30/12/2023 01:24 | #
It wasn't really explicitly stated that it was an emulator of the linux kernel.
Or maybe I took it differently. If so, sorry. And following the same logic, congratulations to you!
I don't think that someone writing their first C program would create a real Linux kernel emulator !
Citer : Posté le 30/12/2023 01:26 | #
No it's not. It's "just" a shell that uses system's file API and things like that to properly create a terminal/shell.
Exactly!!