Add script to run in cool-retro-term

This commit is contained in:
Vincent Ollivier 2020-01-05 22:25:33 +01:00
parent 720cca714e
commit c877e06def
3 changed files with 37 additions and 0 deletions

BIN
run/cool-retro-term.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

25
run/cool-retro-term.json Normal file
View File

@ -0,0 +1,25 @@
{
"backgroundColor": "#000",
"fontColor": "#0c6",
"flickering": 0.1,
"horizontalSync": 0.1,
"staticNoise": 0.1,
"chromaColor": 0,
"saturationColor": 0,
"screenCurvature": 0,
"glowingLine": 0,
"burnIn": 0.3,
"bloom": 0.5,
"rasterization": 0,
"jitter": 0.2,
"rbgShift": 0,
"brightness": 0.8,
"contrast": 0.8,
"ambientLight": 0.2,
"windowOpacity": 1,
"fontName": "TERMINUS_SCALED",
"fontWidth": 1,
"margin": 0.5,
"name": "MOROS",
"version": 2
}

12
run/cool-retro-term.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
dir=$(dirname "$0")
image="target/x86_64-moros/release/bootimage-moros.bin"
qemu="qemu-system-x86_64 -display curses -cpu max"
# Build image if needed
if [ ! -f "$dir/../$image" ]; then
cd "$dir/.." && cargo xbuild --release
fi
cool-retro-term --fullscreen --profile "$dir/cool-retro-term.json" \
--workdir "$dir/.." -e sh -c "$qemu $image"