User Guide

Lua Support in Wireshark
168
11.7.2.5.2. Returns
The TextWindow object.
11.7.2.5.3. Errors
Cannot be called for something not a TextWindow
11.7.2.6. textwindow:clear()
Erases all text in the window.
11.7.2.6.1. Returns
The TextWindow object.
11.7.2.6.2. Errors
Cannot be called for something not a TextWindow
11.7.2.7. textwindow:get_text()
Get the text of the window
11.7.2.7.1. Returns
The TextWindow's text.
11.7.2.7.2. Errors
Cannot be called for something not a TextWindow
11.7.2.8. textwindow:set_editable([editable])
Make this window editable
11.7.2.8.1. Arguments
editable (optional) A boolean flag, defaults to true
11.7.2.8.2. Returns
The TextWindow object.
11.7.2.8.3. Errors
Cannot be called for something not a TextWindow
11.7.2.9. textwindow:add_button(label, function)
11.7.2.9.1. Arguments
label The label of the button
function The function to be called when clicked