Browse Source

Use Enable/Disable Mouse and MouseMode.

Steve Thielemann 2 years ago
parent
commit
999d993ec5
1 changed files with 5 additions and 2 deletions
  1. 5 2
      testdoor/testdoor.go

+ 5 - 2
testdoor/testdoor.go

@@ -682,7 +682,9 @@ func main() {
 	// cterm.txt +687
 	// d.Write("\x1b[?9h") // enable mouse X10 support
 	// d.Write("\x1b[?1000h") // enable any-event mouse
-	d.Write("\x1b[?1002h")
+	// d.Write("\x1b[?1002h")
+    // d.Write("\x1b[?1006h") // SGR style mouse. -- not supported in term
+    d.EnableMouse(door.AnyEvent)
 	// 1006 does not work in xterm or syncterm.
 	press_keys(&d)
 	// press_a_key(&d)
@@ -760,7 +762,8 @@ func main() {
 	}
 
 	// d.Write("\x1b[?1000l") // disable mouse
-	d.Write("\x1b[?1002l")
+	// d.Write("\x1b[?1002l")
+    d.DisableMouse()
 	d.Write(door.Reset + door.CRNL)
 
 	message = fmt.Sprintf("Returning to the %s BBS..."+door.CRNL, d.Config.BBSID)