No description
Find a file
Hiltjo Posthuma 5cbf4c6cf9 fix: correctly encode mouse buttons >= 8 in X10 and SGR mode
These are typically mapped in X11 to the side-buttons (backward/forwards) on
the mouse. A comparison of the button numbers in SGR mode (first field):

st old:
0 1 2 64 65 66 67 68 69 70

st new (it is the same as xterm now):
0 1 2 64 65 66 67 128 129 130

A script to test and reproduce it, first argument is "h" (on) or "l" (off):

	#!/bin/sh
	printf '\x1b[?1000%s\x1b[?1006%s' "$1" "$1"

	for n in 1 2 3 4 5 6 7 8 9 10; do
		printf 'button %d\n' "$n"
		xdotool click "$n"
		printf '\n\n'
	done
2022-04-30 13:10:36 +04:00
.gitignore Apply xresources, font2 (adds the ability to configure st via Xresources), solarized-both patches 2020-12-20 15:18:22 +03:00
arg.h Initial (st-0.8.2 with solarized and scrollback diff's) 2019-12-02 14:38:37 +03:00
config.h Add gruvbox colors 2022-04-05 10:45:23 +04:00
config.mk Apply alpha for 0.8.4 2020-12-19 20:32:56 +03:00
FAQ Merge 0.8.4 2020-12-19 03:27:43 +03:00
LEGACY Merge 0.8.4 2020-12-19 03:27:43 +03:00
LICENSE Merge 0.8.4 2020-12-19 03:27:43 +03:00
Makefile Initial (st-0.8.2 with solarized and scrollback diff's) 2019-12-02 14:38:37 +03:00
README Merge 0.8.4 2020-12-19 03:27:43 +03:00
README.md Change color scheme to Apprentice, update README.md 2021-11-30 20:23:29 +03:00
st.1 Merge 0.8.4 2020-12-19 03:27:43 +03:00
st.c remove unused variable from previous patch 2022-04-30 13:10:22 +04:00
st.h Apply xresources, font2 (adds the ability to configure st via Xresources), solarized-both patches 2020-12-20 15:18:22 +03:00
st.info Merge 0.8.4 2020-12-19 03:27:43 +03:00
TODO Merge 0.8.4 2020-12-19 03:27:43 +03:00
win.h ST: Add WM_ICON_NAME property support 2022-04-30 13:10:15 +04:00
x.c fix: correctly encode mouse buttons >= 8 in X10 and SGR mode 2022-04-30 13:10:36 +04:00

st - simple terminal emulator for X

This is my terminal that I use every day, and maybe it will work for you too.

Bindings

  • Scrollback: with shift-↑/↓
  • Scrollback mouse: shift while scrolling the mouse
  • Change font size:ctrl+shift-↑/↓
  • Reset font size: ctrl+shift-home returns to default
  • Copy/Paste text: with ctrl+shift-c, ctrl+shift+v and ctrl+shift-insert or right mouse click
  • Extract all visible URLs and present rofi/dmenu to select and open one: ctrl+shift+U

Requirements

  • make tool for building
  • libXft library for fonts drawing
  • Xlib header files for interacting with an X server
  • xurls tool for extract urls from plain text
  • Fantasque default font which you can change in config.h

Patches

  • st-scrollback
  • st-scrollback-mouse
  • alpha
  • externalpipe
  • rightclickpaste
  • font2

Simple installation

git clone https://github.com/ssilaev/st
cd st
sudo make install