diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/wslua/template-init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/wslua/template-init.lua b/epan/wslua/template-init.lua index 24dc4156e2..8128f01409 100644 --- a/epan/wslua/template-init.lua +++ b/epan/wslua/template-init.lua @@ -51,7 +51,9 @@ end -- to avoid output to stdout which can cause problems lua's print () -- has been suppresed so that it yields an error. -- have print() call info() instead. -print = info +if gui_enabled() then + print = info +end -- %WTAP_ENCAPS% |