<feed xmlns='http://www.w3.org/2005/Atom'>
<title>st.git/x.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://www.git.mouadalami.xyz/st.git/atom?h=main</id>
<link rel='self' href='https://www.git.mouadalami.xyz/st.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/'/>
<updated>2026-04-13T12:38:40+00:00</updated>
<entry>
<title>added scrollback patch</title>
<updated>2026-04-13T12:38:40+00:00</updated>
<author>
<name>Mouad Alami</name>
<email>mouad@alami.xyz</email>
</author>
<published>2026-04-13T12:38:40+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=2150d5e4f7e340313b32920976606d17776b8da2'/>
<id>urn:sha1:2150d5e4f7e340313b32920976606d17776b8da2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix BadMatch error when embedding on some windows</title>
<updated>2024-08-09T11:34:56+00:00</updated>
<author>
<name>Lucas de Sena</name>
<email>lucas@seninha.org</email>
</author>
<published>2024-08-09T11:33:47+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=a0274bc20e11d8672bb2953fdd1d3010c0e708c5'/>
<id>urn:sha1:a0274bc20e11d8672bb2953fdd1d3010c0e708c5</id>
<content type='text'>
When embedded, st fails with BadMatch error if the embedder's window has
non-default colormap/depth/visual.  This commit fixes that by creating
st's window inside root and then reparent it into embedder.

The reference window for dc.gc is also changed to match root's visuals.

A similar commit had been made for dmenu[1].
See this issue[2] on github for context.

[1]: https://git.suckless.org/dmenu/commit/0fe460dbd469a1d5b6a7140d0e1801935e4a923b.html
[2]: https://github.com/phillbush/xfiles/issues/47
</content>
</entry>
<entry>
<title>Reset title when an empty title string is given</title>
<updated>2024-04-03T17:49:05+00:00</updated>
<author>
<name>DOGMAN</name>
<email>dogman@aaathats3as.com</email>
</author>
<published>2024-04-03T17:48:11+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=497a75638291454875ba1ec8d484c7f3d6f41d66'/>
<id>urn:sha1:497a75638291454875ba1ec8d484c7f3d6f41d66</id>
<content type='text'>
With this patch, st will reset its window title when an empty string is
given as the terminal title. For example:
	printf "\033]0;\007"

Some applications, like termdown, expect this functionality. xterm
implements it, but it seems that most other terminal emulators don't.
In any case, I don't see why there should ever be a case where the st
window doesn't have a title property.
</content>
</entry>
<entry>
<title>Fix bounds checks of dc.col</title>
<updated>2023-10-07T10:16:59+00:00</updated>
<author>
<name>Peter Hofmann</name>
<email>scm@uninformativ.de</email>
</author>
<published>2023-10-07T05:39:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=a6bbc0c96b0a1db804061b0db79101c6b26aec57'/>
<id>urn:sha1:a6bbc0c96b0a1db804061b0db79101c6b26aec57</id>
<content type='text'>
dc.collen is the length of dc.col, not the maximum index, hence if x is
equal to dc.collen, then it's an error.

With config.def.h, the last valid index is 259, so this correctly
reports "black":

    $ printf '\033]4;259;?\e\\'

260 is an invalid index and this reports garbage instead of printing an
error:

    $ printf '\033]4;260;?\e\\'
</content>
</entry>
<entry>
<title>fix buffer overflow when handling long composed input</title>
<updated>2022-10-25T15:11:11+00:00</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2022-10-25T15:11:11+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=e5e959835b195c023d1f685ef4dbbcfc3b5120b2'/>
<id>urn:sha1:e5e959835b195c023d1f685ef4dbbcfc3b5120b2</id>
<content type='text'>
To reproduce the issue:

"
If you already have the multi-key enabled on your system, then add this line
to your ~/.XCompose file:

[...]
&lt;question&gt; &lt;T&gt; &lt;E&gt; &lt;S&gt; &lt;T&gt; &lt;question&gt; :
"1234567890123456789012345678901234567890123456789012345678901234567890"
"

Reported by and an initial patch by Andy Gozas &lt;andy@gozas.me&gt;, thanks!

Adapted the patch, for now st (like dmenu) handles a fixed amount of composed
characters, or otherwise ignores it. This is done for simplicity sake.
</content>
</entry>
<entry>
<title>make underlines and strikethroughs respect `chscale`</title>
<updated>2022-03-13T09:45:34+00:00</updated>
<author>
<name>Zacchary Dempsey-Plante</name>
<email>zacc@ztdp.ca</email>
</author>
<published>2022-03-13T09:44:08+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=2aefa348baf4b702fdce98eb105bcba175d8283f'/>
<id>urn:sha1:2aefa348baf4b702fdce98eb105bcba175d8283f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>X10/SGR mouse: use alt as meta key instead of super/windows key</title>
<updated>2022-01-12T08:44:27+00:00</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2022-01-12T08:44:27+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=2c5edf28ec851907305d73c6218ce75d39f1767f'/>
<id>urn:sha1:2c5edf28ec851907305d73c6218ce75d39f1767f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix mousereport</title>
<updated>2022-01-10T16:04:01+00:00</updated>
<author>
<name>robert</name>
<email>robertrussell.72001@gmail.com</email>
</author>
<published>2022-01-08T19:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=ea7cd7b62fdfa6a1fbd882d1565d557577f2cf32'/>
<id>urn:sha1:ea7cd7b62fdfa6a1fbd882d1565d557577f2cf32</id>
<content type='text'>
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-&gt;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 (&gt;5) strangely. E.g., xterm reports
presses of buttons 8 and 9 as releases, whereas st properly (?) encodes
them as presses.
</content>
</entry>
<entry>
<title>Add support for OSC color sequences</title>
<updated>2021-12-26T17:57:44+00:00</updated>
<author>
<name>Raheman Vaiya</name>
<email>r.vaiya@gmail.com</email>
</author>
<published>2021-12-26T17:57:04+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=8e310303903792c010d03c046ba75f8b18f7d3a7'/>
<id>urn:sha1:8e310303903792c010d03c046ba75f8b18f7d3a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix possible rare crash when Xutf8TextPropertyToTextList fails</title>
<updated>2021-08-24T11:44:35+00:00</updated>
<author>
<name>Hiltjo Posthuma</name>
<email>hiltjo@codemadness.org</email>
</author>
<published>2021-08-24T11:44:35+00:00</published>
<link rel='alternate' type='text/html' href='https://www.git.mouadalami.xyz/st.git/commit/?id=2f6e597ed871cff91c627850d03152cae5f45779'/>
<id>urn:sha1:2f6e597ed871cff91c627850d03152cae5f45779</id>
<content type='text'>
from the XmbTextListToTextProperty(3) man page:

"If insufficient memory is available for the new value string, the functions
return XNoMemory.  If the current locale is not supported, the functions return
XLocaleNotSupported.  In both of these error cases, the functions do not set
text_prop_return."

Reported by Steffen Nurpmeso &lt;steffen@sdaoden.eu&gt;, thanks!
</content>
</entry>
</feed>
