Skip to content

Instantly share code, notes, and snippets.

@avindra
avindra / Reset-Alacritty.md
Last active February 19, 2024 09:35
Reset Terminal

Introduction

To reset your terminal, you can call reset from your shell, which is generally included with the target operating systems.

If you want to reset when you are not at a shell prompt (i.e., inside some other application), we can send an escape sequence in another way.

As an example, we can send a special escape sequence to the Nth tty:

echo -e "\ec" > /dev/pts/$N
@mikaa123
mikaa123 / havesome
Last active August 29, 2015 13:56
Makes your browser drink
-----------------------------------------------------------------------------
"THE BEER-WARE LICENSE" (Revision 42):
<misokol123@gmail.com> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return. -Michaël Sokol
-----------------------------------------------------------------------------
eval(atob("\
dmFyIGpxID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7CmpxLnNyYyA9ICIvL2N \