No description
Find a file
robert 0ca03d1c63 Fix mouse report with my additions
This patch replaces the previous one I sent.

The following changes are made in this patch:
 - Fix tracking of pressed buttons. Previously, pressing two buttons and
   then releasing one would make st think no buttons are pressed, which
   in particular broke MODE_MOUSEMOTION.
 - Always send the lowest-numbered pressed button on motion events; when
   no button is pressed for a motion event in MODE_MOUSEMANY, then send
   a release. This matches the behaviour of xterm. (Previously, st sent
   the most recently pressed button in the motion report.)
 - Remove UB (?) access to potentially inactive struct member
   e->xbutton.button of XEvent union.
 - Fix (unlikely) possibility of overflow for large button numbers.

The one discrepancy I found between st and xterm is that xterm sometimes
encodes buttons with large numbers (>5) strangely. E.g., xterm reports
presses of buttons 8 and 9 as releases, whereas st properly (?) encodes
them as presses.
2022-08-28 12:02:54 +04:00
.gitignore Merge branch 'st-alpha-0.8.2' 2020-12-19 23:13:44 +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 cahnge color scheme to soft contrast, opacity to 1.0 2022-08-28 10:30:03 +04:00
config.mk bump version to 0.8.5 2022-04-30 13:36:29 +04:00
FAQ FAQ: fix a typo, patch -> path 2022-04-30 13:36:21 +04: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 Update README.md 2022-08-28 10:22:01 +04:00
st.1 Merge 0.8.4 2020-12-19 03:27:43 +03:00
st.c base64_digits: reduce scope, implicit zero, +1 size 2022-04-30 13:41:18 +04:00
st.h Apply st-externalpipe-0.8.4.diff, rightclickpaste 2020-12-20 01:30: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 mouse report with my additions 2022-08-28 12:02:54 +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