Ncurses & mouse positionIs there any ncurses archiver interface available?How do I install ncurses header...

Domain expired, GoDaddy holds it and is asking more money

How can I fix this gap between bookcases I made?

Is this food a bread or a loaf?

What happens when a metallic dragon and a chromatic dragon mate?

Why doesn't a const reference extend the life of a temporary object passed via a function?

Are white and non-white police officers equally likely to kill black suspects?

Need help identifying/translating a plaque in Tangier, Morocco

Does a dangling wire really electrocute me if I'm standing in water?

How to deal with fear of taking dependencies

Could a US political party gain complete control over the government by removing checks & balances?

Can I legally use front facing blue light in the UK?

Does the average primeness of natural numbers tend to zero?

Patience, young "Padovan"

What to wear for invited talk in Canada

Is every set a filtered colimit of finite sets?

Are objects structures and/or vice versa?

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

What do the Banks children have against barley water?

Lied on resume at previous job

What is the command to reset a PC without deleting any files

Could Giant Ground Sloths have been a good pack animal for the ancient Mayans?

Typesetting a double Over Dot on top of a symbol

What is GPS' 19 year rollover and does it present a cybersecurity issue?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?



Ncurses & mouse position


Is there any ncurses archiver interface available?How do I install ncurses header files?Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?Where do I get ncurses man pages from?ncurses line-drawing not working on consoleNcurses problemCan't use ncurses librariesWireless Network Manager command line ncurses GUIlib not found (ncurses)Unable to find ncurses library






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Всем доброго времени суток господа!
Я сегодня столкнулся с одной проблемой.
Писал недавно на windows, используя библиотеку PDcurses, но в один момент захотелось покодить на linux ubuntu. Я столкнулся с тем, что не могу отслеживать позицию мыши.
На Windows конструкция выглядела следующим образом:



while(true)
{
nc_getmouse(&event);
mvprintw(0,0,"%i %i", event.y,event.x);
key = getch;
refresh();
}
То есть, таким образом, позиция мыши постоянно обновлялась и каждый раз, когда я передвигал мышь, значения event.y/x менялись. На linux - нет. Что мне делать?
P.S.
nc_getmouse - не работает)))
конструкция с printf("33[?1003h") - мне не понятна










share|improve this question







New contributor




Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    Всем доброго времени суток господа!
    Я сегодня столкнулся с одной проблемой.
    Писал недавно на windows, используя библиотеку PDcurses, но в один момент захотелось покодить на linux ubuntu. Я столкнулся с тем, что не могу отслеживать позицию мыши.
    На Windows конструкция выглядела следующим образом:



    while(true)
    {
    nc_getmouse(&event);
    mvprintw(0,0,"%i %i", event.y,event.x);
    key = getch;
    refresh();
    }
    То есть, таким образом, позиция мыши постоянно обновлялась и каждый раз, когда я передвигал мышь, значения event.y/x менялись. На linux - нет. Что мне делать?
    P.S.
    nc_getmouse - не работает)))
    конструкция с printf("33[?1003h") - мне не понятна










    share|improve this question







    New contributor




    Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Всем доброго времени суток господа!
      Я сегодня столкнулся с одной проблемой.
      Писал недавно на windows, используя библиотеку PDcurses, но в один момент захотелось покодить на linux ubuntu. Я столкнулся с тем, что не могу отслеживать позицию мыши.
      На Windows конструкция выглядела следующим образом:



      while(true)
      {
      nc_getmouse(&event);
      mvprintw(0,0,"%i %i", event.y,event.x);
      key = getch;
      refresh();
      }
      То есть, таким образом, позиция мыши постоянно обновлялась и каждый раз, когда я передвигал мышь, значения event.y/x менялись. На linux - нет. Что мне делать?
      P.S.
      nc_getmouse - не работает)))
      конструкция с printf("33[?1003h") - мне не понятна










      share|improve this question







      New contributor




      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Всем доброго времени суток господа!
      Я сегодня столкнулся с одной проблемой.
      Писал недавно на windows, используя библиотеку PDcurses, но в один момент захотелось покодить на linux ubuntu. Я столкнулся с тем, что не могу отслеживать позицию мыши.
      На Windows конструкция выглядела следующим образом:



      while(true)
      {
      nc_getmouse(&event);
      mvprintw(0,0,"%i %i", event.y,event.x);
      key = getch;
      refresh();
      }
      То есть, таким образом, позиция мыши постоянно обновлялась и каждый раз, когда я передвигал мышь, значения event.y/x менялись. На linux - нет. Что мне делать?
      P.S.
      nc_getmouse - не работает)))
      конструкция с printf("33[?1003h") - мне не понятна







      c++ ncurses






      share|improve this question







      New contributor




      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      Happy MilfHappy Milf

      1




      1




      New contributor




      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Happy Milf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Happy Milf is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132290%2fncurses-mouse-position%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Happy Milf is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Happy Milf is a new contributor. Be nice, and check out our Code of Conduct.













          Happy Milf is a new contributor. Be nice, and check out our Code of Conduct.












          Happy Milf is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132290%2fncurses-mouse-position%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...