Git Product home page Git Product logo

Comments (18)

danyshaanan avatar danyshaanan commented on July 20, 2024

Can you provide the exact steps you take to reproduce it? Including the line you run, the SPACE navigation, and the output you try to copy.

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

See when I search for it, the first answer that I get, I can select and copy stuff from inside

But when I press SPACE for more answers and get to an answer, there I cannot select the text or copy anything.

from how2.

danielkop avatar danielkop commented on July 20, 2024

@ahmadawais I think you pasted the same image twice.

Is this using ZSH? on which os?

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

@danielkop Can you recheck the images, just refresh?

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

Yes, I am using ZSH on Mac.

from how2.

h-ayat avatar h-ayat commented on July 20, 2024

Same problem here.
ZSH on Arch linux

from how2.

smmoosavi avatar smmoosavi commented on July 20, 2024

Good repo, Good issue
Same issue. I use bash in terminator in ubuntu

from how2.

danyshaanan avatar danyshaanan commented on July 20, 2024

This is an issue with blessed, or with the way it is configured to run here. If you'd try to run the example code in the link above, you'll see that the text is not selectable.

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

^Any solution for that?

from how2.

santinic avatar santinic commented on July 20, 2024

@ahmadawais @smmoosavi @h-ayat it was {mouse:true}. Either you can mouse scroll, or you can copy-paste.

It's fixed in 1.0.9. Now you can't mouse scroll, but you can copy-paste.

Make sure you update with "npm install -g how2"

from how2.

h-ayat avatar h-ayat commented on July 20, 2024

Thanx for quick reply and fix.
I've updated how2 to the latest version.
Now mouse clicks and scroll does nothing,
And there's a bug in selecting multi-line text, because background boxes get selected too.

I've attached a snapshot from the bug:

how2

from how2.

danyshaanan avatar danyshaanan commented on July 20, 2024

@h-ayat I wouldn't call it a bug, as this is the intended behaviour of selection in the terminal, which is why I believe that it could not be resolved for the current view.

A possible alternative is to modify the way blessed is used here, and display the content of that window in full width without borders.

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

^Same problem here. Thanks for the update but one cannot copy more than one line.

from how2.

danielkop avatar danielkop commented on July 20, 2024

A lot of terminals have a column select (or block select) feature.
With Ubuntu try holding Ctrl+Alt before you select, or Alt+Cmd if you're in iTerm.

from how2.

h-ayat avatar h-ayat commented on July 20, 2024

@danyshaanan Thank you anyway.
@danielkop Very nice trick 👍 Actually solved many problems other than this !

from how2.

danielkop avatar danielkop commented on July 20, 2024

@h-ayat It also works in a lot of text editors and IDEs. Block selection changed my life 😀

from how2.

santinic avatar santinic commented on July 20, 2024

@danielkop such a nice trick! thanks, I'm putting it in the readme

from how2.

ahmadawais avatar ahmadawais commented on July 20, 2024

@danielkop Thanks for the tip, I never knew that.

from how2.

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.