11# simple-terminal
2+
23Simple Terminal Emulator for embedded Linux handhelds, migrated from SDL1.2 to SDL2 (by haoict)
34
45<img src =" images/st-img1.jpeg?raw=true " alt =" Image1 " width =" 250 " />
@@ -7,13 +8,16 @@ Simple Terminal Emulator for embedded Linux handhelds, migrated from SDL1.2 to S
78<img src =" images/st-img1-trimuisp.jpg?raw=true " alt =" Image1-TrimuiSP " width =" 250 " />
89
910# Build
11+
1012For generic linux:
13+
1114``` bash
1215sudo apt install build-essential libsdl2-dev libsdl2-ttf-dev
1316make
1417```
1518
1619# Run
20+
1721``` bash
1822./simple-terminal
1923./simple-terminal -font 2 # with alternative embedded font
2428./simple-terminal -rotate 270
2529
2630# run commands when open
27- ./simple-terminal -r " ls -la" " uname -a" whoami
31+ ./simple-terminal -r " ls -la" " uname -a" whoami
2832```
2933
3034## Options
35+
3136- ** -scale** : scale factor for window sizing (e.g., ` -scale 2.0 ` ).
3237- ** -font** : embedded font id (` 1..5 ` ) or path to a TTF file.
3338- ** -fontsize** : TTF font size when using ` -font /path/to.ttf ` .
3742- ** -q** : quiet mode.
3843
3944# Build with buildroot toolchain
45+
4046you can build everything for the target device with buildroot:
4147https://github.com/haoict/TiniLinux/blob/master/README.md#build
4248
4349or build the toolchain only and build simple-terminal separately
50+
4451``` bash
4552# build toolchain
46- cd buildroot
47- make O=../TiniLinux/output.arm64 BR2_EXTERNAL=../TiniLinux toolchain_arm64_defconfig
48- cd ../TiniLinux
53+ cd TiniLinux
54+ ./make-board-build.sh configs/toolchain_x86_64_aarch64_defconfig
55+ cd output.toolchain_x86_64_aarch64
4956make -j $( nproc)
5057
5158# build simple-terminal
52- cd package/simple-terminal
53- export CROSS_COMPILE=/home/haoict/TiniLinux/output.arm64 /host/bin/aarch64-buildroot -linux-gnu-
59+ cd SimpleTerminal
60+ export CROSS_COMPILE=/home/haoict/TiniLinux/output.toolchain_x86_64_aarch64 /host/bin/aarch64-none -linux-gnu-
5461make
5562```
5663
5966https://simple-terminal-psi.vercel.app
6067
6168# License & Credits
69+
6270MIT License
63- Based on Aurélien APTEL <aurelien dot aptel at gmail dot com > bt source code.
71+ Based on Aurélien APTEL <aurelien dot aptel at gmail dot com > bt source code.
6472https://github.com/benob/rs97_st-sdl
0 commit comments