Skip to content

Comments

Add lem-if:update-cursor-shape to change the cursor's shape for lem-ncurses#942

Merged
cxxxr merged 2 commits intolem-project:mainfrom
fukamachi:cursor-shape
Aug 13, 2023
Merged

Add lem-if:update-cursor-shape to change the cursor's shape for lem-ncurses#942
cxxxr merged 2 commits intolem-project:mainfrom
fukamachi:cursor-shape

Conversation

@fukamachi
Copy link
Collaborator

This also affects other than vi-mode..
Please review changes if this doesn't break other Lem's features or frontends.

Adds lem-if:update-cursor-shape to change the cursor's shape, like a box, a vertical bar, or an underline.
It works only on ncurses frontend for now.

In vi-mode, the cursor will be changed to 'vertial bar' on INSERT mode.

Copy link
Member

@cxxxr cxxxr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is very good.

(uiop:run-program `("printf"
,(format nil "~C[~D q"
#\Esc
(typecase cursor-type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean case?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! Good catch.

@cxxxr cxxxr merged commit ef6f4c8 into lem-project:main Aug 13, 2023
@cxxxr
Copy link
Member

cxxxr commented Aug 13, 2023

Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants