forked from cory/tildefriends
All of the changes that have been sitting on tildepi for ages. For posterity.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3530 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
33
packages/cory/splits/splits.js
Normal file
33
packages/cory/splits/splits.js
Normal file
@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
|
||||
//! {"category": "tests"}
|
||||
|
||||
terminal.print("Hello, world!");
|
||||
terminal.split([
|
||||
{name: "h1", grow: 4},
|
||||
{name: "h2", grow: 1},
|
||||
{type: "vertical", children: [
|
||||
{name: "h3.v1"},
|
||||
{name: "h3.v2"},
|
||||
{type: "horizontal", children: [
|
||||
{name: "h3.v3.h1"},
|
||||
{name: "h3.v3.h2"},
|
||||
{name: "h3.v3.h3"},
|
||||
]},
|
||||
{name: "h3.v4"},
|
||||
]},
|
||||
{name: "h4"}
|
||||
]);
|
||||
|
||||
function multiprint(text) {
|
||||
var terminals = ["h1", "h2", "h3.v1", "h3.v2", "h3.v3.h1", "h3.v3.h2", "h3.v3.h3", "h3.v4", "h4"];
|
||||
for (var i = 0; i < terminals.length; i++) {
|
||||
terminal.select(terminals[i]);
|
||||
terminal.print({style: "color: red", value: terminals[i]}, " ", text);
|
||||
}
|
||||
}
|
||||
|
||||
multiprint("hello");
|
||||
core.register("onInput", function(input) {
|
||||
multiprint(input);
|
||||
});
|
Reference in New Issue
Block a user