Coder Social home page Coder Social logo

Compilation again about pspg HOT 3 CLOSED

okbob avatar okbob commented on August 24, 2024
Compilation again

from pspg.

Comments (3)

okbob avatar okbob commented on August 24, 2024

probably your ncurses was compiled without mouse support. Please, try to check fresh code and comment row with #define MOUSE_WHEEL_BUTTONS> 1, You can try ncurses 6, where this BUTTON is supported (ncurses6 is 2 years old).

from pspg.

loveencounterflow avatar loveencounterflow commented on August 24, 2024

This worked; in pager.c, line 101:

// #define MOUSE_WHEEL_BUTTONS      1

Thanks a lot. BTW I tried with both

gcc pager.c -o pager -L. -lncurses

and

gcc pager.c -o pager -L. -lncursesw

Both ncurses and ncursesw do not accept the MOUSE_WHEEL_BUTTONS to be defined. ncurses is not a viable option as it only renders US ASCII correctly; not even latin-1 is supported (ö appears as M-CM-6?!?). Interestingly,

  1. I can still use the mouse to click and select rows; only the wheel doesn't work;
  2. htop shows the same behavior, so yes, ncurses(w) seems to globally lack mouse wheel support.

I'm using version 6.0+20160213-1ubuntu1; funny but the dev packages are called libncursesw5-dev.

from pspg.

okbob avatar okbob commented on August 24, 2024

You can have more version of same library - I am thinking so it is possibly to install dev ncurses 6 and linking pspg against this fresh library - https://stackoverflow.com/questions/3840218/how-to-specify-the-library-version-to-use-at-link-time

from pspg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.