Run cursor mode in /xw window.
Each key press or click acts at the world coords giza reports for the cursor ("where the
mouse is"). Returns to REPL on q, Esc or Ctrl-C.
subroutine kipp_interact() !! Run cursor mode in /xw window. !! !! Each key press or click acts at the world coords giza reports for the cursor ("where the !! mouse is"). Returns to REPL on `q`, Esc or Ctrl-C. real(real64) :: x, y character(len=1) :: ch integer :: ierr logical :: done if (.not. st%interactive) then print '(a)', '[kipp] cursor mode needs an interactive /xw window' return end if if (st%devid <= 0) call kipp_render() if (st%devid <= 0) return if (.not. giza_device_has_cursor()) then print '(a)', '[kipp] device has no cursor' return end if call cursor_help() do x = 0.d0; y = 0.d0; ch = ' ' ierr = giza_get_key_press(x, y, ch) if (ierr /= 0) exit call kipp_action(ch, x, y, done) if (done) exit end do end subroutine kipp_interact