Coder Social home page Coder Social logo

Comments (7)

moson-mo avatar moson-mo commented on May 17, 2024 1

Yepp I can reproduce it.

Seems it's connected to this commit in the upstream library gdamore/tcell@761abf6

Only seems to happen with the InputField component of tview 🤔

Will probably take some time and involvement of the library devs to get it fixed. Need to do some more analysis on this.

Good that you have a workaround for now. 😉

from pacseek.

moson-mo avatar moson-mo commented on May 17, 2024

I'm not aware that pacseek (or the library that is being used) can even change the cursor style.
Isn't that even a pure terminal-emulator setting?

Please provide more information:

  1. Terminal emulator
  2. Shell
  3. How/Where did you set up the cursor style

from pacseek.

vaygr avatar vaygr commented on May 17, 2024

I wonder if it comes from the Go library..

  1. st 0.8.5 with the patch
  2. bash 5.1.016
  3. see the patch in 1., but it's set via ~/.Xresources with st.cursorstyle: 3 after applying this patch

from pacseek.

vaygr avatar vaygr commented on May 17, 2024

A temporary workaround for me could be this:

$ alias pacseek='pacseek; echo -e -n "\x1b[\x33 q"'

But it would be better for pacseek to not mess up with the cursor in the first place if possible.

from pacseek.

moson-mo avatar moson-mo commented on May 17, 2024

Hey @vaygr

Seems there is no proper way to detect the "current style". See gdamore/tcell#559 (comment)
Setting up the default style in the terminal emulator settings should do the trick.
Now, I don't know if that is an options in st, but in xfce4-terminal doing it this way, it works fine.
If not, I'm afraid you'll have to live with the workaround.

from pacseek.

vaygr avatar vaygr commented on May 17, 2024

I see.

Well, the above patches do just that. But my assumption is that xfce4-terminal always makes sure the cursor stays as assigned, while st does so only on init.

Thanks for investigating!

from pacseek.

vaygr avatar vaygr commented on May 17, 2024

Yeah, I just checked: echo -e -n "\x1b[\x30 q" has no effect in xfce4-terminal when the cursor set to blinking underline.

from pacseek.

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.