Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blinking cursor #26

Open
andmarti1424 opened this issue May 1, 2021 · 4 comments
Open

Blinking cursor #26

andmarti1424 opened this issue May 1, 2021 · 4 comments

Comments

@andmarti1424
Copy link

Hello. Thank you for maintaining kmscon. I would like to know if there is a way to use blinking cursor.
Did not find anything in the docs. Thank you.

@Aetf
Copy link
Owner

Aetf commented May 1, 2021

I don't think this is implemented. PRs are welcome :)

@andmarti1424
Copy link
Author

Any tip on what part of the code should be handled and how? another question: can kmscon work with programs that write on framebuffer like vlc for videos or links -g for graphic browsing, or fbi for viewing images?? Thanks.

@Aetf
Copy link
Owner

Aetf commented May 9, 2021

That likely has to be implemented in libtsm. The current cursor handling as you can see is pretty rudimentary: inverse the cell and done. So kmscon doesn't actually have the concept of a cursor.

However, it may not be easy to implement a blinking cursor in libtsm because it is just a state machine, and have no clue of an external timer source, which is required to animate the cursor.

So one potential direction:

  • expose current cursor to kmscon in tsm_screen_draw_cb
  • teach kmscon how to draw a cursor
  • implement blinking

can kmscon work with programs that write on framebuffer like vlc for videos or links -g for graphic browsing, or fbi for viewing images

I'm not very familiar with Linux framebuffer. I haven't tried this before. But my guess is it won't work.

However I won't be surprised if there's some protocol allowing passing the framebuffer device between programs.

@andmarti1424
Copy link
Author

Thank you! Will take a look at the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants