Index of /es40-macos/
### Original source code https://github.com/ES40-Emu/es40
### This is a fix for latest MacOS (as of 28.07.2026) for es40-emu fork ###
### You need to build SDL3 from source and ideally have it installed in /usr/local ###
### You get the native CDE X11 window via SDL3
### Unfortunately I could not figure out a working scancode for "backslash" key on an Apple Keyboard that would work in SRM
### then proceed to build es40-macos ###
wget https://astr0baby.online/es40-macos/es40-macos.tgz
tar -zxv es40-macos.tgz
cd es40-macos
mkdir build
cd build
cmake ..
make --j4
sudo cp es40 es40-cfg es40_cfg es40_idb es40_lsm es40_lss /usr/local/bin
### Next you need to generate a configuration file es40.cfg using es40_cfg or es40-cfg
### Check the sample es40.cfg file I have included
### Here we are using the native MacOS fake ethernet inteface aka feth for networking (no need for physical cables)
### To make things easier you can use the network-setup-script included here
### Only drawback is that the es40 simulator will then need sudo to be able to use pcap on these virtual interfaces
### In the example here we are setting up
feth5001 (used by es40)
bridge200 (gateway)
### From Tru64 just setup
ifconfig tu0 10.0.40.2 netmask 255.255.255.0 up
route add default 10.0.40.1
### once ready you can run the es40 simulator from where you have the sim files
sudo es40