Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

A patch for ST (Simple Terminal) adding support for curly and colored underlines.

License

Notifications You must be signed in to change notification settings

derriche-massinissa/st-undercurl

Repository files navigation

A patch for ST (Simple Terminal) adding support for curly and colored underlines.

Screenshots | Installation Style

platforms license
issues size starts

Screenshots

terminal neovim lsp terminal terminal

Installation

Install like any other patch. Go into the source directory of ST, and run the following command:

patch < ../st-undercurl-0.8.4-20210424.diff

Then build it:

make

For installation, you either use Make (recommended):

make install

And you're done!

Or any other method, but in this case, you HAVE to update the TermInfo database of your system, to let terminal programs (Like Vim and such) know that ST supports special underlines. You do this with the following command:

tic -sx st.info

Style

You can choose between three different curly underline styles:

Curly: style curly

Spiky: style spiky

Capped: style capped

To change the style, edit the config.def.h file, it looks like this:

// Available styles
#define UNDERCURL_CURLY 0
#define UNDERCURL_SPIKY 1
#define UNDERCURL_CAPPED 2
// Active style
#define UNDERCURL_STYLE UNDERCURL_CAPPED

Just modify UNDERCURL_STYLE to one of the three available styles.

About

A patch for ST (Simple Terminal) adding support for curly and colored underlines.

Topics

Resources

License

Stars

Watchers

Forks