No description
Find a file
Koichi Murase 85d4f7e7cd fix a problem that the standard streams are unexpectedly closed
In the current implementation, the slave PTY (assigned to the variable
`s') is always closed after duplicating it to file descriptors of
standard streams (0, 1, and 2).  However, when the allocated slave PTY
`s' is already one of 0, 1, or 2, this causes unexpected closing of a
standard stream.  The same problem occurs when the file descriptor of
the master PTY (the variable `m') is one of 0, 1, or 2.

In this patch, the original master PTY (m) is closed before it would
be overwritten by duplicated slave PTYs.  The original slave PTY (s)
is closed only when it is not one of the stanrad streams.
2022-04-30 13:31:28 +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 fix a problem that the standard streams are unexpectedly closed 2022-04-30 13:31:28 +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 Add 14th bit to XK_SWITCH_MOD bitmask 2022-04-30 13:31:17 +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