Commit Briefs

6f0f2b7ec3 Hiltjo Posthuma

bump version to 0.8.1 (tags/0.8.1)


f4020b2cc4 Hiltjo Posthuma

fix regression by selecting clipboard text

"restore the old behaviour that the primary doesn't get deleted by a simple left click" Patch by Daniel Tameling <tamelingdaniel@gmail.com>, thanks!


a5a928bfc1 Hiltjo Posthuma

don't modify argv, use a counter

on some platforms (OpenBSD) this changes the exposed argv in tools using the kvm_* interface, such as ps and pgrep.


6ac8c8aa50 Hiltjo Posthuma

selextend: clarify: !sel.mode == SEL_IDLE



7648697f71 Hiltjo Posthuma

minor code-style: whitespace fixes


0b507bb731 Hiltjo Posthuma

Fix title initialization


e7ef3c4ce9 Hiltjo Posthuma

Fix regression from 69e32a6 when setting title.


8ab629031b Hiltjo Posthuma

LICENSE: fix a few years (tags/0.8)


a712c2dd18 Hiltjo Posthuma

update LICENSE: major contributors


0f245dfeb9 Hiltjo Posthuma

Makefile: add all files to make dist


49a4f91fc5 Hiltjo Posthuma

bump version to 0.8


c5ba9c025b Hiltjo Posthuma

use math.h for ceilf


b81888ee7d Hiltjo Posthuma

xhints: no need to initialize sizeh


8b8255ac0e Hiltjo Posthuma

regression: include termios.h for tcsendbreak etc


20e0da7f14 Devin J. Pohly

General cleanup

Simplifies logic in a couple places and removes a redundant function call. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


403c57ebb5 Devin J. Pohly

Clean up #includes

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


e0215d5377 Devin J. Pohly

Reduce visibility wherever possible

When possible, declare functions/variables static and move struct definitions out of headers. In order to allow utf8decode to become internal, use codepoint for DECSCUSR extension directly. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


30683c70ab Devin J. Pohly

Limit usage of extern to config.h globals

Prefer passing arguments to declaring external global variables. The only remaining usage of extern is for config.h variables which are needed in st.c instead of x.c (where it is now included). Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


a3beb626d2 Devin J. Pohly

Remove x.c dependency on term

The xinit function only needs to the rows/cols, so pass those in rather than accessing term directly. With a bit of arithmetic, we are able to avoid the need for term.row and term.col in x2col, y2row, and xdrawglyphfontspecs as well, completing the removal. Term is now fully internal to st.c. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


a5dc1b4697 Devin J. Pohly

Pull term references out of xdrawcursor

Gradually reducing x.c dependency on Term object. Old and new cursor glyph/position are passed to xdrawcursor. (There may be an opportunity to refactor further if we can unify "clear old cursor" and "draw new cursor" functionality.) Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


88d8293fb4 Devin J. Pohly

Move win-agnostic parts of draw/drawregion to st.c

Introduces three functions to encapsulate X-specific behavior: * xdrawline: draws a portion of a single line (used by drawregion) * xbegindraw: called to prepare for drawing (will be useful for e.g. Wayland) and returns true if drawing should happen * xfinishdraw: called to finish drawing (used by draw) Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


05c66cb37d Devin J. Pohly

Split mode bits between Term and TermWindow

Moves the mode bits used by x.c from Term to TermWindow, absorbing UI/input-related mode bits (visible/focused/numlock) along the way. This is gradually reducing external references to Term. Since TermWindow is already internal to x.c, we add xsetmode() to allow st to modify window bits in accordance with escape sequences. IS_SET() is redefined accordingly (term.mode in st.c, win.mode in x.c). Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


33201ac65f Devin J. Pohly

Move CRLF input processing into ttywrite

This also allows us to remove the crlf field from the Key struct, since the only difference it made was converting "\r" to "\r\n" (which is now done automatically in ttywrite). In addition, MODE_CRLF is no longer referenced from x.c. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>


52d6fb1ab1 Devin J. Pohly

Move terminal echo logic into st.c

The only thing differentiating ttywrite and ttysend was the potential for echo; make this a parameter and remove ttysend. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>