什么是subroutine.ttl?
Tera Term Macro 对编写可重用代码的支持有限。 可以include文件,但无法使用goto或call命令轻松跳转到文件中的特定代码块。
subroutine.ttl 模拟函数调用语法,并允许您编写更多模块化、分区化的代码。 例如,给定两个文件(main.ttl 和 util.ttl),您可以在 main.ttl 中编写如下内容:
callsub = 'util:clear_system_logs'
include 'subroutine.ttl'
这将调用clear_system_logs中的clear_system_logs子例程:
:clear_system_logs
; Put your code here!
return
subroutine.ttl 需要 Tera Term 4.66 或更高版本。 它是根据条