Draw a simple cursor on framebuffer display (in zig programming language)
Logged in as dietpi:
dietpi@DietPi:~$ sudo apt install gitdietpi@DietPi:~$ cddietpi@DietPi:~$ mkdir -p src/zigdietpi@DietPi:~$ cd src/zigdietpi@DietPi:~$ git config --global user.name "Your Name"(optional)dietpi@DietPi:~$ git config --global user.email "your@email.ad"(optional)dietpi@DietPi:~$ git clone https://github.com/hi7/pagez.gitdietpi@DietPi:~$ cd pagezdietpi@DietPi:~$ sudo apt install xz-utilsdietpi@DietPi:~$ sh/install.bash -os linux -cpu <CPUTYPE>(CPUTYPE: armv7a, aarch64)dietpi@DietPi:~$ nano ~/.profilemove to the end of the file and enterif [ -d ~/bin ]; thenPATH="$HOME/bin:$PATH"fi(press Control & o, followed by Enter, than Control & x)dietpi@DietPi:~$ source ~/.profiledietpi@DietPi:~$ zig version0.8.1dietpi@DietPi:~$ zig build run
Logged in as root:
localhost:~$ apk add gitlocalhost:~$ adduser <user>localhost:~$ adduser <user> inputlocalhost:~$ adduser <user> videolocalhost:~$ chgrp input /dev/input/mouse0
Logged in as <user>:
localhost:~$ cdlocalhost:~$ mkdir -p src/ziglocalhost:~$ cd src/ziglocalhost:~$ git config --global user.name "Your Name"(optional)localhost:~$ git config --global user.email "your@email.ad"(optional)localhost:~$ git clone https://github.com/hi7/pagez.gitlocalhost:~$ cd pagezlocalhost:~$ sh/install.sh -os linux -cpu <CPUTYPE>(CPUTYPE: armv7a, aarch64, x86_64)localhost:~$ touch ~/.profilelocalhost:~$ vi ~/.profilepress enter than i followed byPATH="$HOME/bin:$PATH"(press ESC than zz)localhost:~$ source ~/.profilelocalhost:~$ zig version0.8.1localhost:~$ zig build run