3 ms·
Can substitute a forward slash for the 0 and remove the quotes printf \\33c Another way is to use a program that converts hex to binary. A short script to
by 3xblah 7y ago
Can substitute a forward slash for the 0 and remove the quotes
printf \\33c
Another way is to use a program that converts hex to binary. A short script to use when there is no clear, tput, etc, e.g., xxd or nc-data
exec echo 1b63 |exec xxd -p -r
echo -e '27\n99\n' |exec nc-data -g
exec echo |exec sed '1i\
27 \
99
' |exec nc-data -g
- teddyh 7y ago\ is a backslash / is a forward slash, a.k.a. simply “slash”
- 3xblah 7y agoNot sure why I always get this wrong. Maybe it is because when I draw these characters on a surface, I start from the top not the bottom. Hence the line goes forward for a "backslash" and backward for a "forward slash". What is the etymology of these terms? Probably better to just use "escape" for backslash and "slash" for forward slash.