105f591c4942a54b21eebc977bbaa9aa5a8609b9
8 m
= new form
.Map('ser2net', 'ser2net');
10 s
= m
.section(form
.TypedSection
, "proxy", _("Proxies"));
14 o
= s
.option(form
.Flag
, "enabled", _("Enabled"));
17 o
= s
.option(form
.Value
, "port", _("Service port"), _("The TCP port to listen on."));
21 o
= s
.option(form
.ListValue
, "protocol", _("Protocol"), _("The protocol to listen to."));
23 o
.value("raw", _("Raw"));
24 o
.value("rawlp", _("Rawlp"));
25 o
.value("telnet", _("Telnet"));
26 o
.value("off", _("Off"));
29 o
= s
.option(form
.Value
, "timeout", _("Timeout"), _("The amount of seconds of inactivity before a disconnect occurs.<br/>A value of zero means wait indefinitely."));
33 o
= s
.option(form
.Value
, "device", _("Device"), _("The name of the device to connect to.<br/>This must be in the form of /dev/<device>."));
35 o
.default = "/dev/ttyUSB0";
37 o
= s
.option(form
.ListValue
, "baudrate", _("Baud rate"), _("The speed the device port should operate at."));
50 o
= s
.option(form
.ListValue
, "databits", _("Data bits"));
56 o
= s
.option(form
.ListValue
, "parity", _("Parity"));
58 o
.value("none", _("None"));
59 o
.value("even", _("Even"));
60 o
.value("odd", _("Odd"));
63 o
= s
.option(form
.ListValue
, "stopbits", _("Stop bits"));
69 s
.option(form
.Flag
, "rtscts", _("Use RTS and CTS lines"));
70 s
.option(form
.Flag
, "local", _("Ignore modem control signals"));
71 s
.option(form
.Flag
, "remctl", _("Allow the RFC 2217 protocol"));
72 s
.option(form
.DynamicList
, "options", _("Extra options"));
73 s
.option(form
.Value
, "led_tx", _("TX LED configuration"));
74 s
.option(form
.Value
, "led_rx", _("RX LED configuration"));