Compare commits
120
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89bc3eac0c
|
||
|
|
df78c7d6eb
|
||
|
|
66b3a77805
|
||
|
|
b401b5ece8
|
||
|
|
9f33c902ee
|
||
|
|
9f29ac6a77
|
||
|
|
f775a6ab2d
|
||
|
|
a39cee7ccb
|
||
|
|
7875db0aea
|
||
|
|
7595e3b5bb
|
||
|
|
2ba0ed85fb
|
||
|
|
439520d4fe
|
||
|
|
ded1f2c17e
|
||
|
|
92ae8c9681
|
||
|
|
743cdca174
|
||
|
|
7d8e902ce2
|
||
|
|
ed0010c8af
|
||
|
|
a8e138deb7
|
||
|
|
d0453d08b8
|
||
|
|
825fb63bc8
|
||
|
|
76f708d9d7
|
||
|
|
0d2644f476
|
||
|
|
9a818117d7
|
||
|
|
5ba5b2b372
|
||
|
|
3cb0d11e71
|
||
|
|
4cc749facc
|
||
|
|
c6d8eec287
|
||
|
|
2572b57697
|
||
|
|
80a36a9947
|
||
|
|
4cde0640c8
|
||
|
|
e9a9c2b680
|
||
|
|
ba25e6056c
|
||
|
|
aa4adf20f9
|
||
|
|
50adf32f14
|
||
|
|
a4293ff243
|
||
|
|
50450f3bbc | ||
|
|
bce134f052 | ||
|
|
962a384ecf | ||
|
|
0b7d032b11 | ||
|
|
7e20dd73d9 | ||
|
|
182dec6065 | ||
|
|
54af974c2b | ||
|
|
dddc09b4ce | ||
|
|
adda53c5a9 | ||
|
|
5c1d61eefd | ||
|
|
54c7e19939 | ||
|
|
5457e91b37 | ||
|
|
79016f39b2 | ||
|
|
2b9ab1e0fb | ||
|
|
315cd8d23e | ||
|
|
e3551fa624 | ||
|
|
9ec335cad8 | ||
|
|
466e00c16c | ||
|
|
fc72cf4abb | ||
|
|
65d7546efd | ||
|
|
ec22e68e8c | ||
|
|
43cdc46853 | ||
|
|
591b990087 | ||
|
|
91ac6241f4 | ||
|
|
edefc80759 | ||
|
|
4145ff497b | ||
|
|
bec0cf2987 | ||
|
|
e2fe884925 | ||
|
|
caee008d50 | ||
|
|
af443c6bbf | ||
|
|
ae9cd08b15 | ||
|
|
91794a0197 | ||
|
|
8a7ce78aaf | ||
|
|
35ebe31008 | ||
|
|
c28fcd26c1 | ||
|
|
3b6848f845 | ||
|
|
53b69f034c | ||
|
|
54ce697e91 | ||
|
|
8f16435f30 | ||
|
|
ca14bc6106 | ||
|
|
a293ef46da | ||
|
|
c66401d941 | ||
|
|
ad4186e1f8 | ||
|
|
8c130a40d7 | ||
|
|
9a3bc3dbf7 | ||
|
|
9d5a661b4e | ||
|
|
4234c9ad0c | ||
|
|
a588e2ef21 | ||
|
|
8519d204f3 | ||
|
|
33262c9638 | ||
|
|
5c5c59cbfc | ||
|
|
c022d1d9e2 | ||
|
|
12497e92f8 | ||
|
|
d10f738c75 | ||
|
|
140f27216a | ||
|
|
04ba88c68b | ||
|
|
6ccab74c94 | ||
|
|
c634e1affc | ||
|
|
dab486a2c1 | ||
|
|
9b0dd3c52f | ||
|
|
f45e722578 | ||
|
|
7b005ea4b1 | ||
|
|
c0c0590bb9 | ||
|
|
16724f6a52 | ||
|
|
44e92735cf | ||
|
|
8cc047c1fa | ||
|
|
8fbc958ca1 | ||
|
|
b980703350 | ||
|
|
eb89f7f98b | ||
|
|
cc847b7035 | ||
|
|
9dc1a4b95a | ||
|
|
69c1600eb9 | ||
|
|
c4639bf4bb | ||
|
|
07e932741c | ||
|
|
e4ff240839 | ||
|
|
96375e3b72 | ||
|
|
9322785ca0 | ||
|
|
cc831a5cdf | ||
|
|
86b3e7d4ed | ||
|
|
f55d71a7cb | ||
|
|
f66a870223 | ||
|
|
e2f9408850 | ||
|
|
c2080ab40f | ||
|
|
a9f48bfb6a | ||
|
|
7891af6c6f |
No files matched your search
@@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup zig installation
|
- name: Setup zig installation
|
||||||
uses: mlugg/setup-zig@v1
|
uses: mlugg/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: master
|
version: master
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup zig installation
|
- name: Setup zig installation
|
||||||
uses: mlugg/setup-zig@v1
|
uses: mlugg/setup-zig@v2
|
||||||
with:
|
with:
|
||||||
version: master
|
version: master
|
||||||
- name: Lint check
|
- name: Lint check
|
||||||
run: zig fmt --check .
|
run: zig fmt --check --exclude src/test .
|
||||||
- name: Spell checking
|
- name: Spell checking
|
||||||
uses: crate-ci/typos@v1.25.0
|
uses: crate-ci/typos@v1.25.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,9 +1,22 @@
|
|||||||
# zterm Terminal User Interface Library
|
# zterm TUI Library
|
||||||
|
|
||||||
`zterm` is a terminal user interface library to implement terminal (fullscreen or inline) applications.
|
`zterm` is a terminal user interface library (*tui*) to implement terminal (fullscreen or inline) applications.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!CAUTION]
|
||||||
> Only builds using the master version are tested to work.
|
> Only builds using the zig master version are tested to work.
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
Clone this repository and run `zig build --help` to see the available examples. Run a given example as follows:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
zig build --release=safe -Dexample=demo run
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Every example application can be quit using `ctrl+c`.
|
||||||
|
|
||||||
|
See the [wiki](https://gitea.yves-biener.de/yves-biener/zterm/wiki) for a showcase of the examples and the further details.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -13,7 +26,7 @@ To add or update `zterm` as a dependency in your project run the following comma
|
|||||||
zig fetch --save git+https://gitea.yves-biener.de/yves-biener/zterm
|
zig fetch --save git+https://gitea.yves-biener.de/yves-biener/zterm
|
||||||
```
|
```
|
||||||
|
|
||||||
Add the dependency to your module as follows in your _build.zig_:
|
Add the dependency to your module as follows in your *build.zig*:
|
||||||
|
|
||||||
```zig
|
```zig
|
||||||
const zterm: *Dependency = b.dependency("zterm", .{
|
const zterm: *Dependency = b.dependency("zterm", .{
|
||||||
@@ -24,156 +37,10 @@ const zterm: *Dependency = b.dependency("zterm", .{
|
|||||||
exe.root_module.addImport("zterm", zterm.module("zterm"));
|
exe.root_module.addImport("zterm", zterm.module("zterm"));
|
||||||
```
|
```
|
||||||
|
|
||||||
For an example you can take a look at [build.zig](build.zig) for an example.
|
### Documentation
|
||||||
|
|
||||||
---
|
A wiki should be created containing a bright overview of the structure and usage
|
||||||
## Design Goals
|
of the library. For details it should refer to the examples. The documentation
|
||||||
|
should be minimal in terms of updateability in case the library changes. Maybe
|
||||||
This project draws heavy inspiration from
|
some documentation could be derived from the code documentation (there is a tool
|
||||||
[clay](https://github.com/nicbarker/clay) in the way the layout is declared by
|
for this if I recall correctly).
|
||||||
the user. As terminal applications usually are rendered in intermediate mode,
|
|
||||||
the rendering is also part of the event loop. Such that every time an event
|
|
||||||
happens a render call will usually be done as well. However this is not strickly
|
|
||||||
necessary and can be separated to have a fixed rendering of every 16ms (i.e. for
|
|
||||||
60 fps), etc.
|
|
||||||
|
|
||||||
There is only one generic container which contains properties and elements (or
|
|
||||||
children) which can also be containers, such that each layout in the end is
|
|
||||||
a tree.
|
|
||||||
|
|
||||||
The library is designed to be very basic and not to provide any more complex
|
|
||||||
elements such as input fields, drop-down menu's, buttons, etc. Some of them are
|
|
||||||
either easy to implement yourself, specific for you needs or a too complex to
|
|
||||||
be provided by the library effectively. For these use-cases there may be other
|
|
||||||
libraries that build on top of this one to provide the complex elements as some
|
|
||||||
sort of pre-built elements for you to use in your application (or you create
|
|
||||||
them yourself).
|
|
||||||
|
|
||||||
There are only very few system events, that are used by the built-in containers
|
|
||||||
and properties accordingly. For you own widgets (i.e. a collection of elements)
|
|
||||||
you can extend the events to include your own events to communicate between
|
|
||||||
elements, effect the control flow and the corresponding generated layouts and
|
|
||||||
much more.
|
|
||||||
|
|
||||||
As this is a terminal based layout library it also provides a rendering pipeline
|
|
||||||
alongside the event loop implementation. Usually the event loop is waiting
|
|
||||||
blocking and will only cause a re-draw (**intermediate mode**) after each event.
|
|
||||||
Even though the each frame is regenerated from scratch each render loop, the
|
|
||||||
corresponding application is still pretty performant as the renderer uses a
|
|
||||||
double buffered intermediate mode implementation to only apply the changes from
|
|
||||||
each frame to the next to the terminal.
|
|
||||||
|
|
||||||
This library is also designed to work accordingly in ssh hosted environments,
|
|
||||||
such that an application created using this library can be accessed directly
|
|
||||||
via ssh. This provides security through the ssh protocol and can defer the
|
|
||||||
synchronization process, as users may access the same running instance. Which is
|
|
||||||
the primary use-case for myself to create this library in the first place.
|
|
||||||
|
|
||||||
---
|
|
||||||
## Roadmap
|
|
||||||
|
|
||||||
- [ ] Container rendering
|
|
||||||
- [x] Layout
|
|
||||||
- [x] direction
|
|
||||||
- [x] vertical
|
|
||||||
- [x] horizontal
|
|
||||||
- [x] padding
|
|
||||||
- [x] gap
|
|
||||||
- [x] sizing (removed - for now at least)
|
|
||||||
- width
|
|
||||||
- height
|
|
||||||
- options
|
|
||||||
- fit
|
|
||||||
- grow
|
|
||||||
- fixed
|
|
||||||
- percent
|
|
||||||
- [x] Border
|
|
||||||
- [x] sides
|
|
||||||
- [x] corners
|
|
||||||
- [x] separators
|
|
||||||
- [x] Rectangle
|
|
||||||
- [ ] User control
|
|
||||||
- [x] event handling
|
|
||||||
- [x] user content
|
|
||||||
- [ ] Default `Element` implementations
|
|
||||||
- [ ] Scrollable
|
|
||||||
- [ ] user input handling
|
|
||||||
- [ ] vertical
|
|
||||||
- [ ] horizontal
|
|
||||||
- [ ] scroll bar(s) rendering
|
|
||||||
- [ ] vertical
|
|
||||||
- [ ] horizontal
|
|
||||||
- [ ] Content alignment (i.e. standard calculations done with the provided `Size`)
|
|
||||||
- [ ] Text display
|
|
||||||
- [ ] User input
|
|
||||||
- [ ] single line
|
|
||||||
- [ ] multi line
|
|
||||||
- [ ] min size? (I don't have access to the `.resize` `Event`..)
|
|
||||||
|
|
||||||
Decorations should respect the layout and the viewport accordingly. This means
|
|
||||||
that scrollbars are always visible (except there is no need to have a scrollbar)
|
|
||||||
irrelevant depending on the size of the content. The rectangle apply to all
|
|
||||||
cells of the content (and may be overwritten by child elements contents).
|
|
||||||
The border of an element should be around independent of the scrolling of the
|
|
||||||
contents, just like padding.
|
|
||||||
|
|
||||||
### Scrollable contents
|
|
||||||
|
|
||||||
Contents that is scrollable should be done *virtually* through the contents of
|
|
||||||
the `Container`. This means each container contents implements scrolling for
|
|
||||||
itself if required.
|
|
||||||
|
|
||||||
This still has one issue: Layout of child elements that are already too large
|
|
||||||
(i.e. or become too small). The library could provide automatic rendering of a
|
|
||||||
scrollbar given the right parameters however. The scrolling input action would
|
|
||||||
then also be implemented by the user.
|
|
||||||
|
|
||||||
Open questions are regarding the sizing options (i.e. how is the size of a
|
|
||||||
`Container` actually controlled?, how should it be controlled?, etc.). There
|
|
||||||
should be support for the child elements to provide some kind of 'list'
|
|
||||||
functionality built-in.
|
|
||||||
|
|
||||||
**REMINDER**: (mostly for myself) The library should be and remain simple. This
|
|
||||||
means that some code for using the library may be duplicated, but this is not
|
|
||||||
the main goal. Others may provide more re-usable code snippets that build on top
|
|
||||||
of this library instead.
|
|
||||||
|
|
||||||
### User specific event handling and content rendering
|
|
||||||
|
|
||||||
For interactions controlled by the user each container can use an `Element`
|
|
||||||
interface which contains functions which are called by the `Container`
|
|
||||||
during event handling (i.e. `fn handle(..)`) and during rendering (i.e. `fn
|
|
||||||
content(..)`) to provide user specific content and user interaction. The
|
|
||||||
`Element` may be stateful, but may also be stateless and then be re-used in
|
|
||||||
multiple different `Container`s.
|
|
||||||
|
|
||||||
Composing multiple `Element`s currently requires the implementation of a wrapper
|
|
||||||
which contains the `Element`s that need to be handled (should work pretty well
|
|
||||||
for stateless `Element`s). Such *stateless* `Element`s may be provided by this
|
|
||||||
library.
|
|
||||||
|
|
||||||
### Input
|
|
||||||
|
|
||||||
How is the user input handled in the containers? Should there be active
|
|
||||||
containers? Some input may happen for a specific container (i.e. when using
|
|
||||||
mouse input). How would I handle scrolling for outer and inner elements of
|
|
||||||
a container?
|
|
||||||
|
|
||||||
### Archive
|
|
||||||
|
|
||||||
The alignment and sizing options only make sense if both are available. For
|
|
||||||
this the current implementation has the viewport size and the content size too
|
|
||||||
linked. Therefore they have both been removed (at least for now):
|
|
||||||
|
|
||||||
- *fit*: adjust virtual space of container by the size of its children (i.e. a
|
|
||||||
container needs to be able to get the necessary size of its children)
|
|
||||||
- *grow*: use as much space as available (what exactly would be the difference
|
|
||||||
between this option and *fit*?)
|
|
||||||
- *fixed*: use exactly as much cells (in the specified direction)
|
|
||||||
|
|
||||||
- *center*: elements should have their anchor be placed accordingly to their
|
|
||||||
size and the viewport size.
|
|
||||||
- *left*: the anchor remains at zero (relative to the location of the
|
|
||||||
container on the screen) -> similar to the current implementation!
|
|
||||||
- *right*: the anchor is fixed to the right side (i.e. size of the contents -
|
|
||||||
size of the viewport)
|
|
||||||
@@ -1,9 +1,40 @@
|
|||||||
const std = @import("std");
|
|
||||||
|
|
||||||
pub fn build(b: *std.Build) void {
|
pub fn build(b: *std.Build) void {
|
||||||
const target = b.standardTargetOptions(.{});
|
const target = b.standardTargetOptions(.{});
|
||||||
const optimize = b.standardOptimizeOption(.{});
|
const optimize = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
|
const Examples = enum {
|
||||||
|
all,
|
||||||
|
demo,
|
||||||
|
continuous,
|
||||||
|
// elements:
|
||||||
|
alignment,
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
popup,
|
||||||
|
progress,
|
||||||
|
scrollable,
|
||||||
|
// layouts:
|
||||||
|
vertical,
|
||||||
|
horizontal,
|
||||||
|
grid,
|
||||||
|
mixed,
|
||||||
|
// styles:
|
||||||
|
text,
|
||||||
|
palette,
|
||||||
|
// error handling
|
||||||
|
errors,
|
||||||
|
};
|
||||||
|
|
||||||
|
const example = b.option(Examples, "example", "Example to build and/or run. (default: all)") orelse .all;
|
||||||
|
const debug_rendering = b.option(bool, "debug", "Enable debug rendering. Highlight origin's, size's, padding's, gap's, etc. (default: false)") orelse false;
|
||||||
|
// NOTE do not support debug rendering in release builds
|
||||||
|
if (debug_rendering == true and optimize != .Debug) @panic("Cannot enable debug rendering in non-debug builds.");
|
||||||
|
|
||||||
|
const options = b.addOptions();
|
||||||
|
options.addOption(bool, "debug", debug_rendering);
|
||||||
|
const options_module = options.createModule();
|
||||||
|
|
||||||
|
// dependencies
|
||||||
const zg = b.dependency("zg", .{
|
const zg = b.dependency("zg", .{
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
@@ -11,56 +42,64 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
// library
|
// library
|
||||||
const lib = b.addModule("zterm", .{
|
const lib = b.addModule("zterm", .{
|
||||||
.root_source_file = b.path("src/zterm.zig"),
|
.root_source_file = b.path("src/root.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
lib.addImport("code_point", zg.module("code_point"));
|
lib.addImport("code_point", zg.module("code_point"));
|
||||||
|
lib.addImport("build_options", options_module);
|
||||||
|
|
||||||
// main executable (usually used for testing)
|
//--- Examples ---
|
||||||
const exe = b.addExecutable(.{
|
const examples = std.meta.fields(Examples);
|
||||||
.name = "zterm",
|
inline for (examples) |e| {
|
||||||
.root_source_file = b.path("src/main.zig"),
|
if (@as(Examples, @enumFromInt(e.value)) == .all) continue; // skip `.all` entry
|
||||||
|
const demo = b.addExecutable(.{
|
||||||
|
.name = e.name,
|
||||||
|
.root_source_file = b.path(switch (@as(Examples, @enumFromInt(e.value))) {
|
||||||
|
.demo => "examples/demo.zig",
|
||||||
|
.continuous => "examples/continuous.zig",
|
||||||
|
// elements:
|
||||||
|
.alignment => "examples/elements/alignment.zig",
|
||||||
|
.button => "examples/elements/button.zig",
|
||||||
|
.input => "examples/elements/input.zig",
|
||||||
|
.popup => "examples/elements/popup.zig",
|
||||||
|
.progress => "examples/elements/progress.zig",
|
||||||
|
.scrollable => "examples/elements/scrollable.zig",
|
||||||
|
// layouts:
|
||||||
|
.vertical => "examples/layouts/vertical.zig",
|
||||||
|
.horizontal => "examples/layouts/horizontal.zig",
|
||||||
|
.grid => "examples/layouts/grid.zig",
|
||||||
|
.mixed => "examples/layouts/mixed.zig",
|
||||||
|
// styles:
|
||||||
|
.text => "examples/styles/text.zig",
|
||||||
|
.palette => "examples/styles/palette.zig",
|
||||||
|
// error handling
|
||||||
|
.errors => "examples/errors.zig",
|
||||||
|
.all => unreachable, // should never happen
|
||||||
|
}),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
exe.root_module.addImport("zterm", lib);
|
// import dependencies
|
||||||
|
demo.root_module.addImport("zterm", lib);
|
||||||
// TODO: add example execution through optional argument to `zig run` to run
|
// mapping of user selected example to compile step
|
||||||
// an example application instead of the main executable
|
if (@intFromEnum(example) == e.value or example == .all) b.installArtifact(demo);
|
||||||
|
}
|
||||||
// example applications (usually used for documentation and demonstrations)
|
|
||||||
const container = b.addExecutable(.{
|
|
||||||
.name = "container",
|
|
||||||
.root_source_file = b.path("examples/container.zig"),
|
|
||||||
.target = target,
|
|
||||||
.optimize = optimize,
|
|
||||||
});
|
|
||||||
container.root_module.addImport("zterm", lib);
|
|
||||||
b.installArtifact(container);
|
|
||||||
|
|
||||||
// zig build run
|
|
||||||
const run_cmd = b.addRunArtifact(exe);
|
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
|
||||||
// Allow additional arguments, like this: `zig build run -- arg1 arg2 etc`
|
|
||||||
if (b.args) |args| run_cmd.addArgs(args);
|
|
||||||
|
|
||||||
// This creates a build step. It will be visible in the `zig build --help` menu,
|
|
||||||
// and can be selected like this: `zig build run`
|
|
||||||
// This will evaluate the `run` step rather than the default, which is "install".
|
|
||||||
const run_step = b.step("run", "Run the app");
|
|
||||||
run_step.dependOn(&run_cmd.step);
|
|
||||||
|
|
||||||
// zig build test
|
// zig build test
|
||||||
const lib_unit_tests = b.addTest(.{
|
const lib_unit_tests = b.addTest(.{
|
||||||
.root_source_file = b.path("src/zterm.zig"),
|
.root_source_file = b.path("src/root.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
lib_unit_tests.root_module.addImport("code_point", zg.module("code_point"));
|
lib_unit_tests.root_module.addImport("code_point", zg.module("code_point"));
|
||||||
|
lib_unit_tests.root_module.addImport("DisplayWidth", zg.module("DisplayWidth"));
|
||||||
|
lib_unit_tests.root_module.addImport("build_options", options_module);
|
||||||
|
|
||||||
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
|
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
|
||||||
|
|
||||||
const test_step = b.step("test", "Run unit tests");
|
const test_step = b.step("test", "Run unit tests");
|
||||||
test_step.dependOn(&run_lib_unit_tests.step);
|
test_step.dependOn(&run_lib_unit_tests.step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
+22
-11
@@ -6,16 +6,29 @@
|
|||||||
//
|
//
|
||||||
// It is redundant to include "zig" in this name because it is already
|
// It is redundant to include "zig" in this name because it is already
|
||||||
// within the Zig package namespace.
|
// within the Zig package namespace.
|
||||||
.name = "zterm",
|
.name = .zterm,
|
||||||
|
|
||||||
|
// Together with name, this represents a globally unique package
|
||||||
|
// identifier. This field is generated by the Zig toolchain when the
|
||||||
|
// package is first created, and then *never changes*. This allows
|
||||||
|
// unambiguous detection of one package being an updated version of
|
||||||
|
// another.
|
||||||
|
//
|
||||||
|
// When forking a Zig project, this id should be regenerated (delete the
|
||||||
|
// field and run `zig build`) if the upstream project is still maintained.
|
||||||
|
// Otherwise, the fork is *hostile*, attempting to take control over the
|
||||||
|
// original project's identity. Thus it is recommended to leave the comment
|
||||||
|
// on the following line intact, so that it shows up in code reviews that
|
||||||
|
// modify the field.
|
||||||
|
.fingerprint = 0xf10b37e210a619d7, // Changing this has security and trust implications.
|
||||||
|
|
||||||
// This is a [Semantic Version](https://semver.org/).
|
// This is a [Semantic Version](https://semver.org/).
|
||||||
// In a future version of Zig it will be used for package deduplication.
|
// In a future version of Zig it will be used for package deduplication.
|
||||||
.version = "0.0.0",
|
.version = "0.3.0",
|
||||||
|
|
||||||
// This field is optional.
|
// Tracks the earliest Zig version that the package considers to be a
|
||||||
// This is currently advisory only; Zig does not yet do anything
|
// supported use case.
|
||||||
// with this value.
|
.minimum_zig_version = "0.15.0-dev.56+d0911786c",
|
||||||
//.minimum_zig_version = "0.11.0",
|
|
||||||
|
|
||||||
// This field is optional.
|
// This field is optional.
|
||||||
// Each dependency must either provide a `url` and `hash`, or a `path`.
|
// Each dependency must either provide a `url` and `hash`, or a `path`.
|
||||||
@@ -24,16 +37,14 @@
|
|||||||
// internet connectivity.
|
// internet connectivity.
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.zg = .{
|
.zg = .{
|
||||||
.url = "git+https://codeberg.org/atman/zg#4a002763419a34d61dcbb1f415821b83b9bf8ddc",
|
.url = "git+https://codeberg.org/atman/zg#9427a9e53aaa29ee071f4dcb35b809a699d75aa9",
|
||||||
.hash = "1220f3e29bc40856bfc06e0ee133f814b0011c76de987d8a6a458c2f34d82708899a",
|
.hash = "zg-0.14.1-oGqU3IQ_tALZIiBN026_NTaPJqU-Upm8P_C7QED2Rzm8",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
.paths = .{
|
.paths = .{
|
||||||
|
"LICENSE",
|
||||||
"build.zig",
|
"build.zig",
|
||||||
"build.zig.zon",
|
"build.zig.zon",
|
||||||
"src",
|
"src",
|
||||||
// For example...
|
|
||||||
//"LICENSE",
|
|
||||||
//"README.md",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
const std = @import("std");
|
|
||||||
const zterm = @import("zterm");
|
|
||||||
|
|
||||||
const App = zterm.App(union(enum) {});
|
|
||||||
const Key = zterm.Key;
|
|
||||||
|
|
||||||
const log = std.log.scoped(.example);
|
|
||||||
|
|
||||||
pub const ExampleElement = packed struct {
|
|
||||||
pub fn element(this: *@This()) App.Element {
|
|
||||||
return .{
|
|
||||||
.ptr = this,
|
|
||||||
.vtable = &.{
|
|
||||||
.handle = handle,
|
|
||||||
.content = content,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// example function to render contents for a `Container`
|
|
||||||
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Size) !void {
|
|
||||||
_ = ctx;
|
|
||||||
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
|
||||||
|
|
||||||
// NOTE: error should only be returned here in case an in-recoverable exception has occurred
|
|
||||||
const row = size.rows / 2;
|
|
||||||
const col = size.cols / 2 -| 3;
|
|
||||||
|
|
||||||
for (0..5) |c| {
|
|
||||||
cells[(row * size.cols) + col + c].style.fg = .black;
|
|
||||||
cells[(row * size.cols) + col + c].cp = '-';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// example function to handle events for a `Container`
|
|
||||||
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
|
||||||
_ = ctx;
|
|
||||||
switch (event) {
|
|
||||||
.init => log.debug(".init event", .{}),
|
|
||||||
else => {},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
pub fn main() !void {
|
|
||||||
errdefer |err| log.err("Application Error: {any}", .{err});
|
|
||||||
|
|
||||||
// TODO: maybe create own allocator as some sort of arena allocator to have consistent memory usage
|
|
||||||
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
|
|
||||||
defer {
|
|
||||||
const deinit_status = gpa.deinit();
|
|
||||||
if (deinit_status == .leak) {
|
|
||||||
log.err("memory leak", .{});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const allocator = gpa.allocator();
|
|
||||||
|
|
||||||
var app: App = .init;
|
|
||||||
var renderer = zterm.Renderer.Buffered.init(allocator);
|
|
||||||
defer renderer.deinit();
|
|
||||||
|
|
||||||
var element_wrapper = ExampleElement{};
|
|
||||||
const element = element_wrapper.element();
|
|
||||||
|
|
||||||
var container = try App.Container.init(allocator, .{
|
|
||||||
.border = .{
|
|
||||||
.separator = .{
|
|
||||||
.enabled = true,
|
|
||||||
.line = .double,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.layout = .{
|
|
||||||
.gap = 2,
|
|
||||||
.padding = .all(5),
|
|
||||||
.direction = .vertical,
|
|
||||||
},
|
|
||||||
}, element);
|
|
||||||
var box = try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .blue },
|
|
||||||
.layout = .{
|
|
||||||
.gap = 1,
|
|
||||||
.direction = .vertical,
|
|
||||||
.padding = .vertical(1),
|
|
||||||
},
|
|
||||||
}, .{});
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, element));
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, .{}));
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, element));
|
|
||||||
try container.append(box);
|
|
||||||
try container.append(try App.Container.init(allocator, .{
|
|
||||||
.border = .{
|
|
||||||
.color = .light_blue,
|
|
||||||
.sides = .vertical,
|
|
||||||
},
|
|
||||||
}, .{}));
|
|
||||||
try container.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .blue },
|
|
||||||
}, .{}));
|
|
||||||
defer container.deinit(); // also de-initializes the children
|
|
||||||
|
|
||||||
try app.start();
|
|
||||||
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
|
||||||
|
|
||||||
// event loop
|
|
||||||
while (true) {
|
|
||||||
const event = app.nextEvent();
|
|
||||||
log.debug("received event: {s}", .{@tagName(event)});
|
|
||||||
|
|
||||||
switch (event) {
|
|
||||||
.init => {
|
|
||||||
try container.handle(event);
|
|
||||||
continue; // do not render
|
|
||||||
},
|
|
||||||
.quit => break,
|
|
||||||
.resize => |size| try renderer.resize(size),
|
|
||||||
.key => |key| {
|
|
||||||
if (key.matches(.{ .cp = 'q' })) app.quit();
|
|
||||||
|
|
||||||
if (key.matches(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
|
|
||||||
try app.interrupt();
|
|
||||||
defer app.start() catch @panic("could not start app event loop");
|
|
||||||
var child = std.process.Child.init(&.{"hx"}, allocator);
|
|
||||||
_ = child.spawnAndWait() catch |err| app.postEvent(.{
|
|
||||||
.err = .{
|
|
||||||
.err = err,
|
|
||||||
.msg = "Spawning $EDITOR failed",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// NOTE: errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
|
||||||
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
|
||||||
else => {},
|
|
||||||
}
|
|
||||||
|
|
||||||
// NOTE: returned errors should be propagated back to the application
|
|
||||||
container.handle(event) catch |err| app.postEvent(.{
|
|
||||||
.err = .{
|
|
||||||
.err = err,
|
|
||||||
.msg = "Container Event handling failed",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
try renderer.render(@TypeOf(container), &container);
|
|
||||||
try renderer.flush();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,245 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Spinner element implementation that runs a simple animation that requires
|
||||||
|
/// the continuous draw loop.
|
||||||
|
const Spinner = struct {
|
||||||
|
counter: u8 = 0,
|
||||||
|
index: u8 = 0,
|
||||||
|
|
||||||
|
const map: [6]u21 = .{ '', '', '', '', '', '' };
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
cells[size.x + 1].cp = map[this.index];
|
||||||
|
|
||||||
|
this.counter += 1;
|
||||||
|
if (this.counter >= 20) {
|
||||||
|
this.index += 1;
|
||||||
|
this.index %= 6;
|
||||||
|
this.counter = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const InputField = struct {
|
||||||
|
input: std.ArrayList(u21),
|
||||||
|
queue: *App.Queue,
|
||||||
|
|
||||||
|
pub fn init(allocator: std.mem.Allocator, queue: *App.Queue) @This() {
|
||||||
|
return .{
|
||||||
|
.input = .init(allocator),
|
||||||
|
.queue = queue,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn deinit(this: @This()) void {
|
||||||
|
this.input.deinit();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.handle = handle,
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| {
|
||||||
|
if (key.isAscii()) try this.input.append(key.cp);
|
||||||
|
|
||||||
|
if (key.eql(.{ .cp = zterm.input.Enter }) or key.eql(.{ .cp = zterm.input.KpEnter }))
|
||||||
|
this.queue.push(.{ .accept = try this.input.toOwnedSlice() });
|
||||||
|
|
||||||
|
if (key.eql(.{ .cp = zterm.input.Backspace }))
|
||||||
|
_ = this.input.pop();
|
||||||
|
|
||||||
|
if (key.eql(.{ .cp = zterm.input.Delete }) or key.eql(.{ .cp = zterm.input.KpDelete }))
|
||||||
|
_ = this.input.pop();
|
||||||
|
},
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
if (this.input.items.len == 0) return;
|
||||||
|
|
||||||
|
const row = 1;
|
||||||
|
const col = 1;
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (this.input.items, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .black;
|
||||||
|
cells[anchor + idx].style.cursor = false;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
|
||||||
|
if (idx == this.input.items.len - 1) cells[anchor + idx + 1].style.cursor = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var input_field: InputField = .init(allocator, &app.queue);
|
||||||
|
defer input_field.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
var spinner: Spinner = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
.layout = .{
|
||||||
|
.direction = .vertical,
|
||||||
|
.padding = .all(5),
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
.size = .{
|
||||||
|
.grow = .horizontal,
|
||||||
|
.dim = .{ .y = 10 },
|
||||||
|
},
|
||||||
|
}, input_field.element()));
|
||||||
|
|
||||||
|
const nested_container: App.Container = try .init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
}, spinner.element());
|
||||||
|
try container.append(nested_container);
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
var framerate: u64 = 60;
|
||||||
|
var tick_ms: u64 = @divFloor(time.ms_per_s, framerate);
|
||||||
|
var next_frame_ms: u64 = 0;
|
||||||
|
|
||||||
|
// draw loop
|
||||||
|
draw: while (true) {
|
||||||
|
const now_ms: u64 = @intCast(time.milliTimestamp());
|
||||||
|
if (now_ms >= next_frame_ms) {
|
||||||
|
next_frame_ms = now_ms + tick_ms;
|
||||||
|
} else {
|
||||||
|
time.sleep((next_frame_ms - now_ms) * time.ns_per_ms);
|
||||||
|
next_frame_ms += tick_ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
const len = blk: {
|
||||||
|
app.queue.lock();
|
||||||
|
defer app.queue.unlock();
|
||||||
|
break :blk app.queue.len();
|
||||||
|
};
|
||||||
|
|
||||||
|
// handle events
|
||||||
|
for (0..len) |_| {
|
||||||
|
const event = app.queue.drain() orelse break;
|
||||||
|
log.debug("handling event: {s}", .{@tagName(event)});
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| {
|
||||||
|
log.debug("key {any}", .{key});
|
||||||
|
if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit();
|
||||||
|
},
|
||||||
|
.accept => |input| {
|
||||||
|
defer allocator.free(input);
|
||||||
|
var string = try allocator.alloc(u8, input.len);
|
||||||
|
defer allocator.free(string);
|
||||||
|
for (0.., input) |i, char| string[i] = @intCast(char);
|
||||||
|
log.debug("Accepted input '{s}'", .{string});
|
||||||
|
},
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
.focus => |b| {
|
||||||
|
// NOTE reduce framerate in case the window is not focused and restore again when focused
|
||||||
|
framerate = if (b) 60 else 15;
|
||||||
|
tick_ms = @divFloor(time.ms_per_s, framerate);
|
||||||
|
},
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break :draw,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const time = std.time;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {
|
||||||
|
accept: []u21,
|
||||||
|
});
|
||||||
@@ -0,0 +1,198 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit. Press ctrl+n to launch helix.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const y = 2;
|
||||||
|
const x = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (y * size.x) + x;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
// TODO maybe create own allocator as some sort of arena allocator to have consistent memory usage
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
// TODO what should the demo application do?
|
||||||
|
// - some sort of chat? -> write messages and have them displayed in a scrollable array at the right hand side?
|
||||||
|
// - on the left some buttons?
|
||||||
|
var box = try App.Container.init(allocator, .{
|
||||||
|
.border = .{
|
||||||
|
.color = .blue,
|
||||||
|
.sides = .all,
|
||||||
|
},
|
||||||
|
.layout = .{
|
||||||
|
.gap = 1,
|
||||||
|
.padding = .vertical(2),
|
||||||
|
.direction = .vertical,
|
||||||
|
},
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 90 },
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
}, .{}));
|
||||||
|
try box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
}, .{}));
|
||||||
|
try box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
}, .{}));
|
||||||
|
defer box.deinit();
|
||||||
|
|
||||||
|
var scrollable: App.Scrollable = .init(box, .disabled);
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.separator = .{ .enabled = true },
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
.direction = .horizontal,
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, scrollable.element()));
|
||||||
|
|
||||||
|
var nested_container: App.Container = try .init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.direction = .vertical,
|
||||||
|
.separator = .{
|
||||||
|
.enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
var inner_container: App.Container = try .init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.direction = .vertical,
|
||||||
|
},
|
||||||
|
.border = .{
|
||||||
|
.color = .light_blue,
|
||||||
|
.sides = .all,
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try inner_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{
|
||||||
|
.fill = .blue,
|
||||||
|
},
|
||||||
|
.size = .{
|
||||||
|
.grow = .horizontal,
|
||||||
|
.dim = .{ .y = 5 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
try inner_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{
|
||||||
|
.fill = .red,
|
||||||
|
},
|
||||||
|
.size = .{
|
||||||
|
.grow = .horizontal,
|
||||||
|
.dim = .{ .y = 5 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
try inner_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{
|
||||||
|
.fill = .green,
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
try nested_container.append(inner_container);
|
||||||
|
try nested_container.append(try .init(allocator, .{
|
||||||
|
.size = .{
|
||||||
|
.grow = .horizontal,
|
||||||
|
.dim = .{ .y = 1 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
try container.append(nested_container);
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .x = 30 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
defer container.deinit(); // also de-initializes the children
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| {
|
||||||
|
if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit();
|
||||||
|
|
||||||
|
if (key.eql(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
|
||||||
|
try app.interrupt();
|
||||||
|
renderer.size = .{}; // reset size, such that next resize will cause a full re-draw!
|
||||||
|
defer app.start() catch @panic("could not start app event loop");
|
||||||
|
var child = std.process.Child.init(&.{"hx"}, allocator);
|
||||||
|
_ = child.spawnAndWait() catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Spawning $EDITOR failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE returned errors should be propagated back to the application
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const input = zterm.input;
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var container: App.Container = try .init(allocator, .{}, .{});
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const quit_container = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
.layout = .{
|
||||||
|
.direction = .vertical,
|
||||||
|
.padding = .all(5),
|
||||||
|
},
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .x = 25, .y = 5 },
|
||||||
|
.grow = .fixed,
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
|
||||||
|
var alignment: App.Alignment = .init(quit_container, .center);
|
||||||
|
try container.append(try .init(allocator, .{}, alignment.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,151 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const Clickable = struct {
|
||||||
|
const text = "Press me";
|
||||||
|
|
||||||
|
queue: *App.Queue,
|
||||||
|
color: zterm.Color = .black,
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.handle = handle,
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
.mouse => |mouse| if (mouse.button == .left and mouse.kind == .release) {
|
||||||
|
var value = @intFromEnum(this.color);
|
||||||
|
value += 1;
|
||||||
|
value %= 17;
|
||||||
|
if (value == 0) value = 1;
|
||||||
|
this.color = @enumFromInt(value);
|
||||||
|
this.queue.push(.{ .click = @tagName(mouse.button) });
|
||||||
|
},
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = size.y / 2 -| (text.len / 2);
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = this.color;
|
||||||
|
cells[anchor + idx].style.emphasis = &.{.bold};
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var clickable: Clickable = .{ .queue = &app.queue };
|
||||||
|
const element = clickable.element();
|
||||||
|
|
||||||
|
var button: App.Button(.accept) = .init(&app.queue, .init(.default, "Button"));
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
.layout = .{ .padding = .all(5) },
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
try container.append(try App.Container.init(allocator, .{ .rectangle = .{ .fill = .light_grey } }, element));
|
||||||
|
try container.append(try App.Container.init(allocator, .{ .rectangle = .{ .fill = .black } }, button.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.click => |b| log.info("Clicked with mouse using Button: {s}", .{b}),
|
||||||
|
.accept => log.info("Clicked built-in button using the mouse", .{}),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {
|
||||||
|
click: [:0]const u8,
|
||||||
|
accept,
|
||||||
|
});
|
||||||
@@ -0,0 +1,166 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const MouseDraw = struct {
|
||||||
|
position: ?zterm.Point = null,
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.handle = handle,
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
.mouse => |mouse| this.position = .{ .x = mouse.x, .y = mouse.y },
|
||||||
|
else => this.position = null,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
|
||||||
|
if (this.position) |pos| {
|
||||||
|
const idx = @as(usize, size.x) * @as(usize, pos.y) + @as(usize, pos.x);
|
||||||
|
cells[idx].cp = 'x';
|
||||||
|
cells[idx].style.fg = .red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var input_field: App.Input(.accept) = .init(allocator, &app.queue, .init(.black));
|
||||||
|
defer input_field.deinit();
|
||||||
|
|
||||||
|
var mouse_draw: MouseDraw = .{};
|
||||||
|
var second_mouse_draw: MouseDraw = .{};
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
.layout = .{
|
||||||
|
.direction = .vertical,
|
||||||
|
.padding = .all(5),
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
.size = .{
|
||||||
|
.grow = .horizontal,
|
||||||
|
.dim = .{ .y = 1 },
|
||||||
|
},
|
||||||
|
}, input_field.element()));
|
||||||
|
|
||||||
|
var nested_container: App.Container = try .init(allocator, .{
|
||||||
|
.border = .{
|
||||||
|
.sides = .all,
|
||||||
|
.color = .black,
|
||||||
|
},
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
.layout = .{
|
||||||
|
.separator = .{
|
||||||
|
.enabled = true,
|
||||||
|
.color = .black,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try nested_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
}, mouse_draw.element()));
|
||||||
|
try nested_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_grey },
|
||||||
|
}, second_mouse_draw.element()));
|
||||||
|
try container.append(nested_container);
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.accept => |input| {
|
||||||
|
defer allocator.free(input);
|
||||||
|
log.debug("Accepted input '{s}'", .{input});
|
||||||
|
},
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const Color = zterm.Color;
|
||||||
|
|
||||||
|
const App = zterm.App(union(enum) {
|
||||||
|
accept: []u8,
|
||||||
|
});
|
||||||
@@ -0,0 +1,247 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const MouseDraw = struct {
|
||||||
|
position: ?zterm.Point = null,
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.handle = handle,
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
.mouse => |mouse| this.position = .{ .x = mouse.x, .y = mouse.y },
|
||||||
|
else => this.position = null,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
|
||||||
|
if (this.position) |pos| {
|
||||||
|
const idx = @as(usize, size.x) * @as(usize, pos.y) + @as(usize, pos.x);
|
||||||
|
cells[idx].cp = 'x';
|
||||||
|
cells[idx].style.fg = .red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const Popup = struct {
|
||||||
|
container: ?*App.Container = null,
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{
|
||||||
|
.resize = resize,
|
||||||
|
.reposition = reposition,
|
||||||
|
.handle = handle,
|
||||||
|
.content = content,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn resize(ctx: *anyopaque, size: zterm.Point) void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
if (this.container) |container| container.resize(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
fn reposition(ctx: *anyopaque, _: zterm.Point) void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
if (this.container) |container| container.reposition(.{});
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
// TODO should the `Element` handle the pop_down element triggering (i.e. by defining a usual key for this?)
|
||||||
|
.pop_up => |optional| if (optional) |container| {
|
||||||
|
this.container = @ptrCast(@alignCast(container));
|
||||||
|
} else {
|
||||||
|
this.container = null;
|
||||||
|
},
|
||||||
|
else => if (this.container) |container| try container.handle(event),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn render_container(container: App.Container, cells: []zterm.Cell, container_size: zterm.Point) !void {
|
||||||
|
const size = container.size;
|
||||||
|
const origin = container.origin;
|
||||||
|
const contents = try container.content();
|
||||||
|
|
||||||
|
const anchor = (@as(usize, origin.y) * @as(usize, container_size.x)) + @as(usize, origin.x);
|
||||||
|
|
||||||
|
var idx: usize = 0;
|
||||||
|
blk: for (0..size.y) |row| {
|
||||||
|
for (0..size.x) |col| {
|
||||||
|
cells[anchor + (row * container_size.x) + col] = contents[idx];
|
||||||
|
idx += 1;
|
||||||
|
|
||||||
|
if (contents.len == idx) break :blk;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// free immediately
|
||||||
|
container.allocator.free(contents);
|
||||||
|
|
||||||
|
for (container.elements.items) |child| try render_container(child, cells, size);
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
if (this.container) |container| {
|
||||||
|
assert(cells.len == @as(usize, container.size.x) * @as(usize, container.size.y));
|
||||||
|
const popup_cells = try container.content();
|
||||||
|
|
||||||
|
for (container.elements.items) |child| try render_container(child, popup_cells, size);
|
||||||
|
|
||||||
|
assert(cells.len == popup_cells.len);
|
||||||
|
@memcpy(cells, popup_cells);
|
||||||
|
|
||||||
|
container.allocator.free(popup_cells);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var popup: Popup = .{};
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
// - rendering of first Container contents will be overwritten by contents of the appended Container's (see the missing blue rectangle)
|
||||||
|
// - when rendering "nothing" it causes the below Container to be overwritten to "nothing" too!
|
||||||
|
// - not sure how this should be done?
|
||||||
|
// - provide the pop-up with a area where to draw? (i.e. somewhere to draw the provided `Container`)
|
||||||
|
// - This however will not suffice as the contents will be overwritten!
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{
|
||||||
|
.fill = .blue,
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
var popup_root_container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.padding = .{
|
||||||
|
.top = -17,
|
||||||
|
.left = -40,
|
||||||
|
.right = 5,
|
||||||
|
.bottom = 5,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try popup_root_container.append(try App.Container.init(allocator, .{}, popup.element()));
|
||||||
|
|
||||||
|
try container.append(try .init(allocator, .{}, quit_text.element()));
|
||||||
|
try container.append(popup_root_container); // FIXME it should not be appended (as it would become part of the layout)
|
||||||
|
|
||||||
|
var mouse: MouseDraw = .{};
|
||||||
|
var popup_container: App.Container = try .init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .green },
|
||||||
|
.layout = .{
|
||||||
|
.padding = .{
|
||||||
|
.top = -4,
|
||||||
|
.bottom = 1,
|
||||||
|
.left = 3,
|
||||||
|
.right = 3,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
// showcase that inner `Container`s handle `Element`s accordingly
|
||||||
|
try popup_container.append(try .init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
}, mouse.element()));
|
||||||
|
defer popup_container.deinit();
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| {
|
||||||
|
if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit();
|
||||||
|
if (key.eql(.{ .cp = zterm.input.Space })) app.postEvent(.{ .pop_up = &popup_container });
|
||||||
|
if (key.eql(.{ .cp = zterm.input.Escape })) app.postEvent(.{ .pop_up = null });
|
||||||
|
},
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {
|
||||||
|
pop_up: ?*anyopaque,
|
||||||
|
});
|
||||||
@@ -0,0 +1,137 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var progress_percent: u8 = 0;
|
||||||
|
var progress: App.Progress(.progress) = .init(&app.queue, .{
|
||||||
|
.percent = .{ .enabled = true },
|
||||||
|
.fg = .green,
|
||||||
|
.bg = .grey,
|
||||||
|
});
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{ .padding = .all(5) },
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, progress.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
var framerate: u64 = 60;
|
||||||
|
var tick_ms: u64 = @divFloor(time.ms_per_s, framerate);
|
||||||
|
var next_frame_ms: u64 = 0;
|
||||||
|
|
||||||
|
var increase_progress: u64 = 10;
|
||||||
|
|
||||||
|
// Continuous drawing
|
||||||
|
// draw loop
|
||||||
|
draw: while (true) {
|
||||||
|
const now_ms: u64 = @intCast(time.milliTimestamp());
|
||||||
|
if (now_ms >= next_frame_ms) {
|
||||||
|
next_frame_ms = now_ms + tick_ms;
|
||||||
|
} else {
|
||||||
|
time.sleep((next_frame_ms - now_ms) * time.ns_per_ms);
|
||||||
|
next_frame_ms += tick_ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE time based progress increasion
|
||||||
|
increase_progress -= 1;
|
||||||
|
if (increase_progress == 0) {
|
||||||
|
increase_progress = 10;
|
||||||
|
progress_percent += 1;
|
||||||
|
if (progress_percent > 100) progress_percent = 0;
|
||||||
|
app.postEvent(.{ .progress = progress_percent });
|
||||||
|
}
|
||||||
|
|
||||||
|
const len = blk: {
|
||||||
|
app.queue.lock();
|
||||||
|
defer app.queue.unlock();
|
||||||
|
break :blk app.queue.len();
|
||||||
|
};
|
||||||
|
|
||||||
|
// handle events
|
||||||
|
for (0..len) |_| {
|
||||||
|
const event = app.queue.drain() orelse break;
|
||||||
|
log.debug("handling event: {s}", .{@tagName(event)});
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| {
|
||||||
|
if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit();
|
||||||
|
},
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
.focus => |b| {
|
||||||
|
// NOTE reduce framerate in case the window is not focused and restore again when focused
|
||||||
|
framerate = if (b) 60 else 15;
|
||||||
|
tick_ms = @divFloor(time.ms_per_s, framerate);
|
||||||
|
},
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break :draw,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const time = std.time;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {
|
||||||
|
progress: u8,
|
||||||
|
});
|
||||||
@@ -0,0 +1,199 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const HelloWorldText = packed struct {
|
||||||
|
const text = "Hello World";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{ .content = content },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = size.y / 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
// TODO maybe create own allocator as some sort of arena allocator to have consistent memory usage
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer {
|
||||||
|
const deinit_status = gpa.deinit();
|
||||||
|
if (deinit_status == .leak) {
|
||||||
|
log.err("memory leak", .{});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var element_wrapper: HelloWorldText = .{};
|
||||||
|
const element = element_wrapper.element();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
|
||||||
|
var top_box = try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.separator = .{
|
||||||
|
.enabled = true,
|
||||||
|
},
|
||||||
|
.direction = .vertical,
|
||||||
|
.padding = .vertical(1),
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try top_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 30 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
try top_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 5 },
|
||||||
|
},
|
||||||
|
}, element));
|
||||||
|
try top_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .light_green },
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 2 },
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
defer top_box.deinit();
|
||||||
|
|
||||||
|
var bottom_box = try App.Container.init(allocator, .{
|
||||||
|
.border = .{
|
||||||
|
.sides = .all,
|
||||||
|
.color = .blue,
|
||||||
|
},
|
||||||
|
.layout = .{
|
||||||
|
.separator = .{
|
||||||
|
.enabled = true,
|
||||||
|
.color = .red,
|
||||||
|
},
|
||||||
|
.direction = .vertical,
|
||||||
|
.padding = .vertical(1),
|
||||||
|
},
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 30 },
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try bottom_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
}, .{}));
|
||||||
|
try bottom_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
}, element));
|
||||||
|
try bottom_box.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .grey },
|
||||||
|
}, .{}));
|
||||||
|
defer bottom_box.deinit();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.separator = .{
|
||||||
|
.enabled = true,
|
||||||
|
.line = .double,
|
||||||
|
},
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
.direction = .vertical,
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
// place empty container containing the element of the scrollable Container.
|
||||||
|
var scrollable_top: App.Scrollable = .init(top_box, .enabled(.grey));
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, scrollable_top.element()));
|
||||||
|
|
||||||
|
var scrollable_bottom: App.Scrollable = .init(bottom_box, .enabled(.white));
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, scrollable_bottom.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const input = zterm.input;
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,159 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const InfoText = struct {
|
||||||
|
const text = "Press any key; Non-Ascii inputs (i.e. `Enter` or `Backspace`) to trigger an exception";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const ErrorNotification = struct {
|
||||||
|
msg: ?[]const u8 = null,
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .handle = handle, .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (!key.isAscii()) return zterm.Error.TooSmall,
|
||||||
|
.err => |err| this.msg = err.msg,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
const this: *@This() = @ptrCast(@alignCast(ctx));
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
if (this.msg) |msg| {
|
||||||
|
const row = size.y -| 2;
|
||||||
|
const col = size.x -| 2 -| msg.len;
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (msg, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.msg = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
var info_text: InfoText = .{};
|
||||||
|
var error_notification: ErrorNotification = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
},
|
||||||
|
}, quit_text.element());
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, info_text.element()));
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, error_notification.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{ .content = content },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.separator = .{ .enabled = true },
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
.direction = .horizontal,
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
for (0..3) |_| {
|
||||||
|
var column = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.separator = .{ .enabled = true },
|
||||||
|
.direction = .vertical,
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(column);
|
||||||
|
}
|
||||||
|
defer container.deinit(); // also de-initializes the children
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE returned errors should be propagated back to the application
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,107 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{ .content = content },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.border = .{},
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
.direction = .horizontal,
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
defer container.deinit(); // also de-initializes the children
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE returned errors should be propagated back to the application
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{ .content = content },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
for (0..3) |i| {
|
||||||
|
var column = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.separator = .{ .enabled = true },
|
||||||
|
.direction = if (i > 0) .vertical else .horizontal,
|
||||||
|
},
|
||||||
|
}, .{});
|
||||||
|
if (i != 1) {
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .green },
|
||||||
|
}, .{}));
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .yellow },
|
||||||
|
}, .{}));
|
||||||
|
} else {
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.size = .{
|
||||||
|
.dim = .{ .y = 4 },
|
||||||
|
.grow = .horizontal,
|
||||||
|
},
|
||||||
|
}, .{}));
|
||||||
|
}
|
||||||
|
try column.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(column);
|
||||||
|
}
|
||||||
|
defer container.deinit(); // also de-initializes the children
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE returned errors should be propagated back to the application
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{
|
||||||
|
.ptr = this,
|
||||||
|
.vtable = &.{ .content = content },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
.direction = .vertical,
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
try container.append(try App.Container.init(allocator, .{
|
||||||
|
.rectangle = .{ .fill = .blue },
|
||||||
|
}, .{}));
|
||||||
|
defer container.deinit(); // also de-initializes the children
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
// event loop
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
// NOTE errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
// NOTE returned errors should be propagated back to the application
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
var box = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{ .direction = .horizontal },
|
||||||
|
}, .{});
|
||||||
|
defer box.deinit();
|
||||||
|
|
||||||
|
inline for (std.meta.fields(zterm.Color)) |field| {
|
||||||
|
if (field.value == 0) continue; // zterm.Color.default == 0 -> skip
|
||||||
|
try box.append(try App.Container.init(allocator, .{ .rectangle = .{ .fill = @enumFromInt(field.value) } }, .{}));
|
||||||
|
}
|
||||||
|
var scrollable: App.Scrollable = .init(box, .disabled);
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, scrollable.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
const QuitText = struct {
|
||||||
|
const text = "Press ctrl+c to quit.";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
const row = 2;
|
||||||
|
const col = size.x / 2 -| (text.len / 2);
|
||||||
|
const anchor = (row * size.x) + col;
|
||||||
|
|
||||||
|
for (text, 0..) |cp, idx| {
|
||||||
|
cells[anchor + idx].style.fg = .white;
|
||||||
|
cells[anchor + idx].style.bg = .black;
|
||||||
|
cells[anchor + idx].cp = cp;
|
||||||
|
|
||||||
|
// NOTE do not write over the contents of this `Container`'s `Size`
|
||||||
|
if (anchor + idx == cells.len - 1) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const TextStyles = struct {
|
||||||
|
const text = "Example";
|
||||||
|
|
||||||
|
pub fn element(this: *@This()) App.Element {
|
||||||
|
return .{ .ptr = this, .vtable = &.{ .content = content } };
|
||||||
|
}
|
||||||
|
|
||||||
|
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Point) !void {
|
||||||
|
@setEvalBranchQuota(10000);
|
||||||
|
_ = ctx;
|
||||||
|
assert(cells.len == @as(usize, size.x) * @as(usize, size.y));
|
||||||
|
|
||||||
|
var row: usize = 0;
|
||||||
|
var col: usize = 0;
|
||||||
|
|
||||||
|
// Color
|
||||||
|
inline for (std.meta.fields(zterm.Color)) |bg_field| {
|
||||||
|
if (bg_field.value == 0) continue; // zterm.Color.default == 0 -> skip
|
||||||
|
|
||||||
|
inline for (std.meta.fields(zterm.Color)) |fg_field| {
|
||||||
|
if (fg_field.value == 0) continue; // zterm.Color.default == 0 -> skip
|
||||||
|
if (fg_field.value == bg_field.value) continue;
|
||||||
|
|
||||||
|
// witouth any emphasis
|
||||||
|
for (text) |cp| {
|
||||||
|
cells[(row * size.x) + col].style.bg = @enumFromInt(bg_field.value);
|
||||||
|
cells[(row * size.x) + col].style.fg = @enumFromInt(fg_field.value);
|
||||||
|
cells[(row * size.x) + col].cp = cp;
|
||||||
|
col += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// emphasis (no combinations)
|
||||||
|
inline for (std.meta.fields(zterm.Style.Emphasis)) |emp_field| {
|
||||||
|
if (emp_field.value == 0) continue; // zterm.Style.Emphasis.reset == 0 -> skip
|
||||||
|
const emphasis: zterm.Style.Emphasis = @enumFromInt(emp_field.value);
|
||||||
|
|
||||||
|
for (text) |cp| {
|
||||||
|
cells[(row * size.x) + col].style.bg = @enumFromInt(bg_field.value);
|
||||||
|
cells[(row * size.x) + col].style.fg = @enumFromInt(fg_field.value);
|
||||||
|
cells[(row * size.x) + col].style.emphasis = &.{emphasis};
|
||||||
|
cells[(row * size.x) + col].cp = cp;
|
||||||
|
col += 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
row += 1;
|
||||||
|
col = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
errdefer |err| log.err("Application Error: {any}", .{err});
|
||||||
|
|
||||||
|
var gpa: std.heap.DebugAllocator(.{}) = .init;
|
||||||
|
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
|
||||||
|
|
||||||
|
const allocator = gpa.allocator();
|
||||||
|
|
||||||
|
var app: App = .init;
|
||||||
|
var renderer = zterm.Renderer.Buffered.init(allocator);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
var quit_text: QuitText = .{};
|
||||||
|
const element = quit_text.element();
|
||||||
|
|
||||||
|
var text_styles: TextStyles = .{};
|
||||||
|
|
||||||
|
var container = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{
|
||||||
|
.gap = 2,
|
||||||
|
.padding = .{ .top = 5, .bottom = 3, .left = 3, .right = 3 },
|
||||||
|
},
|
||||||
|
}, element);
|
||||||
|
defer container.deinit();
|
||||||
|
|
||||||
|
var box = try App.Container.init(allocator, .{
|
||||||
|
.layout = .{ .direction = .vertical },
|
||||||
|
.size = .{
|
||||||
|
.dim = .{
|
||||||
|
.x = std.meta.fields(zterm.Style.Emphasis).len * TextStyles.text.len,
|
||||||
|
.y = (std.meta.fields(zterm.Color).len - 1) * (std.meta.fields(zterm.Color).len - 2),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, text_styles.element());
|
||||||
|
defer box.deinit();
|
||||||
|
|
||||||
|
var scrollable: App.Scrollable = .init(box, .disabled);
|
||||||
|
try container.append(try App.Container.init(allocator, .{}, scrollable.element()));
|
||||||
|
|
||||||
|
try app.start();
|
||||||
|
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
const event = app.nextEvent();
|
||||||
|
log.debug("received event: {s}", .{@tagName(event)});
|
||||||
|
|
||||||
|
// pre event handling
|
||||||
|
switch (event) {
|
||||||
|
.key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit(),
|
||||||
|
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.handle(event) catch |err| app.postEvent(.{
|
||||||
|
.err = .{
|
||||||
|
.err = err,
|
||||||
|
.msg = "Container Event handling failed",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
// post event handling
|
||||||
|
switch (event) {
|
||||||
|
.quit => break,
|
||||||
|
else => {},
|
||||||
|
}
|
||||||
|
|
||||||
|
container.resize(try renderer.resize());
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(@TypeOf(container), &container);
|
||||||
|
try renderer.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub const panic = App.panic_handler;
|
||||||
|
const log = std.log.scoped(.default);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const zterm = @import("zterm");
|
||||||
|
const App = zterm.App(union(enum) {});
|
||||||
+249
-157
@@ -1,16 +1,4 @@
|
|||||||
//! Application type for TUI-applications
|
//! Application type for TUI-applications
|
||||||
const std = @import("std");
|
|
||||||
const terminal = @import("terminal.zig");
|
|
||||||
const event = @import("event.zig");
|
|
||||||
|
|
||||||
const mergeTaggedUnions = event.mergeTaggedUnions;
|
|
||||||
const isTaggedUnion = event.isTaggedUnion;
|
|
||||||
|
|
||||||
const Key = @import("key.zig");
|
|
||||||
const Size = @import("size.zig").Size;
|
|
||||||
const Queue = @import("queue.zig").Queue;
|
|
||||||
|
|
||||||
const log = std.log.scoped(.app);
|
|
||||||
|
|
||||||
/// Create the App Type with the associated user events _E_ which describes
|
/// Create the App Type with the associated user events _E_ which describes
|
||||||
/// an tagged union for all the user events that can be send through the
|
/// an tagged union for all the user events that can be send through the
|
||||||
@@ -36,71 +24,60 @@ pub fn App(comptime E: type) type {
|
|||||||
@compileError("Provided user event `E` for `App(comptime E: type)` is not of type `union(enum)`.");
|
@compileError("Provided user event `E` for `App(comptime E: type)` is not of type `union(enum)`.");
|
||||||
}
|
}
|
||||||
return struct {
|
return struct {
|
||||||
pub const Event = mergeTaggedUnions(event.SystemEvent, E);
|
queue: Queue,
|
||||||
pub const Container = @import("container.zig").Container(Event);
|
thread: ?Thread = null,
|
||||||
pub const Element = @import("element.zig").Element(Event);
|
quit_event: Thread.ResetEvent,
|
||||||
|
termios: ?posix.termios = null,
|
||||||
|
winch_registered: bool = false,
|
||||||
|
|
||||||
queue: Queue(Event, 256),
|
// global variable for the registered handler for WINCH
|
||||||
thread: ?std.Thread,
|
var handler_ctx: *anyopaque = undefined;
|
||||||
quit_event: std.Thread.ResetEvent,
|
/// registered WINCH handler to report resize events
|
||||||
termios: ?std.posix.termios = null,
|
fn handleWinch(_: c_int) callconv(.C) void {
|
||||||
attached_handler: bool = false,
|
const this: *@This() = @ptrCast(@alignCast(handler_ctx));
|
||||||
prev_size: Size,
|
// NOTE this does not have to be done if in-band resize events are supported
|
||||||
|
// -> the signal might not work correctly when hosting the application over ssh!
|
||||||
pub const SignalHandler = struct {
|
this.postEvent(.resize);
|
||||||
context: *anyopaque,
|
}
|
||||||
callback: *const fn (context: *anyopaque) void,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const init: @This() = .{
|
pub const init: @This() = .{
|
||||||
.queue = .{},
|
.queue = .{},
|
||||||
.thread = null,
|
|
||||||
.quit_event = .{},
|
.quit_event = .{},
|
||||||
.termios = null,
|
|
||||||
.attached_handler = false,
|
|
||||||
.prev_size = .{},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn start(this: *@This()) !void {
|
pub fn start(this: *@This()) !void {
|
||||||
if (this.thread) |_| return;
|
if (this.thread) |_| return;
|
||||||
|
|
||||||
if (!this.attached_handler) {
|
|
||||||
var winch_act = std.posix.Sigaction{
|
|
||||||
.handler = .{ .handler = @This().handleWinch },
|
|
||||||
.mask = std.posix.empty_sigset,
|
|
||||||
.flags = 0,
|
|
||||||
};
|
|
||||||
std.posix.sigaction(std.posix.SIG.WINCH, &winch_act, null);
|
|
||||||
|
|
||||||
try registerWinch(.{
|
|
||||||
.context = this,
|
|
||||||
.callback = @This().winsizeCallback,
|
|
||||||
});
|
|
||||||
this.attached_handler = true;
|
|
||||||
|
|
||||||
// post init event (as the very first element to be in the queue - event loop)
|
// post init event (as the very first element to be in the queue - event loop)
|
||||||
this.postEvent(.init);
|
this.postEvent(.init);
|
||||||
|
|
||||||
|
if (!this.winch_registered) {
|
||||||
|
handler_ctx = this;
|
||||||
|
var act = posix.Sigaction{
|
||||||
|
.handler = .{ .handler = handleWinch },
|
||||||
|
.mask = posix.sigemptyset(),
|
||||||
|
.flags = 0,
|
||||||
|
};
|
||||||
|
posix.sigaction(posix.SIG.WINCH, &act, null);
|
||||||
|
this.winch_registered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.quit_event.reset();
|
this.quit_event.reset();
|
||||||
this.thread = try std.Thread.spawn(.{}, @This().run, .{this});
|
this.thread = try Thread.spawn(.{}, @This().run, .{this});
|
||||||
|
|
||||||
var termios: std.posix.termios = undefined;
|
var termios: posix.termios = undefined;
|
||||||
try terminal.enableRawMode(&termios);
|
try terminal.enableRawMode(&termios);
|
||||||
if (this.termios) |_| {} else this.termios = termios;
|
if (this.termios) |_| {} else this.termios = termios;
|
||||||
|
|
||||||
try terminal.saveScreen();
|
try terminal.saveScreen();
|
||||||
try terminal.enterAltScreen();
|
try terminal.enterAltScreen();
|
||||||
try terminal.hideCursor();
|
try terminal.hideCursor();
|
||||||
|
try terminal.enableMouseSupport();
|
||||||
// send initial size afterwards
|
|
||||||
const size = terminal.getTerminalSize();
|
|
||||||
this.postEvent(.{ .resize = size });
|
|
||||||
this.prev_size = size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn interrupt(this: *@This()) !void {
|
pub fn interrupt(this: *@This()) !void {
|
||||||
this.quit_event.set();
|
this.quit_event.set();
|
||||||
|
try terminal.disableMouseSupport();
|
||||||
try terminal.exitAltScreen();
|
try terminal.exitAltScreen();
|
||||||
try terminal.restoreScreen();
|
try terminal.restoreScreen();
|
||||||
if (this.thread) |thread| {
|
if (this.thread) |thread| {
|
||||||
@@ -112,9 +89,10 @@ pub fn App(comptime E: type) type {
|
|||||||
pub fn stop(this: *@This()) !void {
|
pub fn stop(this: *@This()) !void {
|
||||||
try this.interrupt();
|
try this.interrupt();
|
||||||
if (this.termios) |*termios| {
|
if (this.termios) |*termios| {
|
||||||
try terminal.disableRawMode(termios);
|
try terminal.disableMouseSupport();
|
||||||
try terminal.showCursor();
|
try terminal.showCursor();
|
||||||
try terminal.exitAltScreen();
|
try terminal.exitAltScreen();
|
||||||
|
try terminal.disableRawMode(termios);
|
||||||
try terminal.restoreScreen();
|
try terminal.restoreScreen();
|
||||||
}
|
}
|
||||||
this.termios = null;
|
this.termios = null;
|
||||||
@@ -137,64 +115,36 @@ pub fn App(comptime E: type) type {
|
|||||||
this.queue.push(e);
|
this.queue.push(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn winsizeCallback(ptr: *anyopaque) void {
|
|
||||||
const this: *@This() = @ptrCast(@alignCast(ptr));
|
|
||||||
const size = terminal.getTerminalSize();
|
|
||||||
if (size.cols != this.prev_size.cols or size.rows != this.prev_size.rows) {
|
|
||||||
this.postEvent(.{ .resize = size });
|
|
||||||
this.prev_size = size;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var winch_handler: ?SignalHandler = null;
|
|
||||||
|
|
||||||
fn registerWinch(handler: SignalHandler) !void {
|
|
||||||
if (winch_handler) |_| {
|
|
||||||
@panic("Cannot register another WINCH handler.");
|
|
||||||
}
|
|
||||||
winch_handler = handler;
|
|
||||||
}
|
|
||||||
|
|
||||||
fn handleWinch(_: c_int) callconv(.C) void {
|
|
||||||
if (winch_handler) |handler| {
|
|
||||||
handler.callback(handler.context);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn run(this: *@This()) !void {
|
fn run(this: *@This()) !void {
|
||||||
// send initial terminal size
|
|
||||||
// changes are handled by the winch signal handler
|
|
||||||
// see `App.start` and `App.registerWinch` for details
|
|
||||||
{}
|
|
||||||
|
|
||||||
// thread to read user inputs
|
// thread to read user inputs
|
||||||
var buf: [256]u8 = undefined;
|
var buf: [256]u8 = undefined;
|
||||||
while (true) {
|
while (true) {
|
||||||
// FIX: I still think that there is a race condition (I'm just waiting 'long' enough)
|
// FIX I still think that there is a race condition (I'm just waiting 'long' enough)
|
||||||
this.quit_event.timedWait(20 * std.time.ns_per_ms) catch {
|
this.quit_event.timedWait(20 * std.time.ns_per_ms) catch {
|
||||||
|
// FIX in case the queue is full -> the next user input should panic and quit the application? because something seems to clock up the event queue
|
||||||
const read_bytes = try terminal.read(buf[0..]);
|
const read_bytes = try terminal.read(buf[0..]);
|
||||||
|
// TODO `break` should not terminate the reading of the user inputs, but instead only the received faulty input!
|
||||||
// escape key presses
|
// escape key presses
|
||||||
if (buf[0] == 0x1b and read_bytes > 1) {
|
if (buf[0] == 0x1b and read_bytes > 1) {
|
||||||
switch (buf[1]) {
|
switch (buf[1]) {
|
||||||
0x4F => { // ss3
|
0x4F => { // ss3
|
||||||
if (read_bytes < 3) continue;
|
if (read_bytes < 3) continue;
|
||||||
|
|
||||||
const key: ?Key = switch (buf[2]) {
|
const key: Key = switch (buf[2]) {
|
||||||
0x1B => null,
|
'A' => .{ .cp = input.Up },
|
||||||
'A' => .{ .cp = Key.up },
|
'B' => .{ .cp = input.Down },
|
||||||
'B' => .{ .cp = Key.down },
|
'C' => .{ .cp = input.Right },
|
||||||
'C' => .{ .cp = Key.right },
|
'D' => .{ .cp = input.Left },
|
||||||
'D' => .{ .cp = Key.left },
|
'E' => .{ .cp = input.KpBegin },
|
||||||
'E' => .{ .cp = Key.kp_begin },
|
'F' => .{ .cp = input.End },
|
||||||
'F' => .{ .cp = Key.end },
|
'H' => .{ .cp = input.Home },
|
||||||
'H' => .{ .cp = Key.home },
|
'P' => .{ .cp = input.F1 },
|
||||||
'P' => .{ .cp = Key.f1 },
|
'Q' => .{ .cp = input.F2 },
|
||||||
'Q' => .{ .cp = Key.f2 },
|
'R' => .{ .cp = input.F3 },
|
||||||
'R' => .{ .cp = Key.f3 },
|
'S' => .{ .cp = input.F4 },
|
||||||
'S' => .{ .cp = Key.f4 },
|
else => continue,
|
||||||
else => null,
|
|
||||||
};
|
};
|
||||||
if (key) |k| this.postEvent(.{ .key = k });
|
this.postEvent(.{ .key = key });
|
||||||
},
|
},
|
||||||
0x5B => { // csi
|
0x5B => { // csi
|
||||||
if (read_bytes < 3) continue;
|
if (read_bytes < 3) continue;
|
||||||
@@ -213,64 +163,139 @@ pub fn App(comptime E: type) type {
|
|||||||
// Legacy keys
|
// Legacy keys
|
||||||
// CSI {ABCDEFHPQS}
|
// CSI {ABCDEFHPQS}
|
||||||
// CSI 1 ; modifier:event_type {ABCDEFHPQS}
|
// CSI 1 ; modifier:event_type {ABCDEFHPQS}
|
||||||
|
var field_iter = std.mem.splitScalar(u8, sequence[2 .. sequence.len - 1], ';');
|
||||||
|
_ = field_iter.next(); // skip first field
|
||||||
|
|
||||||
const key: Key = .{
|
const key: Key = .{
|
||||||
.cp = switch (final) {
|
.cp = switch (final) {
|
||||||
'A' => Key.up,
|
'A' => input.Up,
|
||||||
'B' => Key.down,
|
'B' => input.Down,
|
||||||
'C' => Key.right,
|
'C' => input.Right,
|
||||||
'D' => Key.left,
|
'D' => input.Left,
|
||||||
'E' => Key.kp_begin,
|
'E' => input.KpBegin,
|
||||||
'F' => Key.end,
|
'F' => input.End,
|
||||||
'H' => Key.home,
|
'H' => input.Home,
|
||||||
'P' => Key.f1,
|
'P' => input.F1,
|
||||||
'Q' => Key.f2,
|
'Q' => input.F2,
|
||||||
'R' => Key.f3,
|
'R' => input.F3,
|
||||||
'S' => Key.f4,
|
'S' => input.F4,
|
||||||
else => unreachable, // switch case prevents in this case form ever happening
|
else => unreachable,
|
||||||
|
},
|
||||||
|
.mod = blk: {
|
||||||
|
// modifier_mask:event_type
|
||||||
|
var mod: Key.Modifier = .{};
|
||||||
|
const field_buf = field_iter.next() orelse break :blk mod;
|
||||||
|
var param_iter = std.mem.splitScalar(u8, field_buf, ':');
|
||||||
|
const modifier_buf = param_iter.next() orelse unreachable;
|
||||||
|
const modifier_mask = fmt.parseUnsigned(u8, modifier_buf, 10) catch break :blk mod;
|
||||||
|
if ((modifier_mask -| 1) & 1 != 0) mod.shift = true;
|
||||||
|
if ((modifier_mask -| 1) & 2 != 0) mod.alt = true;
|
||||||
|
if ((modifier_mask -| 1) & 4 != 0) mod.ctrl = true;
|
||||||
|
break :blk mod;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
this.postEvent(.{ .key = key });
|
this.postEvent(.{ .key = key });
|
||||||
},
|
},
|
||||||
|
'Z' => this.postEvent(.{ .key = .{ .cp = input.Tab, .mod = .{ .shift = true } } }),
|
||||||
'~' => {
|
'~' => {
|
||||||
// Legacy keys
|
// Legacy keys
|
||||||
// CSI number ~
|
// CSI number ~
|
||||||
// CSI number ; modifier ~
|
// CSI number ; modifier ~
|
||||||
// CSI number ; modifier:event_type ; text_as_codepoint ~
|
// CSI number ; modifier:event_type ; text_as_codepoint ~
|
||||||
var field_iter = std.mem.splitScalar(u8, sequence[2 .. sequence.len - 1], ';');
|
var field_iter = mem.splitScalar(u8, sequence[2 .. sequence.len - 1], ';');
|
||||||
const number_buf = field_iter.next() orelse unreachable; // always will have one field
|
|
||||||
const number = std.fmt.parseUnsigned(u16, number_buf, 10) catch break;
|
|
||||||
|
|
||||||
const key: Key = .{
|
const key: Key = .{
|
||||||
.cp = switch (number) {
|
.cp = blk: {
|
||||||
2 => Key.insert,
|
const number_buf = field_iter.next() orelse unreachable; // always will have one field
|
||||||
3 => Key.delete,
|
const number = fmt.parseUnsigned(u16, number_buf, 10) catch break;
|
||||||
5 => Key.page_up,
|
break :blk switch (number) {
|
||||||
6 => Key.page_down,
|
2 => input.Insert,
|
||||||
7 => Key.home,
|
3 => input.Delete,
|
||||||
8 => Key.end,
|
5 => input.PageUp,
|
||||||
11 => Key.f1,
|
6 => input.PageDown,
|
||||||
12 => Key.f2,
|
7 => input.Home,
|
||||||
13 => Key.f3,
|
8 => input.End,
|
||||||
14 => Key.f4,
|
11 => input.F1,
|
||||||
15 => Key.f5,
|
12 => input.F2,
|
||||||
17 => Key.f6,
|
13 => input.F3,
|
||||||
18 => Key.f7,
|
14 => input.F4,
|
||||||
19 => Key.f8,
|
15 => input.F5,
|
||||||
20 => Key.f9,
|
17 => input.F6,
|
||||||
21 => Key.f10,
|
18 => input.F7,
|
||||||
23 => Key.f11,
|
19 => input.F8,
|
||||||
24 => Key.f12,
|
20 => input.F9,
|
||||||
|
21 => input.F10,
|
||||||
|
23 => input.F11,
|
||||||
|
24 => input.F12,
|
||||||
|
25 => input.F13,
|
||||||
|
26 => input.F14,
|
||||||
|
28 => input.F15,
|
||||||
|
29 => input.F16,
|
||||||
|
31 => input.F17,
|
||||||
|
32 => input.F18,
|
||||||
|
33 => input.F19,
|
||||||
|
34 => input.F20,
|
||||||
// 200 => return .{ .event = .paste_start, .n = sequence.len },
|
// 200 => return .{ .event = .paste_start, .n = sequence.len },
|
||||||
// 201 => return .{ .event = .paste_end, .n = sequence.len },
|
// 201 => return .{ .event = .paste_end, .n = sequence.len },
|
||||||
57427 => Key.kp_begin,
|
57399...57454 => |code| code,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
.mod = blk: {
|
||||||
|
// modifier_mask:event_type
|
||||||
|
var mod: Key.Modifier = .{};
|
||||||
|
const field_buf = field_iter.next() orelse break :blk mod;
|
||||||
|
var param_iter = std.mem.splitScalar(u8, field_buf, ':');
|
||||||
|
const modifier_buf = param_iter.next() orelse unreachable;
|
||||||
|
const modifier_mask = fmt.parseUnsigned(u8, modifier_buf, 10) catch break :blk mod;
|
||||||
|
if ((modifier_mask -| 1) & 1 != 0) mod.shift = true;
|
||||||
|
if ((modifier_mask -| 1) & 2 != 0) mod.alt = true;
|
||||||
|
if ((modifier_mask -| 1) & 4 != 0) mod.ctrl = true;
|
||||||
|
break :blk mod;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
this.postEvent(.{ .key = key });
|
this.postEvent(.{ .key = key });
|
||||||
},
|
},
|
||||||
|
// TODO focus usage? should this even be in the default event system?
|
||||||
'I' => this.postEvent(.{ .focus = true }),
|
'I' => this.postEvent(.{ .focus = true }),
|
||||||
'O' => this.postEvent(.{ .focus = false }),
|
'O' => this.postEvent(.{ .focus = false }),
|
||||||
// 'M', 'm' => return parseMouse(sequence), // TODO: parse mouse inputs
|
'M', 'm' => {
|
||||||
|
assert(sequence.len >= 4);
|
||||||
|
if (sequence[2] != '<') break;
|
||||||
|
|
||||||
|
const delim1 = mem.indexOfScalarPos(u8, sequence, 3, ';') orelse break;
|
||||||
|
const button_mask = fmt.parseUnsigned(u16, sequence[3..delim1], 10) catch break;
|
||||||
|
const delim2 = mem.indexOfScalarPos(u8, sequence, delim1 + 1, ';') orelse break;
|
||||||
|
const px = fmt.parseUnsigned(u16, sequence[delim1 + 1 .. delim2], 10) catch break;
|
||||||
|
const py = fmt.parseUnsigned(u16, sequence[delim2 + 1 .. sequence.len - 1], 10) catch break;
|
||||||
|
|
||||||
|
const mouse_bits = packed struct {
|
||||||
|
const motion: u8 = 0b00100000;
|
||||||
|
const buttons: u8 = 0b11000011;
|
||||||
|
const shift: u8 = 0b00000100;
|
||||||
|
const alt: u8 = 0b00001000;
|
||||||
|
const ctrl: u8 = 0b00010000;
|
||||||
|
};
|
||||||
|
|
||||||
|
const button: Mouse.Button = @enumFromInt(button_mask & mouse_bits.buttons);
|
||||||
|
const motion = button_mask & mouse_bits.motion > 0;
|
||||||
|
// const shift = button_mask & mouse_bits.shift > 0;
|
||||||
|
// const alt = button_mask & mouse_bits.alt > 0;
|
||||||
|
// const ctrl = button_mask & mouse_bits.ctrl > 0;
|
||||||
|
|
||||||
|
const mouse: Mouse = .{
|
||||||
|
.button = button,
|
||||||
|
.x = px -| 1,
|
||||||
|
.y = py -| 1,
|
||||||
|
.kind = blk: {
|
||||||
|
if (motion and button != Mouse.Button.none) break :blk .drag;
|
||||||
|
if (motion and button == Mouse.Button.none) break :blk .motion;
|
||||||
|
if (sequence[sequence.len - 1] == 'm') break :blk .release;
|
||||||
|
break :blk .press;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
this.postEvent(.{ .mouse = mouse });
|
||||||
|
},
|
||||||
'c' => {
|
'c' => {
|
||||||
// Primary DA (CSI ? Pm c)
|
// Primary DA (CSI ? Pm c)
|
||||||
},
|
},
|
||||||
@@ -278,29 +303,26 @@ pub fn App(comptime E: type) type {
|
|||||||
// Device Status Report
|
// Device Status Report
|
||||||
// CSI Ps n
|
// CSI Ps n
|
||||||
// CSI ? Ps n
|
// CSI ? Ps n
|
||||||
std.debug.assert(sequence.len >= 3);
|
assert(sequence.len >= 3);
|
||||||
},
|
},
|
||||||
't' => {
|
't' => {
|
||||||
// XTWINOPS
|
// XTWINOPS
|
||||||
// Split first into fields delimited by ';'
|
// Split first into fields delimited by ';'
|
||||||
var iter = std.mem.splitScalar(u8, sequence[2 .. sequence.len - 1], ';');
|
var iter = mem.splitScalar(u8, sequence[2 .. sequence.len - 1], ';');
|
||||||
const ps = iter.first();
|
const ps = iter.first();
|
||||||
if (std.mem.eql(u8, "48", ps)) {
|
if (mem.eql(u8, "48", ps)) {
|
||||||
// in band window resize
|
// in band window resize
|
||||||
// CSI 48 ; height ; width ; height_pix ; width_pix t
|
// CSI 48 ; height ; width ; height_pix ; width_pix t
|
||||||
const height_char = iter.next() orelse break;
|
|
||||||
const width_char = iter.next() orelse break;
|
const width_char = iter.next() orelse break;
|
||||||
|
const height_char = iter.next() orelse break;
|
||||||
|
|
||||||
// TODO: only post the event if the size has changed?
|
_ = width_char;
|
||||||
// because there might be too many resize events (which force a re-draw of the entire screen)
|
_ = height_char;
|
||||||
const size: Size = .{
|
this.postEvent(.resize);
|
||||||
.rows = std.fmt.parseUnsigned(u16, height_char, 10) catch break,
|
// this.postEvent(.{ .size = .{
|
||||||
.cols = std.fmt.parseUnsigned(u16, width_char, 10) catch break,
|
// .x = fmt.parseUnsigned(u16, width_char, 10) catch break,
|
||||||
};
|
// .y = fmt.parseUnsigned(u16, height_char, 10) catch break,
|
||||||
if (size.cols != this.prev_size.cols or size.rows != this.prev_size.rows) {
|
// } });
|
||||||
this.postEvent(.{ .resize = size });
|
|
||||||
this.prev_size = size;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'u' => {
|
'u' => {
|
||||||
@@ -315,25 +337,46 @@ pub fn App(comptime E: type) type {
|
|||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// TODO: parse corresponding codes
|
0x50 => {
|
||||||
// 0x5B => parseCsi(input, &self.buf), // CSI see https://github.com/rockorager/libvaxis/blob/main/src/Parser.zig
|
// DCS
|
||||||
else => {},
|
},
|
||||||
|
0x58 => {
|
||||||
|
// SOS
|
||||||
|
},
|
||||||
|
0x5D => {
|
||||||
|
// OSC
|
||||||
|
},
|
||||||
|
// TODO parse corresponding codes
|
||||||
|
0x5F => {
|
||||||
|
// APC
|
||||||
|
// parse for kitty graphics capabilities
|
||||||
|
},
|
||||||
|
else => {
|
||||||
|
// alt + <char> keypress
|
||||||
|
this.postEvent(.{
|
||||||
|
.key = .{
|
||||||
|
.cp = buf[1],
|
||||||
|
.mod = .{ .alt = true },
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const b = buf[0];
|
const b = buf[0];
|
||||||
const key: Key = switch (b) {
|
const key: Key = switch (b) {
|
||||||
0x00 => .{ .cp = '@', .mod = .{ .ctrl = true } },
|
0x00 => .{ .cp = '@', .mod = .{ .ctrl = true } },
|
||||||
0x08 => .{ .cp = Key.backspace },
|
0x08 => .{ .cp = input.Backspace },
|
||||||
0x09 => .{ .cp = Key.tab },
|
0x09 => .{ .cp = input.Tab },
|
||||||
0x0a, 0x0d => .{ .cp = Key.enter },
|
0x0a => .{ .cp = 'j', .mod = .{ .ctrl = true } },
|
||||||
|
0x0d => .{ .cp = input.Enter },
|
||||||
0x01...0x07, 0x0b...0x0c, 0x0e...0x1a => .{ .cp = b + 0x60, .mod = .{ .ctrl = true } },
|
0x01...0x07, 0x0b...0x0c, 0x0e...0x1a => .{ .cp = b + 0x60, .mod = .{ .ctrl = true } },
|
||||||
0x1b => escape: {
|
0x1b => escape: {
|
||||||
std.debug.assert(read_bytes == 1);
|
assert(read_bytes == 1);
|
||||||
break :escape .{ .cp = Key.escape };
|
break :escape .{ .cp = input.Escape };
|
||||||
},
|
},
|
||||||
0x7f => .{ .cp = Key.backspace },
|
0x7f => .{ .cp = input.Backspace },
|
||||||
else => {
|
else => {
|
||||||
var iter = terminal.code_point.Iterator{ .bytes = buf[0..read_bytes] };
|
var iter = code_point.Iterator{ .bytes = buf[0..read_bytes] };
|
||||||
while (iter.next()) |cp| this.postEvent(.{ .key = .{ .cp = cp.code } });
|
while (iter.next()) |cp| this.postEvent(.{ .key = .{ .cp = cp.code } });
|
||||||
continue;
|
continue;
|
||||||
},
|
},
|
||||||
@@ -345,5 +388,54 @@ pub fn App(comptime E: type) type {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn panic_handler(msg: []const u8, _: ?*std.builtin.StackTrace, ret_addr: ?usize) noreturn {
|
||||||
|
terminal.disableMouseSupport() catch {};
|
||||||
|
terminal.exitAltScreen() catch {};
|
||||||
|
terminal.showCursor() catch {};
|
||||||
|
var termios: posix.termios = .{
|
||||||
|
.iflag = .{},
|
||||||
|
.lflag = .{},
|
||||||
|
.cflag = .{},
|
||||||
|
.oflag = .{},
|
||||||
|
.cc = undefined,
|
||||||
|
.line = 0,
|
||||||
|
.ispeed = undefined,
|
||||||
|
.ospeed = undefined,
|
||||||
|
};
|
||||||
|
terminal.disableRawMode(&termios) catch {};
|
||||||
|
terminal.restoreScreen() catch {};
|
||||||
|
std.debug.defaultPanic(msg, ret_addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
const element = @import("element.zig");
|
||||||
|
pub const Event = mergeTaggedUnions(event.SystemEvent, E);
|
||||||
|
pub const Container = @import("container.zig").Container(Event);
|
||||||
|
pub const Element = element.Element(Event);
|
||||||
|
pub const Alignment = element.Alignment(Event);
|
||||||
|
pub const Button = element.Button(Event, Queue);
|
||||||
|
pub const Input = element.Input(Event, Queue);
|
||||||
|
pub const Progress = element.Progress(Event, Queue);
|
||||||
|
pub const Scrollable = element.Scrollable(Event);
|
||||||
|
pub const Queue = queue.Queue(Event, 256);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const log = std.log.scoped(.app);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const mem = std.mem;
|
||||||
|
const fmt = std.fmt;
|
||||||
|
const posix = std.posix;
|
||||||
|
const Thread = std.Thread;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const code_point = @import("code_point");
|
||||||
|
const event = @import("event.zig");
|
||||||
|
const input = @import("input.zig");
|
||||||
|
const terminal = @import("terminal.zig");
|
||||||
|
const queue = @import("queue.zig");
|
||||||
|
const mergeTaggedUnions = event.mergeTaggedUnions;
|
||||||
|
const isTaggedUnion = event.isTaggedUnion;
|
||||||
|
const Mouse = input.Mouse;
|
||||||
|
const Key = input.Key;
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
+52
-7
@@ -1,21 +1,66 @@
|
|||||||
const std = @import("std");
|
//! Cell type containing content and formatting for each character in the terminal screen.
|
||||||
const Style = @import("style.zig");
|
|
||||||
|
|
||||||
pub const Cell = @This();
|
// TODO embrace `zg` dependency more due to utf-8 encoding
|
||||||
|
|
||||||
style: Style = .{ .attributes = &.{} },
|
|
||||||
// TODO: embrace `zg` dependency more due to utf-8 encoding
|
|
||||||
cp: u21 = ' ',
|
cp: u21 = ' ',
|
||||||
|
style: Style = .{ .emphasis = &.{} },
|
||||||
|
|
||||||
pub fn eql(this: Cell, other: Cell) bool {
|
pub fn eql(this: Cell, other: Cell) bool {
|
||||||
return this.cp == other.cp and this.style.eql(other.style);
|
return this.cp == other.cp and this.style.eql(other.style);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reset(this: *Cell) void {
|
pub fn reset(this: *Cell) void {
|
||||||
this.style = .{ .attributes = &.{} };
|
this.style = .{ .emphasis = &.{} };
|
||||||
this.cp = ' ';
|
this.cp = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn value(this: Cell, writer: anytype) !void {
|
pub fn value(this: Cell, writer: anytype) !void {
|
||||||
try this.style.value(writer, this.cp);
|
try this.style.value(writer, this.cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const Style = @import("style.zig");
|
||||||
|
const Cell = @This();
|
||||||
|
|
||||||
|
test "ascii styled text" {
|
||||||
|
const cells: [4]Cell = .{
|
||||||
|
.{ .cp = 'Y', .style = .{ .fg = .green, .bg = .grey, .emphasis = &.{} } },
|
||||||
|
.{ .cp = 'v', .style = .{ .emphasis = &.{ .bold, .underline } } },
|
||||||
|
.{ .cp = 'e', .style = .{ .emphasis = &.{.italic} } },
|
||||||
|
.{ .cp = 's', .style = .{ .fg = .light_green, .bg = .black, .emphasis = &.{.underline} } },
|
||||||
|
};
|
||||||
|
|
||||||
|
var string = std.ArrayList(u8).init(std.testing.allocator);
|
||||||
|
defer string.deinit();
|
||||||
|
|
||||||
|
const writer = string.writer();
|
||||||
|
for (cells) |cell| {
|
||||||
|
try cell.value(writer);
|
||||||
|
}
|
||||||
|
try std.testing.expectEqualSlices(
|
||||||
|
u8,
|
||||||
|
"\x1b[38;5;10;48;5;8;59mY\x1b[0m\x1b[39;49;59;1;4mv\x1b[0m\x1b[39;49;59;3me\x1b[0m\x1b[38;5;2;48;5;16;59;4ms\x1b[0m",
|
||||||
|
string.items,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
test "utf-8 styled text" {
|
||||||
|
const cells: [4]Cell = .{
|
||||||
|
.{ .cp = '╭', .style = .{ .fg = .green, .bg = .grey, .emphasis = &.{} } },
|
||||||
|
.{ .cp = '─', .style = .{ .emphasis = &.{} } },
|
||||||
|
.{ .cp = '┄', .style = .{ .emphasis = &.{} } },
|
||||||
|
.{ .cp = '┘', .style = .{ .fg = .light_green, .bg = .black, .emphasis = &.{.underline} } },
|
||||||
|
};
|
||||||
|
|
||||||
|
var string = std.ArrayList(u8).init(std.testing.allocator);
|
||||||
|
defer string.deinit();
|
||||||
|
|
||||||
|
const writer = string.writer();
|
||||||
|
for (cells) |cell| {
|
||||||
|
try cell.value(writer);
|
||||||
|
}
|
||||||
|
try std.testing.expectEqualSlices(
|
||||||
|
u8,
|
||||||
|
"\x1b[38;5;10;48;5;8;59m╭\x1b[0m\x1b[39;49;59m─\x1b[0m\x1b[39;49;59m┄\x1b[0m\x1b[38;5;2;48;5;16;59;4m┘\x1b[0m",
|
||||||
|
string.items,
|
||||||
|
);
|
||||||
|
}
|
||||||
+12
-9
@@ -1,5 +1,3 @@
|
|||||||
const std = @import("std");
|
|
||||||
|
|
||||||
pub const Color = enum(u8) {
|
pub const Color = enum(u8) {
|
||||||
default = 0,
|
default = 0,
|
||||||
black = 16,
|
black = 16,
|
||||||
@@ -18,21 +16,26 @@ pub const Color = enum(u8) {
|
|||||||
magenta,
|
magenta,
|
||||||
cyan,
|
cyan,
|
||||||
white,
|
white,
|
||||||
// TODO: add further colors as described in https://gist.github.com/ConnerWill/d4b6c776b509add763e17f9f113fd25b # Color / Graphics Mode - 256 Colors
|
// TODO add further colors as described in https://gist.github.com/ConnerWill/d4b6c776b509add763e17f9f113fd25b # Color / Graphics Mode - 256 Colors
|
||||||
|
|
||||||
|
// TODO might be useful to use the std.ascii stuff!
|
||||||
|
|
||||||
pub inline fn write(this: Color, writer: anytype, comptime coloring: enum { fg, bg, ul }) !void {
|
pub inline fn write(this: Color, writer: anytype, comptime coloring: enum { fg, bg, ul }) !void {
|
||||||
if (this == .default) {
|
if (this == .default) {
|
||||||
switch (coloring) {
|
switch (coloring) {
|
||||||
.fg => try std.fmt.format(writer, "39", .{}),
|
.fg => try format(writer, "39", .{}),
|
||||||
.bg => try std.fmt.format(writer, "49", .{}),
|
.bg => try format(writer, "49", .{}),
|
||||||
.ul => try std.fmt.format(writer, "59", .{}),
|
.ul => try format(writer, "59", .{}),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (coloring) {
|
switch (coloring) {
|
||||||
.fg => try std.fmt.format(writer, "38;5;{d}", .{@intFromEnum(this)}),
|
.fg => try format(writer, "38;5;{d}", .{@intFromEnum(this)}),
|
||||||
.bg => try std.fmt.format(writer, "48;5;{d}", .{@intFromEnum(this)}),
|
.bg => try format(writer, "48;5;{d}", .{@intFromEnum(this)}),
|
||||||
.ul => try std.fmt.format(writer, "58;5;{d}", .{@intFromEnum(this)}),
|
.ul => try format(writer, "58;5;{d}", .{@intFromEnum(this)}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const format = std.fmt.format;
|
||||||
+838
-239
File diff suppressed because it is too large.
Load diff
+4
-1
@@ -58,8 +58,11 @@ pub const cub = "\x1b[{d}D";
|
|||||||
|
|
||||||
// Erase
|
// Erase
|
||||||
pub const erase_below_cursor = "\x1b[J";
|
pub const erase_below_cursor = "\x1b[J";
|
||||||
|
pub const clear_screen = "\x1b[2J";
|
||||||
|
|
||||||
// alt screen
|
// alt screen
|
||||||
|
pub const save_screen = "\x1b[?47h";
|
||||||
|
pub const restore_screen = "\x1b[?47l";
|
||||||
pub const smcup = "\x1b[?1049h";
|
pub const smcup = "\x1b[?1049h";
|
||||||
pub const rmcup = "\x1b[?1049l";
|
pub const rmcup = "\x1b[?1049l";
|
||||||
|
|
||||||
@@ -89,7 +92,7 @@ pub const bg_rgb_legacy = "\x1b[48;2;{d};{d};{d}m";
|
|||||||
pub const ul_rgb_legacy = "\x1b[58;2;{d};{d};{d}m";
|
pub const ul_rgb_legacy = "\x1b[58;2;{d};{d};{d}m";
|
||||||
|
|
||||||
// Underlines
|
// Underlines
|
||||||
pub const ul_off = "\x1b[24m"; // NOTE: this could be \x1b[4:0m but is not as widely supported
|
pub const ul_off = "\x1b[24m"; // NOTE this could be \x1b[4:0m but is not as widely supported
|
||||||
pub const ul_single = "\x1b[4m";
|
pub const ul_single = "\x1b[4m";
|
||||||
pub const ul_double = "\x1b[4:2m";
|
pub const ul_double = "\x1b[4:2m";
|
||||||
pub const ul_curly = "\x1b[4:3m";
|
pub const ul_curly = "\x1b[4:3m";
|
||||||
|
|||||||
+1349
-21
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,4 @@
|
|||||||
|
pub const Error = error{
|
||||||
|
/// Thrown when a `Container` is too small to be rendered in the current screen part.
|
||||||
|
TooSmall,
|
||||||
|
};
|
||||||
+14
-9
@@ -1,30 +1,28 @@
|
|||||||
//! Events which are defined by the library. They might be extended by user
|
//! Events which are defined by the library. They might be extended by user
|
||||||
//! events. See `App` for more details about user defined events.
|
//! events. See `App` for more details about user defined events.
|
||||||
const std = @import("std");
|
|
||||||
const terminal = @import("terminal.zig");
|
|
||||||
|
|
||||||
const Size = @import("size.zig").Size;
|
|
||||||
const Key = @import("key.zig");
|
|
||||||
|
|
||||||
/// System events available to every `zterm.App`
|
/// System events available to every `zterm.App`
|
||||||
pub const SystemEvent = union(enum) {
|
pub const SystemEvent = union(enum) {
|
||||||
/// Initialize event, which is send once at the beginning of the event loop and before the first render loop
|
/// Initialize event, which is send once at the beginning of the event loop and before the first render loop
|
||||||
/// TODO: not sure if this is necessary or if there is an actual usecase for this - for now it will remain
|
/// TODO not sure if this is necessary or if there is an actual usecase for this - for now it will remain
|
||||||
init,
|
init,
|
||||||
/// Quit event to signify the end of the event loop (rendering should stop afterwards)
|
/// Quit event to signify the end of the event loop (rendering should stop afterwards)
|
||||||
quit,
|
quit,
|
||||||
|
/// Resize event to signify that the application should re-draw to resize
|
||||||
|
resize,
|
||||||
/// Error event to notify other containers about a recoverable error
|
/// Error event to notify other containers about a recoverable error
|
||||||
err: struct {
|
err: struct {
|
||||||
|
/// actual error
|
||||||
err: anyerror,
|
err: anyerror,
|
||||||
/// associated error message
|
/// associated error message
|
||||||
msg: []const u8,
|
msg: []const u8,
|
||||||
},
|
},
|
||||||
/// Resize event emitted by the terminal to derive the `Size` of the current terminal the application is rendered in
|
|
||||||
resize: Size,
|
|
||||||
/// Input key event received from the user
|
/// Input key event received from the user
|
||||||
key: Key,
|
key: Key,
|
||||||
|
/// Mouse input event
|
||||||
|
mouse: Mouse,
|
||||||
/// Focus event for mouse interaction
|
/// Focus event for mouse interaction
|
||||||
/// TODO: this should instead be a union with a `Size` to derive which container / element the focus meant for
|
/// TODO this should instead be a union with a `Size` to derive which container / element the focus meant for
|
||||||
focus: bool,
|
focus: bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -90,3 +88,10 @@ pub fn isTaggedUnion(comptime E: type) bool {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const input = @import("input.zig");
|
||||||
|
const terminal = @import("terminal.zig");
|
||||||
|
const Key = input.Key;
|
||||||
|
const Mouse = input.Mouse;
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
+215
@@ -0,0 +1,215 @@
|
|||||||
|
//! Input module for `zterm`. Contains structs to represent key events and mouse events.
|
||||||
|
|
||||||
|
pub const Mouse = packed struct {
|
||||||
|
x: u16,
|
||||||
|
y: u16,
|
||||||
|
button: Button,
|
||||||
|
kind: Kind,
|
||||||
|
|
||||||
|
pub const Button = enum(u8) {
|
||||||
|
left,
|
||||||
|
middle,
|
||||||
|
right,
|
||||||
|
none,
|
||||||
|
wheel_up = 64,
|
||||||
|
wheel_down = 65,
|
||||||
|
wheel_right = 66,
|
||||||
|
wheel_left = 67,
|
||||||
|
button_8 = 128,
|
||||||
|
button_9 = 129,
|
||||||
|
button_10 = 130,
|
||||||
|
button_11 = 131,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const Kind = enum(u2) {
|
||||||
|
press,
|
||||||
|
release,
|
||||||
|
motion,
|
||||||
|
drag,
|
||||||
|
};
|
||||||
|
|
||||||
|
pub fn eql(this: @This(), other: @This()) bool {
|
||||||
|
return meta.eql(this, other);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn in(this: @This(), origin: Point, size: Point) bool {
|
||||||
|
return this.x >= origin.x and this.x < size.x + origin.x and
|
||||||
|
this.y >= origin.y and this.y < size.y + origin.y;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
pub const Key = packed struct {
|
||||||
|
cp: u21,
|
||||||
|
mod: Modifier = .{},
|
||||||
|
|
||||||
|
pub const Modifier = packed struct {
|
||||||
|
shift: bool = false,
|
||||||
|
alt: bool = false,
|
||||||
|
ctrl: bool = false,
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Compare _this_ `Key` with an _other_ `Key`.
|
||||||
|
///
|
||||||
|
/// # Example
|
||||||
|
///
|
||||||
|
/// Configure `ctrl+c` to quit the application (done in main event loop of the application):
|
||||||
|
///
|
||||||
|
/// ```zig
|
||||||
|
/// switch (event) {
|
||||||
|
/// .quit => break,
|
||||||
|
/// .key => |key| if (key.eql(.{ .cp = 'c', .mod = .{ .ctrl = true } })) app.quit.set(),
|
||||||
|
/// else => {},
|
||||||
|
/// }
|
||||||
|
/// ```
|
||||||
|
pub fn eql(this: @This(), other: @This()) bool {
|
||||||
|
return meta.eql(this, other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO might be useful to use the std.ascii stuff!
|
||||||
|
|
||||||
|
/// Determine if the `Key` is an ascii character that can be printed to
|
||||||
|
/// the screen. This means that the code point of the `Key` is an ascii
|
||||||
|
/// character between 32 - 255 (with the exception of 127 = Delete) and no
|
||||||
|
/// modifiers (alt and/or ctrl) are used.
|
||||||
|
///
|
||||||
|
/// # Example
|
||||||
|
///
|
||||||
|
/// Get user input's from the .key event from the application event loop:
|
||||||
|
///
|
||||||
|
/// ```zig
|
||||||
|
/// switch (event) {
|
||||||
|
/// .key => |key| if (key.isAscii()) try this.input.append(key.cp),
|
||||||
|
/// else => {},
|
||||||
|
/// }
|
||||||
|
/// ```
|
||||||
|
pub fn isAscii(this: @This()) bool {
|
||||||
|
return this.mod.alt == false and this.mod.ctrl == false and // no modifier keys
|
||||||
|
(this.cp >= 32 and this.cp <= 126 or // ascii printable characters (except for input.Delete)
|
||||||
|
this.cp >= 128 and this.cp <= 255); // extended ascii codes
|
||||||
|
}
|
||||||
|
|
||||||
|
test "isAscii with ascii character" {
|
||||||
|
try testing.expectEqual(true, isAscii(.{ .cp = 'c' }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = 'c', .mod = .{ .ctrl = true } }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = 'c', .mod = .{ .alt = true } }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = 'c', .mod = .{ .alt = true, .ctrl = true } }));
|
||||||
|
}
|
||||||
|
|
||||||
|
test "isAscii with non-ascii character" {
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = Escape }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = Enter }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = Enter, .mod = .{ .alt = true } }));
|
||||||
|
}
|
||||||
|
|
||||||
|
test "isAscii with excluded input.Delete" {
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = Delete }));
|
||||||
|
try testing.expectEqual(false, isAscii(.{ .cp = Delete, .mod = .{ .alt = false, .ctrl = false } }));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// TODO: std.ascii has the escape codes too!
|
||||||
|
// codepoints for keys
|
||||||
|
pub const Tab: u21 = 0x09;
|
||||||
|
pub const Enter: u21 = 0x0D;
|
||||||
|
pub const Escape: u21 = 0x1B;
|
||||||
|
pub const Space: u21 = 0x20;
|
||||||
|
pub const Backspace: u21 = 0x7F;
|
||||||
|
|
||||||
|
// kitty key encodings (re-used here)
|
||||||
|
pub const Insert: u21 = 57348;
|
||||||
|
pub const Delete: u21 = 57349;
|
||||||
|
pub const Left: u21 = 57350;
|
||||||
|
pub const Right: u21 = 57351;
|
||||||
|
pub const Up: u21 = 57352;
|
||||||
|
pub const Down: u21 = 57353;
|
||||||
|
pub const PageUp: u21 = 57354;
|
||||||
|
pub const PageDown: u21 = 57355;
|
||||||
|
pub const Home: u21 = 57356;
|
||||||
|
pub const End: u21 = 57357;
|
||||||
|
pub const CapsLock: u21 = 57358;
|
||||||
|
pub const ScrollLock: u21 = 57359;
|
||||||
|
pub const NumLock: u21 = 57360;
|
||||||
|
pub const PrintScreen: u21 = 57361;
|
||||||
|
pub const Pause: u21 = 57362;
|
||||||
|
pub const Menu: u21 = 57363;
|
||||||
|
pub const F1: u21 = 57364;
|
||||||
|
pub const F2: u21 = 57365;
|
||||||
|
pub const F3: u21 = 57366;
|
||||||
|
pub const F4: u21 = 57367;
|
||||||
|
pub const F5: u21 = 57368;
|
||||||
|
pub const F6: u21 = 57369;
|
||||||
|
pub const F7: u21 = 57370;
|
||||||
|
pub const F8: u21 = 57371;
|
||||||
|
pub const F9: u21 = 57372;
|
||||||
|
pub const F10: u21 = 57373;
|
||||||
|
pub const F11: u21 = 57374;
|
||||||
|
pub const F12: u21 = 57375;
|
||||||
|
pub const F13: u21 = 57376;
|
||||||
|
pub const F14: u21 = 57377;
|
||||||
|
pub const F15: u21 = 57378;
|
||||||
|
pub const F16: u21 = 57379;
|
||||||
|
pub const F17: u21 = 57380;
|
||||||
|
pub const F18: u21 = 57381;
|
||||||
|
pub const F19: u21 = 57382;
|
||||||
|
pub const F20: u21 = 57383;
|
||||||
|
pub const Kp0: u21 = 57399;
|
||||||
|
pub const Kp1: u21 = 57400;
|
||||||
|
pub const Kp2: u21 = 57401;
|
||||||
|
pub const Kp3: u21 = 57402;
|
||||||
|
pub const Kp4: u21 = 57403;
|
||||||
|
pub const Kp5: u21 = 57404;
|
||||||
|
pub const Kp6: u21 = 57405;
|
||||||
|
pub const Kp7: u21 = 57406;
|
||||||
|
pub const Kp8: u21 = 57407;
|
||||||
|
pub const Kp9: u21 = 57408;
|
||||||
|
pub const KpDecimal: u21 = 57409;
|
||||||
|
pub const KpDivide: u21 = 57410;
|
||||||
|
pub const KpMultiply: u21 = 57411;
|
||||||
|
pub const KpSubtract: u21 = 57412;
|
||||||
|
pub const KpAdd: u21 = 57413;
|
||||||
|
pub const KpEnter: u21 = 57414;
|
||||||
|
pub const KpEqual: u21 = 57415;
|
||||||
|
pub const KpSeparator: u21 = 57416;
|
||||||
|
pub const KpLeft: u21 = 57417;
|
||||||
|
pub const KpRight: u21 = 57418;
|
||||||
|
pub const KpUp: u21 = 57419;
|
||||||
|
pub const KpDown: u21 = 57420;
|
||||||
|
pub const KpPageUp: u21 = 57421;
|
||||||
|
pub const KpPageDown: u21 = 57422;
|
||||||
|
pub const KpHome: u21 = 57423;
|
||||||
|
pub const KpEnd: u21 = 57424;
|
||||||
|
pub const KpInsert: u21 = 57425;
|
||||||
|
pub const KpDelete: u21 = 57426;
|
||||||
|
pub const KpBegin: u21 = 57427;
|
||||||
|
pub const MediaPlay: u21 = 57428;
|
||||||
|
pub const MediaPause: u21 = 57429;
|
||||||
|
pub const MediaPlayPause: u21 = 57430;
|
||||||
|
pub const MediaReverse: u21 = 57431;
|
||||||
|
pub const MediaStop: u21 = 57432;
|
||||||
|
pub const MediaFastForward: u21 = 57433;
|
||||||
|
pub const MediaRewind: u21 = 57434;
|
||||||
|
pub const MediaTrackNext: u21 = 57435;
|
||||||
|
pub const MediaTrackPrevious: u21 = 57436;
|
||||||
|
pub const MediaRecord: u21 = 57437;
|
||||||
|
pub const LowerVolume: u21 = 57438;
|
||||||
|
pub const RaiseVolume: u21 = 57439;
|
||||||
|
pub const MuteVolume: u21 = 57440;
|
||||||
|
pub const LeftShift: u21 = 57441;
|
||||||
|
pub const LeftControl: u21 = 57442;
|
||||||
|
pub const LeftAlt: u21 = 57443;
|
||||||
|
pub const LeftSuper: u21 = 57444;
|
||||||
|
pub const LeftHyper: u21 = 57445;
|
||||||
|
pub const LeftMeta: u21 = 57446;
|
||||||
|
pub const RightShift: u21 = 57447;
|
||||||
|
pub const RightControl: u21 = 57448;
|
||||||
|
pub const RightAlt: u21 = 57449;
|
||||||
|
pub const RightSuper: u21 = 57450;
|
||||||
|
pub const RightHyper: u21 = 57451;
|
||||||
|
pub const RightMeta: u21 = 57452;
|
||||||
|
pub const IsoLevel3Shift: u21 = 57453;
|
||||||
|
pub const IsoLevel5Shift: u21 = 57454;
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const meta = std.meta;
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
|
const testing = std.testing;
|
||||||
-151
@@ -1,151 +0,0 @@
|
|||||||
//! Keybindings and Modifiers for user input detection and selection.
|
|
||||||
const std = @import("std");
|
|
||||||
|
|
||||||
pub const Key = @This();
|
|
||||||
|
|
||||||
pub const Modifier = struct {
|
|
||||||
shift: bool = false,
|
|
||||||
alt: bool = false,
|
|
||||||
ctrl: bool = false,
|
|
||||||
};
|
|
||||||
|
|
||||||
cp: u21,
|
|
||||||
mod: Modifier = .{},
|
|
||||||
|
|
||||||
/// Compare _this_ `Key` with an _other_ `Key`.
|
|
||||||
///
|
|
||||||
/// # Example
|
|
||||||
///
|
|
||||||
/// Configure `ctrl+c` to quit the application (done in main event loop of the application):
|
|
||||||
///
|
|
||||||
/// ```zig
|
|
||||||
/// switch (event) {
|
|
||||||
/// .quit => break,
|
|
||||||
/// .key => |key| {
|
|
||||||
/// // ctrl+c to quit
|
|
||||||
/// if (terminal.Key.matches(key, .{ .cp = 'c', .mod = .{ .ctrl = true } })) {
|
|
||||||
/// app.quit.set();
|
|
||||||
/// }
|
|
||||||
/// },
|
|
||||||
/// else => {},
|
|
||||||
/// }
|
|
||||||
/// ```
|
|
||||||
pub fn matches(this: @This(), other: @This()) bool {
|
|
||||||
return std.meta.eql(this, other);
|
|
||||||
}
|
|
||||||
|
|
||||||
// codepoints for keys
|
|
||||||
pub const tab: u21 = 0x09;
|
|
||||||
pub const enter: u21 = 0x0D;
|
|
||||||
pub const escape: u21 = 0x1B;
|
|
||||||
pub const space: u21 = 0x20;
|
|
||||||
pub const backspace: u21 = 0x7F;
|
|
||||||
|
|
||||||
// kitty key encodings (re-used here)
|
|
||||||
pub const insert: u21 = 57348;
|
|
||||||
pub const delete: u21 = 57349;
|
|
||||||
pub const left: u21 = 57350;
|
|
||||||
pub const right: u21 = 57351;
|
|
||||||
pub const up: u21 = 57352;
|
|
||||||
pub const down: u21 = 57353;
|
|
||||||
pub const page_up: u21 = 57354;
|
|
||||||
pub const page_down: u21 = 57355;
|
|
||||||
pub const home: u21 = 57356;
|
|
||||||
pub const end: u21 = 57357;
|
|
||||||
pub const caps_lock: u21 = 57358;
|
|
||||||
pub const scroll_lock: u21 = 57359;
|
|
||||||
pub const num_lock: u21 = 57360;
|
|
||||||
pub const print_screen: u21 = 57361;
|
|
||||||
pub const pause: u21 = 57362;
|
|
||||||
pub const menu: u21 = 57363;
|
|
||||||
pub const f1: u21 = 57364;
|
|
||||||
pub const f2: u21 = 57365;
|
|
||||||
pub const f3: u21 = 57366;
|
|
||||||
pub const f4: u21 = 57367;
|
|
||||||
pub const f5: u21 = 57368;
|
|
||||||
pub const f6: u21 = 57369;
|
|
||||||
pub const f7: u21 = 57370;
|
|
||||||
pub const f8: u21 = 57371;
|
|
||||||
pub const f9: u21 = 57372;
|
|
||||||
pub const f10: u21 = 57373;
|
|
||||||
pub const f11: u21 = 57374;
|
|
||||||
pub const f12: u21 = 57375;
|
|
||||||
pub const f13: u21 = 57376;
|
|
||||||
pub const f14: u21 = 57377;
|
|
||||||
pub const f15: u21 = 57378;
|
|
||||||
pub const @"f16": u21 = 57379;
|
|
||||||
pub const f17: u21 = 57380;
|
|
||||||
pub const f18: u21 = 57381;
|
|
||||||
pub const f19: u21 = 57382;
|
|
||||||
pub const f20: u21 = 57383;
|
|
||||||
pub const f21: u21 = 57384;
|
|
||||||
pub const f22: u21 = 57385;
|
|
||||||
pub const f23: u21 = 57386;
|
|
||||||
pub const f24: u21 = 57387;
|
|
||||||
pub const f25: u21 = 57388;
|
|
||||||
pub const f26: u21 = 57389;
|
|
||||||
pub const f27: u21 = 57390;
|
|
||||||
pub const f28: u21 = 57391;
|
|
||||||
pub const f29: u21 = 57392;
|
|
||||||
pub const f30: u21 = 57393;
|
|
||||||
pub const f31: u21 = 57394;
|
|
||||||
pub const @"f32": u21 = 57395;
|
|
||||||
pub const f33: u21 = 57396;
|
|
||||||
pub const f34: u21 = 57397;
|
|
||||||
pub const f35: u21 = 57398;
|
|
||||||
pub const kp_0: u21 = 57399;
|
|
||||||
pub const kp_1: u21 = 57400;
|
|
||||||
pub const kp_2: u21 = 57401;
|
|
||||||
pub const kp_3: u21 = 57402;
|
|
||||||
pub const kp_4: u21 = 57403;
|
|
||||||
pub const kp_5: u21 = 57404;
|
|
||||||
pub const kp_6: u21 = 57405;
|
|
||||||
pub const kp_7: u21 = 57406;
|
|
||||||
pub const kp_8: u21 = 57407;
|
|
||||||
pub const kp_9: u21 = 57408;
|
|
||||||
pub const kp_decimal: u21 = 57409;
|
|
||||||
pub const kp_divide: u21 = 57410;
|
|
||||||
pub const kp_multiply: u21 = 57411;
|
|
||||||
pub const kp_subtract: u21 = 57412;
|
|
||||||
pub const kp_add: u21 = 57413;
|
|
||||||
pub const kp_enter: u21 = 57414;
|
|
||||||
pub const kp_equal: u21 = 57415;
|
|
||||||
pub const kp_separator: u21 = 57416;
|
|
||||||
pub const kp_left: u21 = 57417;
|
|
||||||
pub const kp_right: u21 = 57418;
|
|
||||||
pub const kp_up: u21 = 57419;
|
|
||||||
pub const kp_down: u21 = 57420;
|
|
||||||
pub const kp_page_up: u21 = 57421;
|
|
||||||
pub const kp_page_down: u21 = 57422;
|
|
||||||
pub const kp_home: u21 = 57423;
|
|
||||||
pub const kp_end: u21 = 57424;
|
|
||||||
pub const kp_insert: u21 = 57425;
|
|
||||||
pub const kp_delete: u21 = 57426;
|
|
||||||
pub const kp_begin: u21 = 57427;
|
|
||||||
pub const media_play: u21 = 57428;
|
|
||||||
pub const media_pause: u21 = 57429;
|
|
||||||
pub const media_play_pause: u21 = 57430;
|
|
||||||
pub const media_reverse: u21 = 57431;
|
|
||||||
pub const media_stop: u21 = 57432;
|
|
||||||
pub const media_fast_forward: u21 = 57433;
|
|
||||||
pub const media_rewind: u21 = 57434;
|
|
||||||
pub const media_track_next: u21 = 57435;
|
|
||||||
pub const media_track_previous: u21 = 57436;
|
|
||||||
pub const media_record: u21 = 57437;
|
|
||||||
pub const lower_volume: u21 = 57438;
|
|
||||||
pub const raise_volume: u21 = 57439;
|
|
||||||
pub const mute_volume: u21 = 57440;
|
|
||||||
pub const left_shift: u21 = 57441;
|
|
||||||
pub const left_control: u21 = 57442;
|
|
||||||
pub const left_alt: u21 = 57443;
|
|
||||||
pub const left_super: u21 = 57444;
|
|
||||||
pub const left_hyper: u21 = 57445;
|
|
||||||
pub const left_meta: u21 = 57446;
|
|
||||||
pub const right_shift: u21 = 57447;
|
|
||||||
pub const right_control: u21 = 57448;
|
|
||||||
pub const right_alt: u21 = 57449;
|
|
||||||
pub const right_super: u21 = 57450;
|
|
||||||
pub const right_hyper: u21 = 57451;
|
|
||||||
pub const right_meta: u21 = 57452;
|
|
||||||
pub const iso_level_3_shift: u21 = 57453;
|
|
||||||
pub const iso_level_5_shift: u21 = 57454;
|
|
||||||
-171
@@ -1,171 +0,0 @@
|
|||||||
const std = @import("std");
|
|
||||||
const zterm = @import("zterm");
|
|
||||||
|
|
||||||
const App = zterm.App(union(enum) {});
|
|
||||||
const Key = zterm.Key;
|
|
||||||
|
|
||||||
const log = std.log.scoped(.default);
|
|
||||||
|
|
||||||
pub const HelloWorldText = packed struct {
|
|
||||||
const text = "Hello World";
|
|
||||||
|
|
||||||
text_color: zterm.Color = .black,
|
|
||||||
|
|
||||||
// example function to create the interface instance for this `Element` implementation
|
|
||||||
pub fn element(this: *@This()) App.Element {
|
|
||||||
return .{
|
|
||||||
.ptr = this,
|
|
||||||
.vtable = &.{
|
|
||||||
.handle = handle,
|
|
||||||
.content = content,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// example function to render contents for a `Container`
|
|
||||||
fn content(ctx: *anyopaque, cells: []zterm.Cell, size: zterm.Size) !void {
|
|
||||||
const this: *@This() = @ptrCast(@alignCast(ctx));
|
|
||||||
std.debug.assert(cells.len == @as(usize, size.cols) * @as(usize, size.rows));
|
|
||||||
|
|
||||||
// NOTE: error should only be returned here in case an in-recoverable exception has occurred
|
|
||||||
const row = size.rows / 2;
|
|
||||||
const col = size.cols / 2 -| (text.len / 2);
|
|
||||||
|
|
||||||
for (0.., text) |idx, char| {
|
|
||||||
cells[(row * size.cols) + col + idx].style.fg = this.text_color;
|
|
||||||
cells[(row * size.cols) + col + idx].cp = char;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// example function to handle events for a `Container`
|
|
||||||
fn handle(ctx: *anyopaque, event: App.Event) !void {
|
|
||||||
const this: *@This() = @ptrCast(@alignCast(ctx));
|
|
||||||
switch (event) {
|
|
||||||
.init => log.debug(".init event", .{}),
|
|
||||||
.key => |key| {
|
|
||||||
if (key.matches(.{ .cp = zterm.Key.space })) {
|
|
||||||
var next_color_idx = @intFromEnum(this.text_color);
|
|
||||||
next_color_idx += 1;
|
|
||||||
next_color_idx %= 17; // iterate over the first 16 colors (but exclude `.default` == 0)
|
|
||||||
if (next_color_idx == 0) next_color_idx += 1;
|
|
||||||
this.text_color = @enumFromInt(next_color_idx);
|
|
||||||
log.debug("Next color: {s}", .{@tagName(this.text_color)});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
else => {},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
pub fn main() !void {
|
|
||||||
errdefer |err| log.err("Application Error: {any}", .{err});
|
|
||||||
|
|
||||||
// TODO: maybe create own allocator as some sort of arena allocator to have consistent memory usage
|
|
||||||
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
|
|
||||||
defer {
|
|
||||||
const deinit_status = gpa.deinit();
|
|
||||||
if (deinit_status == .leak) {
|
|
||||||
log.err("memory leak", .{});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const allocator = gpa.allocator();
|
|
||||||
|
|
||||||
var app: App = .init;
|
|
||||||
var renderer = zterm.Renderer.Buffered.init(allocator);
|
|
||||||
defer renderer.deinit();
|
|
||||||
|
|
||||||
var element_wrapper: HelloWorldText = .{};
|
|
||||||
const element = element_wrapper.element();
|
|
||||||
|
|
||||||
var container = try App.Container.init(allocator, .{
|
|
||||||
.border = .{
|
|
||||||
.separator = .{
|
|
||||||
.enabled = true,
|
|
||||||
.line = .double,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.layout = .{
|
|
||||||
.gap = 2,
|
|
||||||
.padding = .all(5),
|
|
||||||
.direction = .vertical,
|
|
||||||
},
|
|
||||||
}, .{});
|
|
||||||
var box = try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .blue },
|
|
||||||
.layout = .{
|
|
||||||
.gap = 1,
|
|
||||||
.direction = .vertical,
|
|
||||||
.padding = .vertical(1),
|
|
||||||
},
|
|
||||||
}, .{});
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, .{}));
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, element));
|
|
||||||
try box.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .light_green },
|
|
||||||
}, .{}));
|
|
||||||
try container.append(box);
|
|
||||||
try container.append(try App.Container.init(allocator, .{
|
|
||||||
.border = .{
|
|
||||||
.color = .light_blue,
|
|
||||||
.sides = .vertical,
|
|
||||||
},
|
|
||||||
}, .{}));
|
|
||||||
try container.append(try App.Container.init(allocator, .{
|
|
||||||
.rectangle = .{ .fill = .blue },
|
|
||||||
}, .{}));
|
|
||||||
defer container.deinit(); // also de-initializes the children
|
|
||||||
|
|
||||||
try app.start();
|
|
||||||
defer app.stop() catch |err| log.err("Failed to stop application: {any}", .{err});
|
|
||||||
|
|
||||||
// event loop
|
|
||||||
while (true) {
|
|
||||||
const event = app.nextEvent();
|
|
||||||
log.debug("received event: {s}", .{@tagName(event)});
|
|
||||||
|
|
||||||
switch (event) {
|
|
||||||
.init => {
|
|
||||||
try container.handle(event);
|
|
||||||
continue; // do not render
|
|
||||||
},
|
|
||||||
.quit => break,
|
|
||||||
.resize => |size| try renderer.resize(size),
|
|
||||||
.key => |key| {
|
|
||||||
if (key.matches(.{ .cp = 'q' })) app.quit();
|
|
||||||
|
|
||||||
// corresponding element could even be changed from the 'outside' (not forced through the event system)
|
|
||||||
// event system however allows for cross element communication (i.e. broadcasting messages, etc.)
|
|
||||||
if (key.matches(.{ .cp = zterm.Key.escape })) element_wrapper.text_color = .black;
|
|
||||||
|
|
||||||
if (key.matches(.{ .cp = 'n', .mod = .{ .ctrl = true } })) {
|
|
||||||
try app.interrupt();
|
|
||||||
defer app.start() catch @panic("could not start app event loop");
|
|
||||||
var child = std.process.Child.init(&.{"hx"}, allocator);
|
|
||||||
_ = child.spawnAndWait() catch |err| app.postEvent(.{
|
|
||||||
.err = .{
|
|
||||||
.err = err,
|
|
||||||
.msg = "Spawning $EDITOR failed",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// NOTE: errors could be displayed in another container in case one was received, etc. to provide the user with feedback
|
|
||||||
.err => |err| log.err("Received {s} with message: {s}", .{ @errorName(err.err), err.msg }),
|
|
||||||
else => {},
|
|
||||||
}
|
|
||||||
|
|
||||||
// NOTE: returned errors should be propagated back to the application
|
|
||||||
container.handle(event) catch |err| app.postEvent(.{
|
|
||||||
.err = .{
|
|
||||||
.err = err,
|
|
||||||
.msg = "Container Event handling failed",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
try renderer.render(@TypeOf(container), &container);
|
|
||||||
try renderer.flush();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
pub const Point = packed struct {
|
||||||
|
x: u16 = 0,
|
||||||
|
y: u16 = 0,
|
||||||
|
|
||||||
|
pub fn add(a: @This(), b: @This()) @This() {
|
||||||
|
return .{
|
||||||
|
.x = a.x + b.x,
|
||||||
|
.y = a.y + b.y,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn max(a: @This(), b: @This()) @This() {
|
||||||
|
return .{
|
||||||
|
.x = @max(a.x, b.x),
|
||||||
|
.y = @max(a.y, b.y),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
test "adding" {
|
||||||
|
const testing = @import("std").testing;
|
||||||
|
|
||||||
|
const a: @This() = .{
|
||||||
|
.x = 10,
|
||||||
|
.y = 20,
|
||||||
|
};
|
||||||
|
|
||||||
|
const b: @This() = .{
|
||||||
|
.x = 20,
|
||||||
|
.y = 10,
|
||||||
|
};
|
||||||
|
|
||||||
|
try testing.expectEqual(@This(){
|
||||||
|
.x = 30,
|
||||||
|
.y = 30,
|
||||||
|
}, a.add(b));
|
||||||
|
}
|
||||||
|
|
||||||
|
test "maximum" {
|
||||||
|
const testing = @import("std").testing;
|
||||||
|
|
||||||
|
const a: @This() = .{
|
||||||
|
.x = 10,
|
||||||
|
.y = 20,
|
||||||
|
};
|
||||||
|
|
||||||
|
const b: @This() = .{
|
||||||
|
.x = 20,
|
||||||
|
.y = 10,
|
||||||
|
};
|
||||||
|
|
||||||
|
try testing.expectEqual(@This(){
|
||||||
|
.x = 20,
|
||||||
|
.y = 20,
|
||||||
|
}, a.max(b));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
test {
|
||||||
|
_ = Point;
|
||||||
|
}
|
||||||
Whitespace-only changes.
+30
-12
@@ -1,9 +1,7 @@
|
|||||||
// taken from https://github.com/rockorager/libvaxis/blob/main/src/queue.zig (MIT-License)
|
// taken from https://github.com/rockorager/libvaxis/blob/main/src/queue.zig (MIT-License)
|
||||||
// with slight modifications
|
// with slight modifications
|
||||||
const std = @import("std");
|
|
||||||
const assert = std.debug.assert;
|
|
||||||
|
|
||||||
/// Thread safe. Fixed size. Blocking push and pop.
|
/// Queue implementation. Thread safe. Fixed size. Blocking push and pop. Polling through tryPop and tryPush.
|
||||||
pub fn Queue(comptime T: type, comptime size: usize) type {
|
pub fn Queue(comptime T: type, comptime size: usize) type {
|
||||||
return struct {
|
return struct {
|
||||||
buf: [size]T = undefined,
|
buf: [size]T = undefined,
|
||||||
@@ -92,6 +90,23 @@ pub fn Queue(comptime T: type, comptime size: usize) type {
|
|||||||
assert(!this.isEmptyLH());
|
assert(!this.isEmptyLH());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn lock(this: *QueueType) void {
|
||||||
|
this.mutex.lock();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn unlock(this: *QueueType) void {
|
||||||
|
this.mutex.unlock();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Used to efficiently drain the queue
|
||||||
|
pub fn drain(this: *QueueType) ?T {
|
||||||
|
if (this.isEmptyLH()) return null;
|
||||||
|
|
||||||
|
const result = this.buf[this.mask(this.read_index)];
|
||||||
|
this.read_index = this.mask2(this.read_index + 1);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
fn isEmptyLH(this: QueueType) bool {
|
fn isEmptyLH(this: QueueType) bool {
|
||||||
return this.write_index == this.read_index;
|
return this.write_index == this.read_index;
|
||||||
}
|
}
|
||||||
@@ -116,7 +131,7 @@ pub fn Queue(comptime T: type, comptime size: usize) type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the length
|
/// Returns the length
|
||||||
fn len(this: QueueType) usize {
|
pub fn len(this: QueueType) usize {
|
||||||
const wrap_offset = 2 * this.buf.len *
|
const wrap_offset = 2 * this.buf.len *
|
||||||
@intFromBool(this.write_index < this.read_index);
|
@intFromBool(this.write_index < this.read_index);
|
||||||
const adjusted_write_index = this.write_index + wrap_offset;
|
const adjusted_write_index = this.write_index + wrap_offset;
|
||||||
@@ -135,8 +150,12 @@ pub fn Queue(comptime T: type, comptime size: usize) type {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
const testing = std.testing;
|
const testing = std.testing;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const Thread = std.Thread;
|
||||||
const cfg = Thread.SpawnConfig{ .allocator = testing.allocator };
|
const cfg = Thread.SpawnConfig{ .allocator = testing.allocator };
|
||||||
|
|
||||||
test "Queue: simple push / pop" {
|
test "Queue: simple push / pop" {
|
||||||
var queue: Queue(u8, 16) = .{};
|
var queue: Queue(u8, 16) = .{};
|
||||||
queue.push(1);
|
queue.push(1);
|
||||||
@@ -146,7 +165,6 @@ test "Queue: simple push / pop" {
|
|||||||
try testing.expectEqual(2, queue.pop());
|
try testing.expectEqual(2, queue.pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
const Thread = std.Thread;
|
|
||||||
fn testPushPop(q: *Queue(u8, 2)) !void {
|
fn testPushPop(q: *Queue(u8, 2)) !void {
|
||||||
q.push(3);
|
q.push(3);
|
||||||
try testing.expectEqual(2, q.pop());
|
try testing.expectEqual(2, q.pop());
|
||||||
@@ -199,7 +217,7 @@ fn sleepyPop(q: *Queue(u8, 2)) !void {
|
|||||||
try Thread.yield();
|
try Thread.yield();
|
||||||
std.time.sleep(std.time.ns_per_s);
|
std.time.sleep(std.time.ns_per_s);
|
||||||
// Finally, let that other thread go.
|
// Finally, let that other thread go.
|
||||||
try std.testing.expectEqual(1, q.pop());
|
try testing.expectEqual(1, q.pop());
|
||||||
|
|
||||||
// This won't continue until the other thread has had a chance to
|
// This won't continue until the other thread has had a chance to
|
||||||
// put at least one item in the queue.
|
// put at least one item in the queue.
|
||||||
@@ -218,7 +236,7 @@ fn sleepyPop(q: *Queue(u8, 2)) !void {
|
|||||||
std.time.sleep(std.time.ns_per_s / 2);
|
std.time.sleep(std.time.ns_per_s / 2);
|
||||||
|
|
||||||
// Pop that thing and we're done.
|
// Pop that thing and we're done.
|
||||||
try std.testing.expectEqual(2, q.pop());
|
try testing.expectEqual(2, q.pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
test "Fill, block, fill, block" {
|
test "Fill, block, fill, block" {
|
||||||
@@ -238,15 +256,15 @@ test "Fill, block, fill, block" {
|
|||||||
|
|
||||||
// Just to make sure the sleeps are yielding to this thread, make
|
// Just to make sure the sleeps are yielding to this thread, make
|
||||||
// sure it took at least 900ms to do the push.
|
// sure it took at least 900ms to do the push.
|
||||||
try std.testing.expect(then - now > 900);
|
try testing.expect(then - now > 900);
|
||||||
|
|
||||||
// This should block again, waiting for the other thread.
|
// This should block again, waiting for the other thread.
|
||||||
queue.push(4);
|
queue.push(4);
|
||||||
|
|
||||||
// And once that push has gone through, the other thread's done.
|
// And once that push has gone through, the other thread's done.
|
||||||
thread.join();
|
thread.join();
|
||||||
try std.testing.expectEqual(3, queue.pop());
|
try testing.expectEqual(3, queue.pop());
|
||||||
try std.testing.expectEqual(4, queue.pop());
|
try testing.expectEqual(4, queue.pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sleepyPush(q: *Queue(u8, 1)) !void {
|
fn sleepyPush(q: *Queue(u8, 1)) !void {
|
||||||
@@ -284,8 +302,8 @@ test "Drain, block, drain, block" {
|
|||||||
|
|
||||||
var queue: Queue(u8, 1) = .{};
|
var queue: Queue(u8, 1) = .{};
|
||||||
const thread = try Thread.spawn(cfg, sleepyPush, .{&queue});
|
const thread = try Thread.spawn(cfg, sleepyPush, .{&queue});
|
||||||
try std.testing.expectEqual(1, queue.pop());
|
try testing.expectEqual(1, queue.pop());
|
||||||
try std.testing.expectEqual(2, queue.pop());
|
try testing.expectEqual(2, queue.pop());
|
||||||
thread.join();
|
thread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+55
-39
@@ -1,21 +1,14 @@
|
|||||||
const std = @import("std");
|
//! Renderer for `zterm`.
|
||||||
const terminal = @import("terminal.zig");
|
|
||||||
|
|
||||||
const Cell = @import("cell.zig");
|
|
||||||
const Position = @import("size.zig").Position;
|
|
||||||
const Size = @import("size.zig").Size;
|
|
||||||
|
|
||||||
/// Double-buffered intermediate rendering pipeline
|
/// Double-buffered intermediate rendering pipeline
|
||||||
pub const Buffered = struct {
|
pub const Buffered = struct {
|
||||||
const log = std.log.scoped(.renderer_buffered);
|
allocator: Allocator,
|
||||||
// _ = log;
|
|
||||||
allocator: std.mem.Allocator,
|
|
||||||
created: bool,
|
created: bool,
|
||||||
size: Size,
|
size: Point,
|
||||||
screen: []Cell,
|
screen: []Cell,
|
||||||
virtual_screen: []Cell,
|
virtual_screen: []Cell,
|
||||||
|
|
||||||
pub fn init(allocator: std.mem.Allocator) @This() {
|
pub fn init(allocator: Allocator) @This() {
|
||||||
return .{
|
return .{
|
||||||
.allocator = allocator,
|
.allocator = allocator,
|
||||||
.created = false,
|
.created = false,
|
||||||
@@ -32,84 +25,107 @@ pub const Buffered = struct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resize(this: *@This(), size: Size) !void {
|
pub fn resize(this: *@This()) !Point {
|
||||||
log.debug("renderer::resize", .{});
|
const size = terminal.getTerminalSize();
|
||||||
defer this.size = size;
|
if (meta.eql(this.size, size)) return this.size;
|
||||||
|
|
||||||
|
this.size = size;
|
||||||
|
const n = @as(usize, this.size.x) * @as(usize, this.size.y);
|
||||||
|
|
||||||
if (!this.created) {
|
if (!this.created) {
|
||||||
this.screen = this.allocator.alloc(Cell, @as(usize, size.cols) * @as(usize, size.rows)) catch @panic("render.zig: Out of memory.");
|
this.screen = this.allocator.alloc(Cell, n) catch @panic("render.zig: Out of memory.");
|
||||||
@memset(this.screen, .{});
|
|
||||||
this.virtual_screen = this.allocator.alloc(Cell, @as(usize, size.cols) * @as(usize, size.rows)) catch @panic("render.zig: Out of memory.");
|
this.virtual_screen = this.allocator.alloc(Cell, n) catch @panic("render.zig: Out of memory.");
|
||||||
@memset(this.virtual_screen, .{});
|
@memset(this.virtual_screen, .{});
|
||||||
|
|
||||||
this.created = true;
|
this.created = true;
|
||||||
} else {
|
} else {
|
||||||
this.allocator.free(this.screen);
|
this.allocator.free(this.screen);
|
||||||
this.screen = this.allocator.alloc(Cell, @as(usize, size.cols) * @as(usize, size.rows)) catch @panic("render.zig: Out of memory.");
|
this.screen = this.allocator.alloc(Cell, n) catch @panic("render.zig: Out of memory.");
|
||||||
@memset(this.screen, .{});
|
|
||||||
this.allocator.free(this.virtual_screen);
|
this.allocator.free(this.virtual_screen);
|
||||||
this.virtual_screen = this.allocator.alloc(Cell, @as(usize, size.cols) * @as(usize, size.rows)) catch @panic("render.zig: Out of memory.");
|
this.virtual_screen = this.allocator.alloc(Cell, n) catch @panic("render.zig: Out of memory.");
|
||||||
@memset(this.virtual_screen, .{});
|
@memset(this.virtual_screen, .{});
|
||||||
}
|
}
|
||||||
try this.clear();
|
try this.clear();
|
||||||
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Clear the entire screen and reset the screen buffer, to force a re-draw with the next `flush` call.
|
/// Clear the entire screen and reset the screen buffer, to force a re-draw with the next `flush` call.
|
||||||
pub fn clear(this: *@This()) !void {
|
pub fn clear(this: *@This()) !void {
|
||||||
log.debug("renderer::clear", .{});
|
|
||||||
try terminal.clearScreen();
|
try terminal.clearScreen();
|
||||||
@memset(this.screen, .{});
|
@memset(this.screen, .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Render provided cells at size (anchor and dimension) into the *virtual screen*.
|
/// Render provided cells at size (anchor and dimension) into the *virtual screen*.
|
||||||
pub fn render(this: *@This(), comptime T: type, container: *T) !void {
|
pub fn render(this: *@This(), comptime T: type, container: *T) !void {
|
||||||
const size: Size = container.size;
|
const size: Point = container.size;
|
||||||
const cells: []const Cell = try container.contents();
|
const origin: Point = container.origin;
|
||||||
|
const cells: []const Cell = try container.content();
|
||||||
|
|
||||||
if (cells.len == 0) return;
|
if (cells.len == 0) return;
|
||||||
|
|
||||||
var idx: usize = 0;
|
var idx: usize = 0;
|
||||||
var vs = this.virtual_screen;
|
var vs = this.virtual_screen;
|
||||||
const anchor: usize = (@as(usize, size.anchor.row) * @as(usize, this.size.cols)) + @as(usize, size.anchor.col);
|
const anchor: usize = (@as(usize, origin.y) * @as(usize, this.size.x)) + @as(usize, origin.x);
|
||||||
|
|
||||||
blk: for (0..size.rows) |row| {
|
blk: for (0..size.y) |row| {
|
||||||
for (0..size.cols) |col| {
|
for (0..size.x) |col| {
|
||||||
const cell = cells[idx];
|
vs[anchor + (row * this.size.x) + col] = cells[idx];
|
||||||
idx += 1;
|
idx += 1;
|
||||||
|
|
||||||
vs[anchor + (row * this.size.cols) + col].style = cell.style;
|
|
||||||
vs[anchor + (row * this.size.cols) + col].cp = cell.cp;
|
|
||||||
|
|
||||||
if (cells.len == idx) break :blk;
|
if (cells.len == idx) break :blk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// free immediately
|
// free immediately
|
||||||
container.allocator.free(cells);
|
container.allocator.free(cells);
|
||||||
|
|
||||||
for (container.elements.items) |*element| {
|
for (container.elements.items) |*element| try this.render(T, element);
|
||||||
try this.render(T, element);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Write *virtual screen* to alternate screen (should be called once and last during each render loop iteration in the main loop).
|
/// Write *virtual screen* to alternate screen (should be called once and last during each render loop iteration in the main loop).
|
||||||
pub fn flush(this: *@This()) !void {
|
pub fn flush(this: *@This()) !void {
|
||||||
// TODO: measure timings of rendered frames?
|
try terminal.hideCursor();
|
||||||
log.debug("renderer::flush", .{});
|
// TODO measure timings of rendered frames?
|
||||||
|
var cursor_position: ?Point = null;
|
||||||
const writer = terminal.writer();
|
const writer = terminal.writer();
|
||||||
const s = this.screen;
|
const s = this.screen;
|
||||||
const vs = this.virtual_screen;
|
const vs = this.virtual_screen;
|
||||||
for (0..this.size.rows) |row| {
|
for (0..this.size.y) |row| {
|
||||||
for (0..this.size.cols) |col| {
|
for (0..this.size.x) |col| {
|
||||||
const idx = (row * this.size.cols) + col;
|
const idx = (row * this.size.x) + col;
|
||||||
const cs = s[idx];
|
const cs = s[idx];
|
||||||
const cvs = vs[idx];
|
const cvs = vs[idx];
|
||||||
|
|
||||||
|
// update the latest found cursor position
|
||||||
|
if (cvs.style.cursor) {
|
||||||
|
assert(cursor_position == null);
|
||||||
|
cursor_position = .{
|
||||||
|
.x = @truncate(col),
|
||||||
|
.y = @truncate(row),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if (cs.eql(cvs)) continue;
|
if (cs.eql(cvs)) continue;
|
||||||
|
|
||||||
// render differences found in virtual screen
|
// render differences found in virtual screen
|
||||||
try terminal.setCursorPosition(.{ .row = @truncate(row + 1), .col = @truncate(col + 1) });
|
try terminal.setCursorPosition(.{ .y = @truncate(row), .x = @truncate(col) });
|
||||||
try cvs.value(writer);
|
try cvs.value(writer);
|
||||||
// update screen to be the virtual screen for the next frame
|
// update screen to be the virtual screen for the next frame
|
||||||
s[idx] = vs[idx];
|
s[idx] = vs[idx];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (cursor_position) |point| {
|
||||||
|
try terminal.showCursor();
|
||||||
|
try terminal.setCursorPosition(point);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const meta = std.meta;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const Allocator = std.mem.Allocator;
|
||||||
|
const terminal = @import("terminal.zig");
|
||||||
|
const Cell = @import("cell.zig");
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
@@ -1,10 +1,14 @@
|
|||||||
// private imports
|
// private imports
|
||||||
const container = @import("container.zig");
|
const container = @import("container.zig");
|
||||||
const color = @import("color.zig");
|
const color = @import("color.zig");
|
||||||
const size = @import("size.zig");
|
const size = @import("point.zig");
|
||||||
|
|
||||||
// public exports
|
// public exports
|
||||||
|
pub const input = @import("input.zig");
|
||||||
|
pub const testing = @import("testing.zig");
|
||||||
|
|
||||||
pub const App = @import("app.zig").App;
|
pub const App = @import("app.zig").App;
|
||||||
|
pub const Error = @import("error.zig").Error;
|
||||||
// App also exports further types once initialized with the user events at compile time:
|
// App also exports further types once initialized with the user events at compile time:
|
||||||
// `App.Container`
|
// `App.Container`
|
||||||
// `App.Element`
|
// `App.Element`
|
||||||
@@ -13,21 +17,23 @@ pub const Renderer = @import("render.zig");
|
|||||||
// Container Configurations
|
// Container Configurations
|
||||||
pub const Border = container.Border;
|
pub const Border = container.Border;
|
||||||
pub const Rectangle = container.Rectangle;
|
pub const Rectangle = container.Rectangle;
|
||||||
pub const Scroll = container.Scroll;
|
|
||||||
pub const Layout = container.Layout;
|
pub const Layout = container.Layout;
|
||||||
|
|
||||||
pub const Cell = @import("cell.zig");
|
pub const Cell = @import("cell.zig");
|
||||||
pub const Color = color.Color;
|
pub const Color = color.Color;
|
||||||
pub const Key = @import("key.zig");
|
pub const Key = input.Key;
|
||||||
pub const Size = size.Size;
|
pub const Mouse = input.Mouse;
|
||||||
|
pub const Point = @import("point.zig").Point;
|
||||||
pub const Style = @import("style.zig");
|
pub const Style = @import("style.zig");
|
||||||
|
|
||||||
test {
|
test {
|
||||||
_ = @import("terminal.zig");
|
_ = @import("terminal.zig");
|
||||||
|
_ = @import("container.zig");
|
||||||
_ = @import("queue.zig");
|
_ = @import("queue.zig");
|
||||||
|
_ = @import("error.zig");
|
||||||
|
_ = @import("point.zig");
|
||||||
|
|
||||||
_ = color;
|
_ = color;
|
||||||
_ = size;
|
|
||||||
|
|
||||||
_ = Cell;
|
_ = Cell;
|
||||||
_ = Key;
|
_ = Key;
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
pub const Size = packed struct {
|
|
||||||
anchor: Position = .{},
|
|
||||||
cols: u16 = 0,
|
|
||||||
rows: u16 = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const Position = packed struct {
|
|
||||||
col: u16 = 0,
|
|
||||||
row: u16 = 0,
|
|
||||||
};
|
|
||||||
+29
-24
@@ -7,11 +7,13 @@
|
|||||||
|
|
||||||
// taken from https://github.com/rockorager/libvaxis/blob/main/src/Cell.zig (MIT-License)
|
// taken from https://github.com/rockorager/libvaxis/blob/main/src/Cell.zig (MIT-License)
|
||||||
// with slight modifications
|
// with slight modifications
|
||||||
const std = @import("std");
|
|
||||||
|
|
||||||
const Color = @import("color.zig").Color;
|
fg: Color = .default,
|
||||||
|
bg: Color = .default,
|
||||||
pub const Style = @This();
|
ul: Color = .default,
|
||||||
|
cursor: bool = false,
|
||||||
|
ul_style: Underline = .off,
|
||||||
|
emphasis: []const Emphasis,
|
||||||
|
|
||||||
pub const Underline = enum {
|
pub const Underline = enum {
|
||||||
off,
|
off,
|
||||||
@@ -22,7 +24,7 @@ pub const Underline = enum {
|
|||||||
dashed,
|
dashed,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Attribute = enum(u8) {
|
pub const Emphasis = enum(u8) {
|
||||||
reset = 0,
|
reset = 0,
|
||||||
bold = 1,
|
bold = 1,
|
||||||
dim,
|
dim,
|
||||||
@@ -34,40 +36,43 @@ pub const Attribute = enum(u8) {
|
|||||||
strikethrough,
|
strikethrough,
|
||||||
};
|
};
|
||||||
|
|
||||||
fg: Color = .white,
|
|
||||||
bg: Color = .default,
|
|
||||||
ul: Color = .default,
|
|
||||||
ul_style: Underline = .off,
|
|
||||||
attributes: []const Attribute,
|
|
||||||
|
|
||||||
pub fn eql(this: Style, other: Style) bool {
|
pub fn eql(this: Style, other: Style) bool {
|
||||||
return std.meta.eql(this, other);
|
return meta.eql(this, other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO might be useful to use the std.ascii stuff!
|
||||||
|
|
||||||
pub fn value(this: Style, writer: anytype, cp: u21) !void {
|
pub fn value(this: Style, writer: anytype, cp: u21) !void {
|
||||||
var buffer: [4]u8 = undefined;
|
var buffer: [4]u8 = undefined;
|
||||||
const bytes = try std.unicode.utf8Encode(cp, &buffer);
|
const bytes = try unicode.utf8Encode(cp, &buffer);
|
||||||
std.debug.assert(bytes > 0);
|
assert(bytes > 0);
|
||||||
// build ansi sequence for 256 colors ...
|
// build ansi sequence for 256 colors ...
|
||||||
// foreground
|
// foreground
|
||||||
try std.fmt.format(writer, "\x1b[", .{});
|
try format(writer, "\x1b[", .{});
|
||||||
try this.fg.write(writer, .fg);
|
try this.fg.write(writer, .fg);
|
||||||
// background
|
// background
|
||||||
try std.fmt.format(writer, ";", .{});
|
try format(writer, ";", .{});
|
||||||
try this.bg.write(writer, .bg);
|
try this.bg.write(writer, .bg);
|
||||||
// underline
|
// underline
|
||||||
// FIX: assert that if the underline property is set that the ul style and the attribute for underlining is available
|
// FIX assert that if the underline property is set that the ul style and the attribute for underlining is available
|
||||||
try std.fmt.format(writer, ";", .{});
|
try format(writer, ";", .{});
|
||||||
try this.ul.write(writer, .ul);
|
try this.ul.write(writer, .ul);
|
||||||
// append styles (aka attributes like bold, italic, strikethrough, etc.)
|
// append styles (aka attributes like bold, italic, strikethrough, etc.)
|
||||||
for (this.attributes) |attribute| {
|
for (this.emphasis) |attribute| try format(writer, ";{d}", .{@intFromEnum(attribute)});
|
||||||
try std.fmt.format(writer, ";{d}", .{@intFromEnum(attribute)});
|
try format(writer, "m", .{});
|
||||||
}
|
|
||||||
try std.fmt.format(writer, "m", .{});
|
|
||||||
// content
|
// content
|
||||||
try std.fmt.format(writer, "{s}", .{buffer});
|
try format(writer, "{s}", .{buffer[0..bytes]});
|
||||||
|
try format(writer, "\x1b[0m", .{});
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement helper functions for terminal capabilities:
|
// TODO implement helper functions for terminal capabilities:
|
||||||
// - links / url display (osc 8)
|
// - links / url display (osc 8)
|
||||||
// - show / hide cursor?
|
// - show / hide cursor?
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const unicode = std.unicode;
|
||||||
|
const meta = std.meta;
|
||||||
|
const assert = std.debug.assert;
|
||||||
|
const format = std.fmt.format;
|
||||||
|
const Color = @import("color.zig").Color;
|
||||||
|
const Style = @This();
|
||||||
+54
-43
@@ -1,13 +1,3 @@
|
|||||||
const std = @import("std");
|
|
||||||
pub const code_point = @import("code_point");
|
|
||||||
|
|
||||||
const Key = @import("key.zig");
|
|
||||||
const Position = @import("size.zig").Position;
|
|
||||||
const Size = @import("size.zig").Size;
|
|
||||||
const Cell = @import("cell.zig");
|
|
||||||
|
|
||||||
const log = std.log.scoped(.terminal);
|
|
||||||
|
|
||||||
// Ref: https://vt100.net/docs/vt510-rm/DECRPM.html
|
// Ref: https://vt100.net/docs/vt510-rm/DECRPM.html
|
||||||
pub const ReportMode = enum {
|
pub const ReportMode = enum {
|
||||||
not_recognized,
|
not_recognized,
|
||||||
@@ -19,54 +9,62 @@ pub const ReportMode = enum {
|
|||||||
|
|
||||||
/// Gets number of rows and columns in the terminal
|
/// Gets number of rows and columns in the terminal
|
||||||
pub fn getTerminalSize() Size {
|
pub fn getTerminalSize() Size {
|
||||||
var ws: std.posix.winsize = undefined;
|
var ws: posix.winsize = undefined;
|
||||||
_ = std.posix.system.ioctl(std.posix.STDIN_FILENO, std.posix.T.IOCGWINSZ, @intFromPtr(&ws));
|
_ = posix.system.ioctl(posix.STDIN_FILENO, posix.T.IOCGWINSZ, @intFromPtr(&ws));
|
||||||
return .{ .cols = ws.col, .rows = ws.row };
|
return .{ .x = ws.col, .y = ws.row };
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn saveScreen() !void {
|
pub fn saveScreen() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?47h");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.save_screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn restoreScreen() !void {
|
pub fn restoreScreen() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?47l");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.restore_screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn enterAltScreen() !void {
|
pub fn enterAltScreen() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049h");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.smcup);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn exitAltScreen() !void {
|
pub fn exitAltScreen() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049l");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.rmcup);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn clearScreen() !void {
|
pub fn clearScreen() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[2J");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.clear_screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn hideCursor() !void {
|
pub fn hideCursor() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?25l");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.hide_cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn showCursor() !void {
|
pub fn showCursor() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?25h");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.show_cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn setCursorPositionHome() !void {
|
pub fn setCursorPositionHome() !void {
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[H");
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.home);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn enableMouseSupport() !void {
|
||||||
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.mouse_set);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn disableMouseSupport() !void {
|
||||||
|
_ = try posix.write(posix.STDIN_FILENO, ctlseqs.mouse_reset);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read(buf: []u8) !usize {
|
pub fn read(buf: []u8) !usize {
|
||||||
return try std.posix.read(std.posix.STDIN_FILENO, buf);
|
return try posix.read(posix.STDIN_FILENO, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write(buf: []const u8) !usize {
|
pub fn write(buf: []const u8) !usize {
|
||||||
return try std.posix.write(std.posix.STDIN_FILENO, buf);
|
return try posix.write(posix.STDIN_FILENO, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn contextWrite(context: @This(), data: []const u8) anyerror!usize {
|
fn contextWrite(context: @This(), data: []const u8) anyerror!usize {
|
||||||
_ = context;
|
_ = context;
|
||||||
return try std.posix.write(std.posix.STDOUT_FILENO, data);
|
return try posix.write(posix.STDOUT_FILENO, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Writer = std.io.Writer(
|
const Writer = std.io.Writer(
|
||||||
@@ -79,21 +77,21 @@ pub fn writer() Writer {
|
|||||||
return .{ .context = .{} };
|
return .{ .context = .{} };
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn setCursorPosition(pos: Position) !void {
|
pub fn setCursorPosition(pos: Point) !void {
|
||||||
var buf: [64]u8 = undefined;
|
var buf: [64]u8 = undefined;
|
||||||
const value = try std.fmt.bufPrint(&buf, "\x1b[{d};{d}H", .{ pos.row, pos.col });
|
const value = try std.fmt.bufPrint(&buf, "\x1b[{d};{d}H", .{ pos.y + 1, pos.x + 1 });
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, value);
|
_ = try posix.write(posix.STDIN_FILENO, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn getCursorPosition() !Size.Position {
|
pub fn getCursorPosition() !Size.Position {
|
||||||
// Needs Raw mode (no wait for \n) to work properly cause
|
// Needs Raw mode (no wait for \n) to work properly cause
|
||||||
// control sequence will not be written without it.
|
// control sequence will not be written without it.
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[6n");
|
_ = try posix.write(posix.STDIN_FILENO, "\x1b[6n");
|
||||||
|
|
||||||
var buf: [64]u8 = undefined;
|
var buf: [64]u8 = undefined;
|
||||||
|
|
||||||
// format: \x1b, "[", R1,..., Rn, ";", C1, ..., Cn, "R"
|
// format: \x1b, "[", R1,..., Rn, ";", C1, ..., Cn, "R"
|
||||||
const len = try std.posix.read(std.posix.STDIN_FILENO, &buf);
|
const len = try posix.read(posix.STDIN_FILENO, &buf);
|
||||||
|
|
||||||
if (!isCursorPosition(buf[0..len])) {
|
if (!isCursorPosition(buf[0..len])) {
|
||||||
return error.InvalidValueReturned;
|
return error.InvalidValueReturned;
|
||||||
@@ -127,8 +125,8 @@ pub fn getCursorPosition() !Size.Position {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return .{
|
return .{
|
||||||
.row = try std.fmt.parseInt(u16, row[0..ridx], 10) - 1,
|
.x = try std.fmt.parseInt(u16, col[0..cidx], 10) - 1,
|
||||||
.col = try std.fmt.parseInt(u16, col[0..cidx], 10) - 1,
|
.y = try std.fmt.parseInt(u16, row[0..ridx], 10) - 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -156,8 +154,8 @@ pub fn isCursorPosition(buf: []u8) bool {
|
|||||||
///
|
///
|
||||||
/// `bak`: pointer to store termios struct backup before
|
/// `bak`: pointer to store termios struct backup before
|
||||||
/// altering, this is used to disable raw mode.
|
/// altering, this is used to disable raw mode.
|
||||||
pub fn enableRawMode(bak: *std.posix.termios) !void {
|
pub fn enableRawMode(bak: *posix.termios) !void {
|
||||||
var termios = try std.posix.tcgetattr(std.posix.STDIN_FILENO);
|
var termios = try posix.tcgetattr(posix.STDIN_FILENO);
|
||||||
bak.* = termios;
|
bak.* = termios;
|
||||||
|
|
||||||
// termios flags used by termios(3)
|
// termios flags used by termios(3)
|
||||||
@@ -182,20 +180,20 @@ pub fn enableRawMode(bak: *std.posix.termios) !void {
|
|||||||
termios.cflag.CSIZE = .CS8;
|
termios.cflag.CSIZE = .CS8;
|
||||||
termios.cflag.PARENB = false;
|
termios.cflag.PARENB = false;
|
||||||
|
|
||||||
termios.cc[@intFromEnum(std.posix.V.MIN)] = 1;
|
termios.cc[@intFromEnum(posix.V.MIN)] = 1;
|
||||||
termios.cc[@intFromEnum(std.posix.V.TIME)] = 0;
|
termios.cc[@intFromEnum(posix.V.TIME)] = 0;
|
||||||
|
|
||||||
try std.posix.tcsetattr(
|
try posix.tcsetattr(
|
||||||
std.posix.STDIN_FILENO,
|
posix.STDIN_FILENO,
|
||||||
.FLUSH,
|
.FLUSH,
|
||||||
termios,
|
termios,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reverts `enableRawMode` to restore initial functionality.
|
/// Reverts `enableRawMode` to restore initial functionality.
|
||||||
pub fn disableRawMode(bak: *std.posix.termios) !void {
|
pub fn disableRawMode(bak: *posix.termios) !void {
|
||||||
try std.posix.tcsetattr(
|
try posix.tcsetattr(
|
||||||
std.posix.STDIN_FILENO,
|
posix.STDIN_FILENO,
|
||||||
.FLUSH,
|
.FLUSH,
|
||||||
bak.*,
|
bak.*,
|
||||||
);
|
);
|
||||||
@@ -205,13 +203,13 @@ pub fn disableRawMode(bak: *std.posix.termios) !void {
|
|||||||
pub fn canSynchornizeOutput() !bool {
|
pub fn canSynchornizeOutput() !bool {
|
||||||
// Needs Raw mode (no wait for \n) to work properly cause
|
// Needs Raw mode (no wait for \n) to work properly cause
|
||||||
// control sequence will not be written without it.
|
// control sequence will not be written without it.
|
||||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?2026$p");
|
_ = try posix.write(posix.STDIN_FILENO, "\x1b[?2026$p");
|
||||||
|
|
||||||
var buf: [64]u8 = undefined;
|
var buf: [64]u8 = undefined;
|
||||||
|
|
||||||
// format: \x1b, "[", "?", "2", "0", "2", "6", ";", n, "$", "y"
|
// format: \x1b, "[", "?", "2", "0", "2", "6", ";", n, "$", "y"
|
||||||
const len = try std.posix.read(std.posix.STDIN_FILENO, &buf);
|
const len = try posix.read(posix.STDIN_FILENO, &buf);
|
||||||
if (!std.mem.eql(u8, buf[0..len], "\x1b[?2026;") or len < 9) {
|
if (!mem.eql(u8, buf[0..len], "\x1b[?2026;") or len < 9) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,3 +226,16 @@ fn getReportMode(ps: u8) ReportMode {
|
|||||||
else => ReportMode.not_recognized,
|
else => ReportMode.not_recognized,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const log = std.log.scoped(.terminal);
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const mem = std.mem;
|
||||||
|
const posix = std.posix;
|
||||||
|
const code_point = @import("code_point");
|
||||||
|
const ctlseqs = @import("ctlseqs.zig");
|
||||||
|
const input = @import("input.zig");
|
||||||
|
const Key = input.Key;
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
|
const Size = @import("point.zig").Point;
|
||||||
|
const Cell = @import("cell.zig");
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.green,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.red,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.reLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.green,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.white,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.blue,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.white,.bg=.black,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.deLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.dLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.white,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.dLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.white,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.white,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.white,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.empLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}}Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}}Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}}Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}}Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.green,.Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.dLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=9484,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9474,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.curLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9488,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.grey,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_sLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=9474,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9474,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=129931,.style=.{.fg=.white,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{.dim}}},.{.cp=9474,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.grey,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.defLine truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.cp=9484,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9472,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9488,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=129931,.style=.{.fg=.white,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=9474,.style=.{.fg=.red,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,.cursor=false,.ul_style=.off,.emphasis=.{}}},.{.cp=32,.style=.{.fg=.default,.bg=.default,.ul=.default,Line truncated
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.{.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9484},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9472},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9488},.{.style=.{.fg=.red,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=9474},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.default,.ul_style=.off,.emphasis=.{}},.cp=32},.{.style=.{.fg=.default,.bg=.default,.ul=.dLine truncated
|
||||||
+199
@@ -0,0 +1,199 @@
|
|||||||
|
//! Testing namespace for `zterm` to provide testing capabilities for `Containers`, `Event` handling, `App`s and `Element` implementations.
|
||||||
|
|
||||||
|
/// Single-buffer test rendering pipeline for testing purposes.
|
||||||
|
pub const Renderer = struct {
|
||||||
|
allocator: Allocator,
|
||||||
|
size: Point,
|
||||||
|
screen: []Cell,
|
||||||
|
|
||||||
|
pub fn init(allocator: Allocator, size: Point) @This() {
|
||||||
|
const screen = allocator.alloc(Cell, @as(usize, size.x) * @as(usize, size.y)) catch @panic("testing.zig: Out of memory.");
|
||||||
|
@memset(screen, .{});
|
||||||
|
|
||||||
|
return .{
|
||||||
|
.allocator = allocator,
|
||||||
|
.size = size,
|
||||||
|
.screen = screen,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn deinit(this: *@This()) void {
|
||||||
|
this.allocator.free(this.screen);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn resize(this: *@This(), size: Point) !void {
|
||||||
|
this.size = size;
|
||||||
|
const n = @as(usize, size.x) * @as(usize, size.y);
|
||||||
|
|
||||||
|
this.allocator.free(this.screen);
|
||||||
|
this.screen = this.allocator.alloc(Cell, n) catch @panic("testing.zig: Out of memory.");
|
||||||
|
@memset(this.screen, .{});
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn clear(this: *@This()) !void {
|
||||||
|
@memset(this.screen, .{});
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn render(this: *@This(), comptime T: type, container: *const T) !void {
|
||||||
|
const size: Point = container.size;
|
||||||
|
const origin: Point = container.origin;
|
||||||
|
const cells: []const Cell = try container.content();
|
||||||
|
|
||||||
|
if (cells.len == 0) return;
|
||||||
|
|
||||||
|
var idx: usize = 0;
|
||||||
|
const anchor = (@as(usize, origin.y) * @as(usize, this.size.x)) + @as(usize, origin.x);
|
||||||
|
|
||||||
|
blk: for (0..size.y) |row| {
|
||||||
|
for (0..size.x) |col| {
|
||||||
|
const cell = cells[idx];
|
||||||
|
idx += 1;
|
||||||
|
|
||||||
|
this.screen[anchor + (row * this.size.x) + col].style = cell.style;
|
||||||
|
this.screen[anchor + (row * this.size.x) + col].cp = cell.cp;
|
||||||
|
|
||||||
|
if (cells.len == idx) break :blk;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// free immediately
|
||||||
|
container.allocator.free(cells);
|
||||||
|
|
||||||
|
for (container.elements.items) |*element| try this.render(T, element);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn save(this: @This(), writer: anytype) !void {
|
||||||
|
try std.zon.stringify.serialize(this.screen, .{ .whitespace = false }, writer);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/// This function is intended to be used only in tests. Test if a `Container`'s
|
||||||
|
/// rendered contents are equal to the expected `Cell` slice.
|
||||||
|
///
|
||||||
|
/// # Test data creation
|
||||||
|
///
|
||||||
|
/// Create a .zon file containing the expected `Cell` slice using the `zterm.testing.Renderer.save` method:
|
||||||
|
///
|
||||||
|
/// ```zig
|
||||||
|
/// const file = try std.fs.cwd().createFile("test/container/border/all.zon", .{ .truncate = true });
|
||||||
|
/// defer file.close();
|
||||||
|
///
|
||||||
|
/// const allocator = std.testing.allocator;
|
||||||
|
/// var renderer: testing.Renderer = .init(allocator, size);
|
||||||
|
/// defer renderer.deinit();
|
||||||
|
///
|
||||||
|
/// try container.handle(.{ .size = size });
|
||||||
|
/// try renderer.render(Container(event.SystemEvent), &container);
|
||||||
|
/// try renderer.save(file.writer());
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// # Testing against created data
|
||||||
|
///
|
||||||
|
/// Then later load that .zon file at compile time and run your test against this `Cell` slice.
|
||||||
|
///
|
||||||
|
/// ```zig
|
||||||
|
/// var container: Container(event.SystemEvent) = try .init(std.testing.allocator, .{
|
||||||
|
/// .border = .{
|
||||||
|
/// .color = .green,
|
||||||
|
/// .sides = .all,
|
||||||
|
/// },
|
||||||
|
/// }, .{});
|
||||||
|
/// defer container.deinit();
|
||||||
|
///
|
||||||
|
/// try testing.expectContainerScreen(.{
|
||||||
|
/// .rows = 20,
|
||||||
|
/// .cols = 30,
|
||||||
|
/// }, &container, @import("test/container/border.all.zon"));
|
||||||
|
/// ```
|
||||||
|
pub fn expectContainerScreen(size: Point, container: *Container(event.SystemEvent), expected: []const Cell) !void {
|
||||||
|
const allocator = testing.allocator;
|
||||||
|
var renderer: Renderer = .init(allocator, size);
|
||||||
|
defer renderer.deinit();
|
||||||
|
|
||||||
|
container.resize(size);
|
||||||
|
container.reposition(.{});
|
||||||
|
try renderer.render(Container(event.SystemEvent), container);
|
||||||
|
|
||||||
|
try expectEqualCells(.{}, renderer.size, expected, renderer.screen);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// This function is intended to be used only in tests. Test if the two
|
||||||
|
/// provided cell arrays are identical. Usually the `Cell` slices are
|
||||||
|
/// the contents of a given screen from the `zterm.testing.Renderer`. See
|
||||||
|
/// `zterm.testing.expectContainerScreen` for an example usage.
|
||||||
|
pub fn expectEqualCells(origin: Point, size: Point, expected: []const Cell, actual: []const Cell) !void {
|
||||||
|
const allocator = testing.allocator;
|
||||||
|
|
||||||
|
try testing.expectEqual(expected.len, actual.len);
|
||||||
|
try testing.expectEqual(expected.len, @as(usize, size.y) * @as(usize, size.x));
|
||||||
|
|
||||||
|
var expected_cps = try std.ArrayList(Cell).initCapacity(allocator, size.x);
|
||||||
|
defer expected_cps.deinit();
|
||||||
|
|
||||||
|
var actual_cps = try std.ArrayList(Cell).initCapacity(allocator, size.x);
|
||||||
|
defer actual_cps.deinit();
|
||||||
|
|
||||||
|
var output = try std.ArrayList(u8).initCapacity(allocator, expected_cps.capacity * actual_cps.capacity + 5 * size.y);
|
||||||
|
defer output.deinit();
|
||||||
|
|
||||||
|
var buffer = std.io.bufferedWriter(output.writer());
|
||||||
|
defer buffer.flush() catch {};
|
||||||
|
|
||||||
|
const writer = buffer.writer();
|
||||||
|
var differ = false;
|
||||||
|
|
||||||
|
const dwd = try DisplayWidth.DisplayWidthData.init(allocator);
|
||||||
|
defer dwd.deinit();
|
||||||
|
const dw: DisplayWidth = .{ .data = &dwd };
|
||||||
|
|
||||||
|
const expected_centered = try dw.center(allocator, "Expected Screen", size.x, " ");
|
||||||
|
defer allocator.free(expected_centered);
|
||||||
|
|
||||||
|
const actual_centered = try dw.center(allocator, "Actual Screen", size.x, " ");
|
||||||
|
defer allocator.free(actual_centered);
|
||||||
|
|
||||||
|
try writer.print("Screens are not equivalent.\n{s} ┆ {s}\n", .{ expected_centered, actual_centered });
|
||||||
|
|
||||||
|
for (origin.y..size.y) |row| {
|
||||||
|
defer {
|
||||||
|
expected_cps.clearRetainingCapacity();
|
||||||
|
actual_cps.clearRetainingCapacity();
|
||||||
|
}
|
||||||
|
for (origin.x..size.x) |col| {
|
||||||
|
const expected_cell = expected[(row * size.x) + col];
|
||||||
|
const actual_cell = actual[(row * size.x) + col];
|
||||||
|
|
||||||
|
if (!expected_cell.eql(actual_cell)) differ = true;
|
||||||
|
|
||||||
|
try expected_cps.append(expected_cell);
|
||||||
|
try actual_cps.append(actual_cell);
|
||||||
|
}
|
||||||
|
|
||||||
|
// write screens both formatted to buffer
|
||||||
|
for (expected_cps.items) |cell| try cell.value(writer);
|
||||||
|
_ = try writer.write(" ┆ ");
|
||||||
|
for (actual_cps.items) |cell| try cell.value(writer);
|
||||||
|
_ = try writer.write("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!differ) return;
|
||||||
|
|
||||||
|
// test failed
|
||||||
|
try buffer.flush();
|
||||||
|
|
||||||
|
debug.lockStdErr();
|
||||||
|
defer debug.unlockStdErr();
|
||||||
|
|
||||||
|
const std_writer = std.io.getStdErr().writer();
|
||||||
|
try std_writer.writeAll(output.items);
|
||||||
|
return error.TestExpectEqualCells;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std = @import("std");
|
||||||
|
const debug = std.debug;
|
||||||
|
const testing = std.testing;
|
||||||
|
const Allocator = std.mem.Allocator;
|
||||||
|
const event = @import("event.zig");
|
||||||
|
const Container = @import("container.zig").Container;
|
||||||
|
const Cell = @import("cell.zig");
|
||||||
|
const DisplayWidth = @import("DisplayWidth");
|
||||||
|
const Point = @import("point.zig").Point;
|
||||||
Reference in new issue
Block a user