anchor.diff:  ;; for resizing display
   (defmethod lem-if:display-height ((implementation ncurses))
     (resize-display)
  +  ;; reserve last lines for windows ime and so on
     (max *min-lines*
          (- charms/ll:*lines*
  -          ;; for cmd.exe (windows ime uses the last line)
  -          (if (eq *windows-term-type* :cmd.exe) 1 0))))
  +          (windows-term-setting-reserved-last-lines
  +           *windows-term-setting*))))
   
   ;; use only stdscr
   (defmethod lem-if:delete-view ((implementation ncurses) view)
  
positive.code: ;; for mouse
  (defkeycode "[mouse]" #x21b)
  (defvar *dragging-window* '())
  
  ;; debug log
  (defun dbg-log-format (fmt &rest args)
  
negative.code:                    (list nil (list cur-x y1) *dragging-window*)))))
          ;; wheel up
          ((logtest bstate charms/ll:BUTTON4_PRESSED)
           (lem:scroll-up *wheel-scroll-size*)
           (lem:redraw-display))
          ;; wheel down
          ((logtest bstate charms/ll:BUTTON5_PRESSED)
           (lem:scroll-down *wheel-scroll-size*)
           (lem:redraw-display))
          ))))
  
  