2. Support for the special screen

So I will be using, for this terminal, the 4" square display from wave-share. It is not a must to have but if you want it as well, the instructions to set-up the PI for the display can be found on the wiki.

NOTE: I'm not going to be using touch functionality for this screen as the OS I'm using is raspbian Lite terminal version. For inputs I will be using a custom keyboard attached to it. So I will be skipping the touch setup for this.

Extra configuration for screen:

So I will be using, for this terminal, the 4" square display from wave-share. It is not a must to have but if you want it as well, the instructions to set-up the PI for the display can be found on the wiki.

NOTE: I'm not going to be using touch functionality for this screen as the OS I'm using is raspbian Lite terminal version. For inputs I will be using a custom keyboard attached to it. So I will be skipping the touch setup for this.

4" square display from wave-share

Edit /boot/config.txt :

At the end of the file, add the following:

Download the 4inch DPI LCD DTBO files and extract them. There will be 3 .dtbo files.

Copy the above three files to the overlays directory /boot/overlays/

To rotate the display, edit: /boot/config.txt:

Add the following:

Add this to the /boot/config.txt to avoid any warning messages

Finally:

Customise the terminal:

Optional for python script as programmer system but "must" for the shell script as programming system i.e. installer.sh:

Install custom terminal that can show custom .ttf fonts (as default xterm can only increase sizes of it's available bitmap fonts that you can also customise by running: sudo dpkg-reconfigure console-setup)

Install custom font:

I used a font called CPMono ( You can of course choose yours ). It came in .otf format. So I converted it into .ttf using a could service: https://cloudconvert.com/otf-to-ttf .

Once I was happy, I moved the font to my pi from my local machine to the pi using scp and then moved it to the following location:

Get your font names and pick the name:

For my system these were the output

I am going to use theCPMono_v07,CPMono_v07 Plainas my font of choice.

Next edit the fbterm configuration file:

There I changed few fields like (Here you can play with few parameters to configure the new fbterm terminal )

Let fbterm take over after boot as your main terminal:

Edit .bashrc file:

And add the following to it at the end of the file:

And that's it.

Reboot to test.

Good to have a gif of fire burning after "burning firmware" 😅

This step is not necessary and the programmer script will work without this. You also have a choice to disable it while launching programmer.sh by

To enable the feature you can launch the script with enable flag

By default gif is disabled.

NOTE: The installer.sh script will not install the dependencies for this part. You have to do it manually here.

We would be using https://github.com/google/gif-for-cli

The gif-for-cli command will likely be installed into ~/.local/bin or similar, you may need to put that directory in your $PATH by adding this to your .bashrc:

Add these lines

After saving

And you should be good to go

Last updated

Was this helpful?