Skip to content

Instantly share code, notes, and snippets.

@nberlette
Last active April 25, 2025 22:42
Show Gist options
  • Save nberlette/92d76ab4f4c0041fb1b6bcac9c807c7c to your computer and use it in GitHub Desktop.
Save nberlette/92d76ab4f4c0041fb1b6bcac9c807c7c to your computer and use it in GitHub Desktop.
alternate keyboard character set prank

Want to prank a friend?

Enter this code into their terminal and watch them go crazy trying to figure out what happened!

echo -e "\033(0"

What does it do?

This code changes the terminal's character set to an alternate one, which can cause the text to appear as gibberish or strange symbols. The \033(0 sequence is an escape code that tells the terminal to switch to a different character set, which can lead to confusion for the user.

For example, here's what my prompt looks like before and after:

vscode  …/is/tools   config/devcontainer ✘!?  ♥ 22:21 
echo -e "\033(0"


┴⎽␌⎺␍␊  …/␋⎽/├⎺⎺┌⎽   ␌⎺┼°␋±/␍␊┴␌⎺┼├▒␋┼␊⎼ ✘!?  ♥ 22:22 

Characters Changed

Original Character Alternate Character
a
b
c
d
e
f °
g ±
h
i
j
k
l
m
n
o -
p _
q -
r _
s
t
u
v

How to revert the change

To revert the change and restore the terminal to its normal character set, you can use the following command:

echo -e "\033(B"

Have fun, and don't be a dick!

  • Nick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment