Coder Social home page Coder Social logo

mouse scroll down isn't work about st HOT 8 CLOSED

lukesmithxyz avatar lukesmithxyz commented on August 27, 2024
mouse scroll down isn't work

from st.

Comments (8)

LukeSmithxyz avatar LukeSmithxyz commented on August 27, 2024

To be clear, the scroll down ability only works if you are within history. You cannot simply open an instance and scroll down so that the prompt is in the middle of the screen. Is this what you're talking about?

from st.

henryzxb avatar henryzxb commented on August 27, 2024

sorry for my bad english,what i mean is that when I edit a file with a text editor in st terminal, I can't use the mouse wheel to browse the file content.

from st.

LukeSmithxyz avatar LukeSmithxyz commented on August 27, 2024

Then this is intended functionality. Scrolling back in a terminal emulator shows previous output and commands while scrolling back in, say, vim is something altogether different: moving your cursor up lines and then initiating a screen rewrite.

Look up how how to scroll with your mouse in whatever program you are running.

from st.

hedich avatar hedich commented on August 27, 2024

i am a bit confused, scrolling up works as expected but down does not

in VIM, using same file in urxvt scrolling up and down works as expected
but in st only up works, trying to scroll down it "glitches" on the same line (its trying to go down but it does not work it just stays in place

i really doubt this is indented behavior.

(i was using spacevim, switched over to nvim and ditched spacevim and now its working fine, clearly something wrong with spacevim)

from st.

tokumei27 avatar tokumei27 commented on August 27, 2024

So it was just a spacevim problem? And not to sound obnoxious, but you aren’t meant to use the mouse in vim in the first place. If you want that feature, you might like gVim.

from st.

hedich avatar hedich commented on August 27, 2024

Your preferences aren't a set rule, just because you don't use the mouse does not mean other people cant. its perfectly fine to use the mouse in vim if you feel like it, i like to use the mouse for just that scrolling.

(you do sound very obnoxious btw and a very unnecessary reply to an already solved problem.)

from st.

Midren avatar Midren commented on August 27, 2024

After merging #229, it is now possible to easily integrate scrolling with vim. You can just add

set ttyterm=sgr

from st.

chadostlund avatar chadostlund commented on August 27, 2024

@Midren Thanks for pointing that out here. Now I can scroll up and down in vim using mousewheel.

from st.

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.