• Support
  • Articles
  • Resources
  • Products

Subroutines, functions, and libraries of reusable code

Moderator: boris

1 postPage 1 of 1

kurtmckee
Newbie

Posts:
1
Joined: Sat May 09, 2015 4:40 pm
by kurtmckee » Sat May 09, 2015 5:01 pm
Howdy! I've written a macro that allows you to put modular, reusable code in separate files and call that code with a namespaced function call syntax. For instance, if you have a label named 'copy_log_files' in util.ttl you can call that code from another file using this syntax:

Code: Select all

  1. callsub = 'util:copy_log_files'
  2. include 'subroutine.ttl'


The code runs on Tera Term 4.66 or higher and is released under the terms of the MIT license. The code and documentation are available at:

https://github.com/kurtmckee/teraterm-subroutines

If you encounter any issues, please don't hesitate to create a bug report or submit a pull request!

1 postPage 1 of 1

Users browsing this forum: No registered users