Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
import console.*
|
||||
|
||||
bold()
|
||||
blink()
|
||||
|
||||
if $os.toLowerCase().startsWith( 'win' )
|
||||
println( 'not supported' )
|
||||
else
|
||||
println( 'good to go' )
|
||||
|
||||
reset()
|
||||
|
||||
println( RED + 'Red', GREEN + 'Green', BLUE + 'Blue', MAGENTA + 'Magenta', CYAN + 'Cyan', YELLOW + 'Yellow' + RESET )
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/lasso9
|
||||
|
||||
define ec(code::string) => {
|
||||
|
||||
local(esc = decode_base64('Gw=='))
|
||||
local(codes = map('esc' = #esc,
|
||||
'normal' = #esc + '[0m',
|
||||
'blink' = #esc + '[5;31;49m',
|
||||
'red' = #esc + '[31;49m',
|
||||
'blue' = #esc + '[34;49m',
|
||||
'green' = #esc + '[32;49m',
|
||||
'magenta' = #esc + '[35;49m',
|
||||
'yellowred' = #esc + '[33;41m'
|
||||
))
|
||||
|
||||
return #codes -> find(#code)
|
||||
}
|
||||
|
||||
stdout( ec('red'))
|
||||
stdoutnl('So this is the Rosetta Code!')
|
||||
stdout( ec('blue'))
|
||||
stdoutnl('So this is the Rosetta Code!')
|
||||
stdout( ec('green'))
|
||||
stdoutnl('So this is the Rosetta Code!')
|
||||
stdout( ec('magenta'))
|
||||
stdoutnl('So this is the Rosetta Code!')
|
||||
stdout( ec('yellowred'))
|
||||
stdout('So this is the Rosetta Code!')
|
||||
stdoutnl( ec('blink'))
|
||||
stdoutnl('So this is the Rosetta Code!')
|
||||
stdout( ec('normal'))
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
import Terminal
|
||||
setForegroundColor(fgRed)
|
||||
echo "FATAL ERROR! Cannot write to /boot/vmlinuz-3.2.0-33-generic"
|
||||
|
||||
setBackgroundColor(bgBlue)
|
||||
setForegroundColor(fgYellow)
|
||||
stdout.write "This is an "
|
||||
writeStyled "important"
|
||||
stdout.write " word"
|
||||
resetAttributes()
|
||||
stdout.write "\n"
|
||||
|
||||
setForegroundColor(fgYellow)
|
||||
echo "RosettaCode!"
|
||||
|
||||
setForegroundColor(fgCyan)
|
||||
echo "RosettaCode!"
|
||||
|
||||
setForegroundColor(fgGreen)
|
||||
echo "RosettaCode!"
|
||||
|
||||
setForegroundColor(fgMagenta)
|
||||
echo "RosettaCode!"
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
var a = frequire('Term::ANSIColor');
|
||||
|
||||
say a.colored('RED ON WHITE', 'bold red on_white');
|
||||
say a.colored('GREEN', 'bold green');
|
||||
say a.colored('BLUE ON YELLOW', 'bold blue on_yellow');
|
||||
say a.colored('MAGENTA', 'bold magenta');
|
||||
say a.colored('CYAN ON RED', 'bold cyan on_red');
|
||||
say a.colored('YELLOW', 'bold yellow');
|
||||
Loading…
Add table
Add a link
Reference in a new issue