User Controls
Post this into your terminal
-
2017-07-04 at 9:39 AM UTC
#!/bin/bash
#Background Colors
E=$(tput sgr0); R=$(tput setab 1); G=$(tput setab 2); Y=$(tput setab 3);
B=$(tput setab 4); M=$(tput setab 5); C=$(tput setab 6); W=$(tput setab 7);
function e() { echo -e "$E"; }
function x() { echo -n "$E "; }
function r() { echo -n "$R "; }
function g() { echo -n "$G "; }
function y() { echo -n "$Y "; }
function b() { echo -n "$B "; }
function m() { echo -n "$M "; }
function c() { echo -n "$C "; }
function w() { echo -n "$W "; }
#putpixels
function u() {
h="$*";o=${h:0:1};v=${h:1};
for i in `seq $v`
do
$o;
done
}
img="\
x40 e1 x40 e1 x40 e1 x40 e1 x5 b7 x5 b1 x2 b2 x18 e1 x4 b2 x11 b1 x2 b1 x7 b2 x10 e1 x4 b1 x12 b1 x1 b2 x8 b1 x10 e1 x4 b1 x12 b1 x1 b1 x9 b1 x10 e1 x4 b2 x11 b3 x10 b1 x9 e1 x5 b1 x3 r2 x7 b2 x4 r2 x4 b1 x9 e1 x5 b1 x3 r1 x8 b3 x3 r2 x4 b1 x9 e1 x5 b2 x10 b1 x2 b2 x8 b1 x9 e1 x6 b3 x8 b1 x3 b1 x8 b1 x9 e1 x8 b3 x5 b2 x3 b2 x6 b2 x9 e1 x10 b7 x5 b2 x5 b1 x10 e1 x23 b7 x10 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40"
for n in $img
do
u $n
done
e;
exit 0; -
2017-07-04 at 9:50 AM UTCno
. -
2017-07-04 at 9:51 AM UTCyour loss homie
-
2017-07-04 at 9:52 AM UTCwhat does the echo function do in bash anyway?
. -
2017-07-04 at 9:58 AM UTCIt just writes its argv to stdout. So like `echo foo` just prints foo. Also a newline at the end. Depending on which version comes with your OS (or if it's a shell builtin which is sometimes the case) it has some params to control input/output but that's the canonical form. In this case it's being used to spit out escape codes to indicate the background color or a character cell to be shaded.
-
2017-07-04 at 10:02 AM UTCso that would switch all the color on my screen?
. -
2017-07-04 at 10:28 AM UTCno, it draws out a picture by filling your screen with whitespace with different background colors
-
2017-07-04 at 10:33 AM UTCits not permanent then?
. -
2017-07-04 at 10:34 AM UTCwhat is it, a dick pic?
. -
2017-07-04 at 10:35 AM UTCnah, sub-MS-paint tier drawing of boobs
-
2017-07-04 at 10:09 PM UTCWhat's a terminal? Is it that black window thing in that bootleg Windows OS for poor people and hackers they call Linus?
-
2017-07-04 at 10:11 PM UTC
-
2017-07-04 at 10:51 PM UTCWritten by Max Irwin.