Commit Graph

1065 Commits

Author SHA1 Message Date
ed5ecb75d9 Shut up about UTF-8 mouse mode (1005) from tmux 2019-11-01 10:20:04 -04:00
c0dcda02f0 Add my config.h
Adds customized font, selection word boundary character for tmux, and
decreases tab width to 4 spaces.
2019-11-01 10:20:04 -04:00
c8408f4c8a Hide cursor when you start typing 2019-11-01 10:20:04 -04:00
2abadba61e clipboard: Also copy to 'Ctrl-V' in addition to 'middleclick' clipboard 2019-11-01 10:20:04 -04:00
f67574c8ff solarized: Modify dark colors to Aaron's liking 2019-11-01 10:20:04 -04:00
a9038c254c solarized: Apply solarized-dark color theme 2019-11-01 10:20:04 -04:00
6a633863a9 solarized: Disable lighting up bold colors
This is the equivalent of:
	URxvt.intensityStyles: false
2019-11-01 10:20:04 -04:00
75f92eb348 bump version to 0.8.2 0.8.2 2019-02-09 12:48:39 +01:00
3be4cf11d7 config: add Shift+Insert as selpaste() again
This was changed before in:
commit 20f713548d on Wed Jan 25 19:17:38 2017
2019-01-10 18:16:17 +01:00
16d98738e7 Let the user specify CPPFLAGS
This complements the work done in d4928ed, allowing the user to specify
the preprocessor flags with the CPPFLAGS environment variable. This is
useful for example to specify preprocessor macros with -D.

CFLAGS could be used instead, but CPPFLAGS is more correct and is expected
to be honored in some cases. For example, the helper scripts to build
Debian packages make use of CPPFLAGS, but the variable is currently
being ignored unless manually appended to CFLAGS.
2019-01-10 18:13:13 +01:00
e23acb9188 Set the path of pkg-config in a variable instead of hardcoding it
In this way the path of pkg-config can be overridden from the command
line. This is useful for example when cross-compiling.
2019-01-04 16:00:54 +01:00
7e19e11676 Makefile: fix dependencies on config.h
patch by Younes Khoudli (changed slightly). Thanks
2019-01-04 12:33:01 +01:00
096b125db7 output child WEXITSTATUS/WTERMSIG on abnormal termination 2018-12-11 18:36:02 +01:00
d7bf023b2f fix memory leak in xloadcols()
reported by Avi Halachmi (:avih)" <avihpit@yahoo.com>

patch slightly changed by me.
2018-11-04 14:35:07 +01:00
b4d68d4daa st: small typofix in comment 2018-11-04 14:30:56 +01:00
30ec9a3dc3 small code-style fix 2018-09-11 19:06:35 +02:00
67d0cb65d0 Remove the ISO 14755 feature
And move it to the patches section.
Keeping it would force to add an exec pledge on OpenBSD, and some
people think it's bloated, so bye!
2018-09-11 19:05:55 +02:00
4f4bccd162 Revert "Simplify cursor color handling"
This reverts commit 1911c9274d.
2018-07-17 20:01:58 +02:00
8ed7a4b3b7 Revert "Make cursor follow text color"
This reverts commit b51bcd5553.
2018-07-17 20:01:57 +02:00
732be223ee Revert "Fix crash when cursor color is truecolor"
This reverts commit 5535c1f04c.
2018-07-17 20:01:54 +02:00
5535c1f04c Fix crash when cursor color is truecolor
Reported-by: Ivan Tham <pickfire@riseup.net>
2018-07-15 18:16:52 +02:00
b51bcd5553 Make cursor follow text color 2018-07-14 12:49:37 +02:00
1911c9274d Simplify cursor color handling 2018-07-14 12:49:35 +02:00
29f341da7c Fix crash on resize
Prevent to realloc xw.specbuc with a negative number of col.
Add proper hints for the minimal size, for one character.
2018-06-30 20:51:46 +02:00
dc3b5babf1 config.mk: remove extra newline before EOF 2018-06-02 17:11:14 +02:00
235a783e03 code-style for pledge(2)
feedback from Klemens, thanks
2018-05-25 13:04:09 +02:00
30ce2cc002 Pledge on OpenBSD 2018-05-25 11:59:28 +02:00
041912a791 error message style and use strerror in a few places 2018-03-29 18:30:05 +02:00
bd3f7fd842 st -v: remove years and copyright text 2018-03-29 18:18:30 +02:00
74cff67bd7 set sel.alt in selstart instead of selextend 2018-03-29 18:15:29 +02:00
6f0f2b7ec3 bump version to 0.8.1 0.8.1 2018-03-20 21:29:10 +01:00
f4020b2cc4 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!
2018-03-20 21:25:30 +01:00
a5a928bfc1 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.
2018-03-20 21:22:27 +01:00
6ac8c8aa50 selextend: clarify: !sel.mode == SEL_IDLE 2018-03-17 13:48:29 +01:00
5345db3c9b clipcopy: no need to check for free(NULL), set to NULL after free 2018-03-17 13:48:10 +01:00
7648697f71 minor code-style: whitespace fixes 2018-03-16 16:45:58 +01:00
0b507bb731 Fix title initialization 2018-03-16 16:44:30 +01:00
e7ef3c4ce9 Fix regression from 69e32a6 when setting title. 2018-03-16 16:44:30 +01:00
8ab629031b LICENSE: fix a few years 0.8 2018-03-14 20:08:00 +01:00
a712c2dd18 update LICENSE: major contributors 2018-03-14 20:00:35 +01:00
0f245dfeb9 Makefile: add all files to make dist 2018-03-14 19:54:50 +01:00
49a4f91fc5 bump version to 0.8 2018-03-14 19:50:37 +01:00
c5ba9c025b use math.h for ceilf 2018-03-09 15:36:38 +01:00
b81888ee7d xhints: no need to initialize sizeh 2018-03-09 15:36:25 +01:00
8b8255ac0e regression: include termios.h for tcsendbreak etc 2018-03-09 15:35:34 +01:00
20e0da7f14 General cleanup
Simplifies logic in a couple places and removes a redundant function
call.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
2018-02-25 21:56:26 -06:00
403c57ebb5 Clean up #includes
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
2018-02-25 21:56:26 -06:00
e0215d5377 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>
2018-02-25 21:56:26 -06:00
30683c70ab 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>
2018-02-25 21:56:26 -06:00
a3beb626d2 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>
2018-02-25 21:56:26 -06:00