       NSBeep()
     }
   }
-  
+
   public func visualBell() {
   }
-  
+
   public func flush() {
 //    NSLog("\(#function)")
   }
-  
+
   public func updateForeground(_ fg: Int32) {
     DispatchUtils.gui {
       self.grid.foreground = UInt32(bitPattern: fg)
 //      NSLog("\(ColorUtils.colorIgnoringAlpha(UInt32(fg)))")
     }
   }
-  
+
   public func updateBackground(_ bg: Int32) {
     DispatchUtils.gui {
       self.grid.background = UInt32(bitPattern: bg)

  fileprivate func wrapNamedKeys(_ string: String) -> String {
    return "<\(string)>"
  }
  
  fileprivate func vimPlainString(_ string: String) -> String {
    return string.replacingOccurrences(of: "<", with: self.wrapNamedKeys("lt"))
  }

      resultX = self.wrapNamedKeys("\(typeX)") + vimMouseLocation
      resultY = self.wrapNamedKeys("\(typeY)") + vimMouseLocation
    }

    return (resultX, resultY)
  }

  fileprivate func throttleScrollX(absDelta absDeltaX: CGFloat, vimInput: String) {
    if absDeltaX == 0 {
      self.scrollGuardCounterX = self.scrollGuardYield - 1
