Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1010 Bytes

Scripting.md

File metadata and controls

30 lines (17 loc) · 1010 Bytes

Scripting with JTerm

Table of Contents

Example script

An example on how a script could look like can be found here inside the Examples folder.

Run a script

A script can be executed by using the run command with the path to the script.

Commenting a script

A line in a script is treated as comment if it starts with either #, this makes documenting your code really easy.

Currently it is only supported to comment out complete lines.

Startup script

There is a special kind of script supported by JTerm, being the startup script. This script will be exectuted every time JTerm is started.

A startup script is a file with the name .jtermrc placed inside your home directory. Apart from that there is no difference to a normal script.

An example for a simple startup script is here.