      IfInString A_LoopReadLine, #braille-driver
      {
        Term := SubStr(A_LoopReadLine, 17)
-       Terminal = %Terminal%%Term%|
+       StringReplace, Term, Term, #, -, 1
+       TermList = %TermList%%Term%|
      }
    }
-
 
   ; Draw and display the window
    Gui, Font, S12 CDefault, Arial
    Gui, Add, Text, x6 y10 w250 h20, Select Braille Display
-   Gui, Add, ListBox, vTerminal x6 y50 w500 h150 hscroll vscroll , %Terminal%
+   Gui, Add, ListBox, vTerminal x6 y50 w500 h150 hscroll vscroll , %TermList%
    Gui, Add, Text,  x6 y230 w250 h20, Select communication port
    Gui, Add, ListBox, vComPort x6 y260 w500 h150 hscroll vscroll , %ComPorts%
    Gui, Add, Button, vSend gValidate x140 y430 w60 h21 +Default, &OK

  WinTitle = %ScrimtName%

  ; Fill a listbox for port selection
   ComPorts = USB:|COM1|COM2|COM3|COM4|COM5|COM6|COM7|COM8|COM9|
   ComPorts = %ComPorts%COM10|COM11|COM12|COM13|COM14|COM15|COM16|

  ; Fill a listbox for terminal selection
  ; getting data from brltty.conf

   GuiControlGet, Terminal
   if StrLen(Terminal) == 0
   {
     Msgbox 0, %ScriptName%, You must select a terminal
     Return
   }
   GuiControlGet, ComPort
   if StrLen(ComPort) == 0
   {
     Msgbox 0, %ScriptName%, You must select a communication port
     Return
   }

   Msgbox 1, %ScriptName%, You selected terminal %Terminal%`nattached to port %ComPort%
   IfMsgBox Cancel
   {
     Gosub GuiClose
