Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This file echoes a bunch of 24-bit color codes
|
||||
# to the terminal to demonstrate its functionality.
|
||||
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
|
||||
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
|
||||
# <r> <g> <b> range from 0 to 255 inclusive.
|
||||
# The escape sequence ^[0m returns output to default
|
||||
|
||||
setBackgroundColor()
|
||||
{
|
||||
echo -en "\x1b[48;2;$1;$2;$3""m"
|
||||
}
|
||||
|
||||
resetOutput()
|
||||
{
|
||||
echo -en "\x1b[0m\n"
|
||||
}
|
||||
|
||||
# Gives a color $1/255 % along HSV
|
||||
# Who knows what happens when $1 is outside 0-255
|
||||
# Echoes "$red $green $blue" where
|
||||
# $red $green and $blue are integers
|
||||
# ranging between 0 and 255 inclusive
|
||||
rainbowColor()
|
||||
{
|
||||
let h=$1/43
|
||||
let f=$1-43*$h
|
||||
let t=$f*255/43
|
||||
let q=255-t
|
||||
|
||||
if [ $h -eq 0 ]
|
||||
then
|
||||
echo "255 $t 0"
|
||||
elif [ $h -eq 1 ]
|
||||
then
|
||||
echo "$q 255 0"
|
||||
elif [ $h -eq 2 ]
|
||||
then
|
||||
echo "0 255 $t"
|
||||
elif [ $h -eq 3 ]
|
||||
then
|
||||
echo "0 $q 255"
|
||||
elif [ $h -eq 4 ]
|
||||
then
|
||||
echo "$t 0 255"
|
||||
elif [ $h -eq 5 ]
|
||||
then
|
||||
echo "255 0 $q"
|
||||
else
|
||||
# execution should never reach here
|
||||
echo "0 0 0"
|
||||
fi
|
||||
}
|
||||
|
||||
for j in `seq 0 100`; do
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor $i 0 0
|
||||
echo -en " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 $i 0
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor 0 0 $i
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
|
||||
for i in `seq 0 127`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
for i in `seq 255 128`; do
|
||||
setBackgroundColor `rainbowColor $i`
|
||||
echo -n " "
|
||||
done
|
||||
resetOutput
|
||||
done
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
chars=`echo $((64*1024*1024))`
|
||||
openssl rand -hex $chars
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
# Integration Test
|
||||
|
||||
This is a Markdown file read by the `test_restore_snapshot_with_markdown_file` integration test.
|
||||
@@ -0,0 +1,2 @@
|
||||
// This is a test file
|
||||
struct Something {}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
# Warp Launch Configuration
|
||||
#
|
||||
#
|
||||
# Use this to start a certain configuration of windows, tabs, and panes
|
||||
# Open the launch configuration palette to access and open any launch configuration
|
||||
#
|
||||
# This file defines your launch configuration
|
||||
# More on how to do so here: [link to docs]
|
||||
#
|
||||
# All launch configurations are stored under ~/.warp/launch_configurations/
|
||||
# Edit them anytime!
|
||||
|
||||
---
|
||||
name: Launch Config
|
||||
windows:
|
||||
- tabs:
|
||||
- layout:
|
||||
split_direction: horizontal
|
||||
panes:
|
||||
- cwd: /Users/zhengtao/src/warp-internal/app/src/terminal
|
||||
- cwd: /Users/zhengtao/src/warp-internal
|
||||
- layout:
|
||||
cwd: /Users/zhengtao/src/warp-internal
|
||||
- layout:
|
||||
cwd: /Users/zhengtao/src/warp-internal
|
||||
- tabs:
|
||||
- layout:
|
||||
split_direction: horizontal
|
||||
panes:
|
||||
- cwd: /Users/zhengtao
|
||||
- cwd: /Users/zhengtao
|
||||
- layout:
|
||||
cwd: /Users/zhengtao
|
||||
- layout:
|
||||
cwd: /Users/zhengtao
|
||||
- tabs:
|
||||
- layout:
|
||||
cwd: /Users/zhengtao
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
|
||||
accent: '#01a0e4'
|
||||
background: '#090300'
|
||||
details: darker
|
||||
foreground: '#a5a2a2'
|
||||
terminal_colors:
|
||||
bright:
|
||||
black: '#5c5855'
|
||||
blue: '#807d7c'
|
||||
cyan: '#cdab53'
|
||||
green: '#3a3432'
|
||||
magenta: '#d6d5d4'
|
||||
red: '#e8bbd0'
|
||||
white: '#f7f7f7'
|
||||
yellow: '#4a4543'
|
||||
normal:
|
||||
black: '#090300'
|
||||
blue: '#01a0e4'
|
||||
cyan: '#b5e4f4'
|
||||
green: '#01a252'
|
||||
magenta: '#a16a94'
|
||||
red: '#db2d20'
|
||||
white: '#a5a2a2'
|
||||
yellow: '#fded02'
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
accent: '#01a0e4'
|
||||
background: '#090300'
|
||||
details: darker
|
||||
foreground: '#a5a2a2'
|
||||
terminal_colors:
|
||||
bright:
|
||||
black: '#5c5855'
|
||||
blue: '#807d7c'
|
||||
cyan: '#cdab53'
|
||||
green: '#3a3432'
|
||||
magenta: '#d6d5d4'
|
||||
red: '#e8bbd0'
|
||||
white: '#f7f7f7'
|
||||
yellow: '#4a4543'
|
||||
normal:
|
||||
black: '#090300'
|
||||
blue: '#01a0e4'
|
||||
cyan: '#b5e4f4'
|
||||
green: '#01a252'
|
||||
magenta: '#a16a94'
|
||||
red: '#db2d20'
|
||||
white: '#a5a2a2'
|
||||
yellow: '#fded02'
|
||||
name: test_theme
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
name: "Run Warp locally with shell"
|
||||
command: "WARP_SHELL_PATH={{shell}} cargo run"
|
||||
description: "Runs warp with the particular shell so devs don't need to change their login shell to test a different shell locally"
|
||||
arguments:
|
||||
- name: shell
|
||||
description: path of shell to use
|
||||
author: Warp Team
|
||||
shells: []
|
||||
---
|
||||
name: "Run Warp locally with shell 2: Electric Boogaloo"
|
||||
command: "WARP_SHELL_PATH={{shell}} cargo run"
|
||||
description: "Runs warp with the particular shell so devs don't need to change their login shell to test a different shell locally"
|
||||
arguments:
|
||||
- name: shell
|
||||
description: path of shell to use
|
||||
author: Warp Team
|
||||
shells: []
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user