Colour bars/Display: Difference between revisions

Added Befunge example
m (→‎{{header|PHP}}: Colours were in the wrong order in the image/png example.)
(Added Befunge example)
Line 280:
70 REM at this point the cursor has wrapped, so we don't need a newline
80 NEXT r</lang>
 
=={{header|Befunge}}==
Assuming a terminal with support for ANSI escape sequences, this fills the screen with the colour sequence: black, red, green, blue, magenta, cyan, yellow and white. It then waits for the user to press ''Enter'' before terminating.
<lang befunge><v%"P": <<*"(2"
v_:"P"/"["39*,, :55+/68v
v,,,";1H" ,+*86%+55 ,+*<
73654210v,,\,,,*93"[4m"<
>$:55+%#v_:1-"P"%55+/3g^
39*,,,~@>48*,1-:#v_$"m["</lang>
 
=={{header|C}}==
Anonymous user