st/README.md

272 lines
14 KiB
Markdown
Raw Normal View History

Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.8.4 (2ec571a, 2021-07-18) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more.
For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h):
```c
#define ALPHA_PATCH 1
```
2019-10-16 06:28:00 +00:00
Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch.
Alternatively if you have found the patches you want, but don't want the rest of the flexipatch entanglement on your plate then you may want to have a look at [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer); a custom pre-processor tool that removes all the unused flexipatch code leaving you with a build that contains the patches you selected.
Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the st terminal, how to install it and how it works.
---
### Changelog:
2021-07-26 08:16:54 +00:00
2021-07-26 - Added columns patch
2021-07-07 08:08:43 +00:00
2021-07-07 - Added sixel scrollback and the openurlonclick patch
2021-06-09 07:54:50 +00:00
2021-06-09 - Added the hide terminal cursor patch
2021-05-16 09:40:15 +00:00
2021-05-16 - Added swapmouse patch
2021-05-11 14:35:30 +00:00
2021-05-11 - Added default cursor patch
2021-05-10 - Upgrade to 46b02f, 2021-03-28
2021-05-09 15:48:28 +00:00
2021-05-09 - Added the sync, alpha-focus-hightlight and vim browse patches
2021-05-09 07:25:22 +00:00
2021-05-08 15:49:04 +00:00
2021-05-08 - Added blinking cursor, delkey, undercurl,universcroll, desktopentry, netwmicon and osc_10_11_12_2 patches
2021-05-08 08:13:20 +00:00
2021-05-07 - Added xresources reload patch
2021-04-21 - Added (temporary?) hack for Variable Fonts (VT) support
2021-03-10 17:09:47 +00:00
2021-03-10 - Added sixel support
2021-02-26 - Added the dynamic cursor color patch
2021-02-15 13:37:37 +00:00
2021-02-15 - Added the alpha gradient patch
2020-11-14 15:24:07 +00:00
2020-11-14 - Added the wide glyphs patch
2020-10-23 - Added the monochrome patch
2020-08-08 16:09:00 +00:00
2020-08-08 - Re-added the visualbell patch
2020-06-26 - Added the single drawable buffer patch as per the FAQ in order to get w3m images to display
2020-06-25 10:43:25 +00:00
2020-06-25 - Upgrade to 0.8.4 (367803, 2020-06-19)
2020-06-14 18:04:27 +00:00
2020-06-14 - Added w3m patch
2020-06-10 - Upgrade to 249ef9, 2020-06-01
2020-06-05 - Added the ligatures patch
2020-05-20 13:04:43 +00:00
2020-05-20 - Upgrade to 222876, 2020-05-09, and removed visualbell 1, 2, 3 patches and force redraw after keypress due to incompatibility. Refer to tag [371878](https://github.com/bakkeby/st-flexipatch/tree/371878) if you want to try these out.
auto-sync: draw on idle to avoid flicker/tearing st could easily tear/flicker with animation or other unattended output. This commit eliminates most of the tear/flicker. Before this commit, the display timing had two "modes": - Interactively, st was waiting fixed `1000/xfps` ms after forwarding the kb/mouse event to the application and before drawing. - Unattended, and specifically with animations, the draw frequency was throttled to `actionfps`. Animation at a higher rate would throttle and likely tear, and at lower rates it was tearing big frames (specifically, when one `read` didn't get a full "frame"). The interactive behavior was decent, but it was impossible to get good unattended-draw behavior even with carefully chosen configuration. This commit changes the behavior such that it draws on idle instead of using fixed latency/frequency. This means that it tries to draw only when it's very likely that the application has completed its output (or after some duration without idle), so it mostly succeeds to avoid tear, flicker, and partial drawing. The config values minlatency/maxlatency replace xfps/actionfps and define the range which the algorithm is allowed to wait from the initial draw-trigger until the actual draw. The range enables the flexibility to choose when to draw - when least likely to flicker. It also unifies the interactive and unattended behavior and config values, which makes the code simpler as well - without sacrificing latency during interactive use, because typically interactively idle arrives very quickly, so the wait is typically minlatency. While it only slighly improves interactive behavior, for animations and other unattended-drawing it improves greatly, as it effectively adapts to any [animation] output rate without tearing, throttling, redundant drawing, or unnecessary delays (sounds impossible, but it works).
2020-05-20 12:15:57 +00:00
2020-04-20 - Upgrade to c279f5, 2020-04-19, and added the force redraw on pselect after key is pressed patch and the externalpipein patch
2020-03-29 14:46:38 +00:00
2020-03-29 - Added invert and workingdir patches
2020-03-29 13:38:16 +00:00
2020-03-24 - Upgraded to latest (master) of st (commit 51e19ea11dd42eefed1ca136ee3f6be975f618b1 at the time of writing). Custom changes to make the altscreen mouse scollback patch working.
2020-03-21 15:41:43 +00:00
2020-03-21 - Added font2 patch
2020-01-07 07:05:00 +00:00
2020-01-07 - Added st embedder patch
2019-10-16 06:28:00 +00:00
2019-10-16 - Introduced [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer)
2019-09-17 - Added relativeborder, fix-keyboard-input, iso14755, visualbell, right-click-to-plumb, boxdraw and keyboard-select patches
2019-09-16 - Added alpha, anysize, bold-is-not-bright, clipboard, copyurl, disable-fonts, externalpipe, fixime, hidecursor, newterm, open-copied-url, vertcenter, scrollback, spoiler, themed cursor and xresources patches
### Patches included:
- [alpha](https://st.suckless.org/patches/alpha/)
- adds transparency for the terminal
2021-05-09 12:40:30 +00:00
- [alpha-focus-highlight](https://st.suckless.org/patches/alpha_focus_highlight/)
- allows the user to specify two distinct opacity values or background colors in order to
easily differentiate between focused and unfocused terminal windows
- [anysize](https://st.suckless.org/patches/anysize/)
2019-09-16 07:40:40 +00:00
- allows st to reize to any pixel size rather than snapping to character width / height
- [anysize_nobar](https://github.com/connor-brooks/st-anysize-nobar)
- a patch that aims to prevent black bars being drawn on the edges of st terminals using the anysize patch
2021-05-08 08:13:20 +00:00
- [blinking-cursor](https://st.suckless.org/patches/blinking_cursor/)
- allows the use of a blinking cursor
2019-09-16 07:40:40 +00:00
- [bold-is-not-bright](https://st.suckless.org/patches/bold-is-not-bright/)
- by default bold text is rendered with a bold font in the bright variant of the current color
2019-09-16 08:40:16 +00:00
- this patch makes bold text rendered simply as bold, leaving the color unaffected
- [boxdraw](https://st.suckless.org/patches/boxdraw/)
- adds dustom rendering of lines/blocks/braille characters for gapless alignment
2019-09-16 08:40:16 +00:00
- [clipboard](https://st.suckless.org/patches/clipboard/)
- by default st only sets PRIMARY on selection
- this patch makes st set CLIPBOARD on selection
2021-07-26 08:16:54 +00:00
- [columns](https://github.com/bakkeby/st-flexipatch/issues/34)
- allows st to be resized without cutting off text when the terminal window is made larger again
- text does not wrap when the terminal window is made smaller
2019-09-16 08:40:16 +00:00
- [copyurl](https://st.suckless.org/patches/copyurl/)
- this patch allows you to select and copy the last URL displayed with Mod+l
- multiple invocations cycle through the available URLs
2021-05-11 14:35:30 +00:00
- default-cursor
- minor change allowing escape sequences like `\e[ q` or `\e[0 q` to set the cursor back to default configuration instead of a blinking block
- while many terminals do this the behaviour is not according to the specification
2021-05-08 14:57:59 +00:00
- [delkey](https://st.suckless.org/patches/delkey/)
- return BS on pressing backspace and DEL on pressing the delete key
2021-05-08 12:49:59 +00:00
- [desktopentry](https://st.suckless.org/patches/desktopentry/)
- adds a desktop entry for st so that it can be displayed with an icon when using a graphical launcher
- this patch only applies to the Makefile and is enabled by default, remove if not needed
2019-09-16 08:40:16 +00:00
- [disable-fonts](https://st.suckless.org/patches/disable_bold_italic_fonts/)
- this patch adds the option of disabling bold/italic/roman fonts globally
- [dynamic-cursor-color](https://st.suckless.org/patches/dynamic-cursor-color/)
- this patch makes the cursor color the inverse of the current cell color
- [externalpipe](https://st.suckless.org/patches/externalpipe/)
- this patch allows for eading and writing st's screen through a pipe, e.g. to pass info to dmenu
- [externalpipein](https://lists.suckless.org/hackers/2004/17218.html)
- this patch prevents the reset of the signal handler set on SIGCHILD, when the forked process that executes the external process exits
- it adds the externalpipein function to redirect the standard output of the external command to the slave size of the pty, that is, as if the external program had been manually executed on the terminal
- this can be used to send desired escape sequences to the terminal with a shortcut (e.g. to change colors)
2020-03-24 10:34:18 +00:00
- [~fixime~](https://st.suckless.org/patches/fix_ime/)
- adds better Input Method Editor (IME) support
- (included in the base as per [35f7db](https://git.suckless.org/st/commit/e85b6b64660214121164ea97fb098eaa4935f7db.html))
- [fix-keyboard-input](https://st.suckless.org/patches/fix_keyboard_input/)
- allows cli applications to use all the fancy key combinations that are available to GUI applications
2020-03-21 15:41:43 +00:00
- [font2](https://st.suckless.org/patches/font2/)
- allows you to add a spare font besides the default
auto-sync: draw on idle to avoid flicker/tearing st could easily tear/flicker with animation or other unattended output. This commit eliminates most of the tear/flicker. Before this commit, the display timing had two "modes": - Interactively, st was waiting fixed `1000/xfps` ms after forwarding the kb/mouse event to the application and before drawing. - Unattended, and specifically with animations, the draw frequency was throttled to `actionfps`. Animation at a higher rate would throttle and likely tear, and at lower rates it was tearing big frames (specifically, when one `read` didn't get a full "frame"). The interactive behavior was decent, but it was impossible to get good unattended-draw behavior even with carefully chosen configuration. This commit changes the behavior such that it draws on idle instead of using fixed latency/frequency. This means that it tries to draw only when it's very likely that the application has completed its output (or after some duration without idle), so it mostly succeeds to avoid tear, flicker, and partial drawing. The config values minlatency/maxlatency replace xfps/actionfps and define the range which the algorithm is allowed to wait from the initial draw-trigger until the actual draw. The range enables the flexibility to choose when to draw - when least likely to flicker. It also unifies the interactive and unattended behavior and config values, which makes the code simpler as well - without sacrificing latency during interactive use, because typically interactively idle arrives very quickly, so the wait is typically minlatency. While it only slighly improves interactive behavior, for animations and other unattended-drawing it improves greatly, as it effectively adapts to any [animation] output rate without tearing, throttling, redundant drawing, or unnecessary delays (sounds impossible, but it works).
2020-05-20 12:15:57 +00:00
- [~force-redraw-after-keypress~](https://lists.suckless.org/hackers/2004/17221.html)
- ~this patch forces the terminal to check for new data on the tty on keypress with the aim of reducing input latency~
2021-02-15 13:37:37 +00:00
- [gradient](https://st.suckless.org/patches/gradient/)
- adds gradient transparency to st
- depends on the alpha patch
- [hidecursor](https://st.suckless.org/patches/hidecursor/)
- hides the X cursor whenever a key is pressed and show it back when the mouse is moved in the terminal window
2021-06-09 07:54:50 +00:00
- [hide-terminal-cursor](https://www.reddit.com/r/suckless/comments/nvee8h/how_to_hide_cursor_in_st_is_there_a_patch_for_it/)
- hides the terminal cursor when the window loses focus (as opposed to showing a hollow cursor)
2020-03-29 13:38:16 +00:00
- [invert](https://st.suckless.org/patches/invert/)
- adds a keybinding that lets you invert the current colorscheme of st
- this provides a simple way to temporarily switch to a light colorscheme if you use a dark colorscheme or visa-versa
- [iso14755](https://st.suckless.org/patches/iso14755/)
- pressing the default binding Ctrl+Shift-i will popup dmenu, asking you to enter a unicode codepoint that will be converted to a glyph and then pushed to st
- [keyboard-select](https://st.suckless.org/patches/keyboard_select/)
- allows you to select text on the terminal using keyboard shortcuts
- [ligatures](https://st.suckless.org/patches/ligatures/)
- adds support for drawing ligatures using the Harfbuzz library to transform original text of a single line to a list of glyphs with ligatures included
- [monochrome](https://www.reddit.com/r/suckless/comments/ixbx6z/how_to_use_black_and_white_only_for_st/)
- makes st ignore terminal color attributes to make for a monochrome look
2021-05-08 12:49:59 +00:00
- [netwmicon](https://st.suckless.org/patches/netwmicon/)
- this patch sets the \_NET\_WM\_ICON X property with a hardcoded icon for st
- [newterm](https://st.suckless.org/patches/newterm/)
- allows you to spawn a new st terminal using Ctrl-Shift-Return
- it will have the same CWD (current working directory) as the original st instance
- [open-copied-url](https://st.suckless.org/patches/open_copied_url/)
2019-09-16 13:31:58 +00:00
- open contents of the clipboard in a user-defined browser
2021-07-07 08:08:43 +00:00
- [openurlonclick](https://www.reddit.com/r/suckless/comments/cc83om/st_open_url/)
- allows for URLs to be opened directly when you click on them
2021-05-08 14:50:06 +00:00
- [osc_10_11_12_2](https://st.suckless.org/patches/osc_10_11_12_2/)
- this patch adds support for OSC escape sequences 10, 11, and 12 in the way they are
implemented in most other terminals (e.g libvte, kitty)
- specifically it differs from [osc_10_11_12](https://st.suckless.org/patches/osc_10_11_12/)
in that it treats the background and foreground colors as distinct from palette colours 01
and 07 in order to facilitate the use of theme setting scripts like
[theme.sh](https://github.com/lemnos/theme.sh) which expect these colours to be distinct
- [relativeborder](https://st.suckless.org/patches/relativeborder/)
2021-05-16 09:40:15 +00:00
- allows you to specify a border that is relative in size to the width of a cell in the
terminal
- [right-click-to-plumb](https://st.suckless.org/patches/right_click_to_plumb/)
- allows you to right-click on some selected text to send it to the plumbing program of choice
2019-09-16 13:31:58 +00:00
- [scrollback](https://st.suckless.org/patches/scrollback/)
- allows you scroll back through terminal output using keyboard shortcuts or mousewheel
2021-03-10 17:09:47 +00:00
- sixel
- this patch adds SIXEL graphics support
2020-01-07 07:05:00 +00:00
- st-embedder
2021-05-16 09:40:15 +00:00
- this patch allows clients to embed into the st window and can be useful if you tend to
start X applications from the terminal
2020-01-07 07:05:00 +00:00
- the behavior is similar to Plan 9 where applications can take over windows
- [spoiler](https://st.suckless.org/patches/spoiler/)
- use inverted defaultbg/fg for selection when bg/fg are the same
2021-05-16 09:40:15 +00:00
- [swapmouse](https://st.suckless.org/patches/swapmouse/)
- changes the mouse shape to the global default when the running program subscribes for mouse
events, for instance, in programs like ranger and fzf
- it emulates the behaviour shown by vte terminals like termite
2021-05-09 07:25:22 +00:00
- [sync](https://st.suckless.org/patches/sync/)
- adds synchronized-updates/application-sync support in st
- this has no effect except when an application uses the synchronized-update escape sequences
2021-05-16 09:40:15 +00:00
- with this patch nearly all cursor flicker is eliminated in tmux, and tmux detects it
automatically via terminfo
2021-05-09 07:25:22 +00:00
- [themed-cursor](https://st.suckless.org/patches/themed_cursor/)
- instead of a default X cursor, use the xterm cursor from your cursor theme
2021-05-08 08:53:46 +00:00
- [undercurl](https://st.suckless.org/patches/undercurl/)
- adds support for special underlines, e.g. curly / wavy underlines
2021-05-08 15:49:04 +00:00
- [universcroll](https://st.suckless.org/patches/universcroll/)
- allows mouse scroll without modifier keys for regardless of alt screen using the external
scroll program
2019-09-16 13:31:58 +00:00
- [vertcenter](https://st.suckless.org/patches/vertcenter/)
- vertically center lines in the space available if you have set a larger chscale in config.h
2021-05-09 15:48:28 +00:00
- [vim-browse](https://st.suckless.org/patches/vim_browse/)
- the vim-browse patch offers the possibility to move through the terminal history-buffer,
search for strings using VIM-like motions, operations and quantifiers
- it overlays the screen with highlighted search results and displays the current operation
/ motions / search string in the bottom right corner
2020-08-08 16:09:00 +00:00
- [visualbell](https://st.suckless.org/patches/visualbell/)
- adds visual indicators for the terminal bell event
2020-06-14 18:04:27 +00:00
- [w3m](https://st.suckless.org/patches/w3m/)
- adds support for w3m images
2020-11-14 15:24:07 +00:00
- [wide-glyphs](https://www.reddit.com/r/suckless/comments/jt90ai/update_support_for_proper_glyph_rendering_in_st/)
- adds proper support for wide glyphs, as opposed to rendering smaller or cut glyphs
- [wide-glyph-spacing](https://github.com/googlefonts/Inconsolata/issues/42#issuecomment-737508890)
- there is a known issue that Google's Variable Fonts (VF) can end up with letter spacing
that is too wide in programs that use Xft, for example Inconsolata v3.000
- this is intended as a temporary workaround / patch / hack until (if) this is fixed in the
Xft library itself
2020-03-29 14:46:38 +00:00
- [workingdir](https://st.suckless.org/patches/workingdir/)
- allows user to specify the initial path st should use as the working directory
2019-09-16 13:31:58 +00:00
- [xresources](https://st.suckless.org/patches/xresources/)
- adds the ability to configure st via Xresources
- during startup, st will read and apply the resources named in the resources[] array in config.h