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:
2020-09-23 01:58:13 +00:00
parent d6018736d5
commit d293637741
29 changed files with 3380 additions and 8 deletions

View 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);
});