<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Editors on Alessandro Miliucci</title><link>https://miliucci.org/tags/editors/</link><description>Recent content in Editors on Alessandro Miliucci</description><generator>Hugo</generator><language>en-gb</language><copyright>© Alessandro Miliucci</copyright><lastBuildDate>Tue, 09 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://miliucci.org/tags/editors/index.xml" rel="self" type="application/rss+xml"/><item><title>The Unbearable Lightness of OSC 52 sequences in Linux Terminals</title><link>https://miliucci.org/post/linux-terminals-osc-52-escape/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://miliucci.org/post/linux-terminals-osc-52-escape/</guid><description>&lt;p>While rewriting my Emacs configuration for a pure terminal usage (no X/Wayland) I discovered the ANSI escape sequence 52 to read-from and write-to the system clipboard.
Soon after, I found out how such a &lt;em>simple&lt;/em> feature was causing so much discussion in Linux terminal&amp;rsquo;s issues trackers and how scattered its support was.&lt;/p>
&lt;h2 id="copy--paste">Copy &amp;amp; Paste&lt;/h2>
&lt;p>Writing (copying to) and reading (pasting from) the system clipboard are two actions we make every day, even several times per minute (if you are a programmer).
&lt;code>Ctrl+C&lt;/code> and &lt;code>Ctrl+V&lt;/code> are the ubiquitous short-cuts supported by all Desktop Environments.
Such operations are so straightforward we do not even think about them, we just press the keys using muscle memory.
Almost all applications support them with an exception - terminal emulators.
If you press &lt;code>Ctrl+C&lt;/code> in a terminal, it will send the signal number 2 (&lt;code>SIGINT&lt;/code>) to terminate the running process.
For this reason, most terminal emulators bind the alternatives &lt;code>Ctrl+Shift+C&lt;/code> and &lt;code>Ctrl+Shift+V&lt;/code> sequences to the copy &amp;amp; paste action.&lt;/p></description></item></channel></rss>