sty icon indicating copy to clipboard operation
sty copied to clipboard

String styling for your terminal.

Results 12 sty issues
Sort by recently updated
recently updated
newest added

I often view documentation with `help(foo)`, possibly more often than viewing documentation on websites. Currently `help(sty)` doesn't offer much info, and usage like `help(sty.ef)` will display the inherited docstring from...

documentation

Sty uses `rs.bold_dim` and `rs.dim_bold` over `rs.bold` and `rs.dim` for the following reason: The [ANSI "SGR (Select Graphic Rendition) parameters"](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR) which are used by terminals, do not allow resetting `bold`...

discussion
poll

This would be like colorama's init(autoreset=true) Every time a new line is written, reset the colors and effects to default. This should be pretty easy. In my code i just...

enhancement

I know it can be converted somehow, but please introduce HTML colors conversion support if possible. ```python from sty import HTMLfg, fg # CSS "red" # HEX "#FF0000" # RGB...

enhancement

examples_old.py tries to import method "Rule" which doesn't exist anymore. Is there a replacement or a working example.py? Thanks for a hint, Helmut

documentation

# Environments & Feature Sets (Planning) `sty`currently supports features that don't work with some dated terminals, e.g. `terminal.app` (see #12, #14). There are other terminals that don't work with the...

enhancement
legacy compatibility
experiment

Suggestion for a *Shortcut Register*: ## Version A ```python from sty import s # Mix with fg red + bg blue + italic s.red # fg.red s.red_i # fg.red +...

enhancement
experiment

What about underline styled (dotted, curly etc) and its colors? I know it's an extension but supported by popular emulators, [Kitty](https://sw.kovidgoyal.net/kitty/underlines/) for example. Underline colors are implemented in Kitty, VTE,...

Yours lib is awesome, I used it for years. Now I have a little problem, a have fine formatting and print table separated. Is any way to find printable text...

Running standard tests shows this ![image](https://github.com/user-attachments/assets/f11b711b-fe68-41ff-ba0f-d120096531c9) Especially, li_yellow colors!