log: prefix all log scopes with "vaxis"
This commit is contained in:
parent
1e5d39d9b1
commit
1a52178c1f
11 changed files with 12 additions and 16 deletions
|
@ -6,8 +6,6 @@ const zigimg = @import("zigimg");
|
||||||
|
|
||||||
const Window = @import("Window.zig");
|
const Window = @import("Window.zig");
|
||||||
|
|
||||||
const log = std.log.scoped(.image);
|
|
||||||
|
|
||||||
const Image = @This();
|
const Image = @This();
|
||||||
|
|
||||||
const transmit_opener = "\x1b_Gf=32,i={d},s={d},v={d},m={d};";
|
const transmit_opener = "\x1b_Gf=32,i={d},s={d},v={d},m={d};";
|
||||||
|
|
|
@ -5,7 +5,7 @@ const Cell = @import("Cell.zig");
|
||||||
const MouseShape = @import("Mouse.zig").Shape;
|
const MouseShape = @import("Mouse.zig").Shape;
|
||||||
const CursorShape = Cell.CursorShape;
|
const CursorShape = Cell.CursorShape;
|
||||||
|
|
||||||
const log = std.log.scoped(.internal_screen);
|
const log = std.log.scoped(.vaxis);
|
||||||
|
|
||||||
const InternalScreen = @This();
|
const InternalScreen = @This();
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,11 @@ const grapheme = @import("grapheme");
|
||||||
const GraphemeCache = @import("GraphemeCache.zig");
|
const GraphemeCache = @import("GraphemeCache.zig");
|
||||||
const Parser = @import("Parser.zig");
|
const Parser = @import("Parser.zig");
|
||||||
const Queue = @import("queue.zig").Queue;
|
const Queue = @import("queue.zig").Queue;
|
||||||
const Tty = @import("main.zig").Tty;
|
const vaxis = @import("main.zig");
|
||||||
|
const Tty = vaxis.Tty;
|
||||||
const Vaxis = @import("Vaxis.zig");
|
const Vaxis = @import("Vaxis.zig");
|
||||||
const log = std.log.scoped(.loop);
|
|
||||||
|
const log = std.log.scoped(.vaxis);
|
||||||
|
|
||||||
pub fn Loop(comptime T: type) type {
|
pub fn Loop(comptime T: type) type {
|
||||||
return struct {
|
return struct {
|
||||||
|
|
|
@ -8,7 +8,7 @@ const code_point = @import("code_point");
|
||||||
const grapheme = @import("grapheme");
|
const grapheme = @import("grapheme");
|
||||||
const Winsize = @import("main.zig").Winsize;
|
const Winsize = @import("main.zig").Winsize;
|
||||||
|
|
||||||
const log = std.log.scoped(.parser);
|
const log = std.log.scoped(.vaxis_parser);
|
||||||
|
|
||||||
const Parser = @This();
|
const Parser = @This();
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ const Winsize = @import("main.zig").Winsize;
|
||||||
const Unicode = @import("Unicode.zig");
|
const Unicode = @import("Unicode.zig");
|
||||||
const Method = @import("gwidth.zig").Method;
|
const Method = @import("gwidth.zig").Method;
|
||||||
|
|
||||||
const log = std.log.scoped(.screen);
|
|
||||||
|
|
||||||
const Screen = @This();
|
const Screen = @This();
|
||||||
|
|
||||||
width: usize = 0,
|
width: usize = 0,
|
||||||
|
|
|
@ -7,8 +7,6 @@ const Segment = @import("Cell.zig").Segment;
|
||||||
const Unicode = @import("Unicode.zig");
|
const Unicode = @import("Unicode.zig");
|
||||||
const gw = @import("gwidth.zig");
|
const gw = @import("gwidth.zig");
|
||||||
|
|
||||||
const log = std.log.scoped(.window);
|
|
||||||
|
|
||||||
const Window = @This();
|
const Window = @This();
|
||||||
|
|
||||||
pub const Size = union(enum) {
|
pub const Size = union(enum) {
|
||||||
|
|
|
@ -64,6 +64,10 @@ pub fn panic_handler(msg: []const u8, error_return_trace: ?*std.builtin.StackTra
|
||||||
std.builtin.default_panic(msg, error_return_trace, ret_addr);
|
std.builtin.default_panic(msg, error_return_trace, ret_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub const log_scopes = enum {
|
||||||
|
vaxis,
|
||||||
|
};
|
||||||
|
|
||||||
/// the vaxis logo. In PixelCode
|
/// the vaxis logo. In PixelCode
|
||||||
pub const logo =
|
pub const logo =
|
||||||
\\▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄
|
\\▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄
|
||||||
|
|
|
@ -3,8 +3,6 @@ const assert = std.debug.assert;
|
||||||
const atomic = std.atomic;
|
const atomic = std.atomic;
|
||||||
const Condition = std.Thread.Condition;
|
const Condition = std.Thread.Condition;
|
||||||
|
|
||||||
const log = std.log.scoped(.queue);
|
|
||||||
|
|
||||||
/// Thread safe. Fixed size. Blocking push and pop.
|
/// Thread safe. Fixed size. Blocking push and pop.
|
||||||
pub fn Queue(
|
pub fn Queue(
|
||||||
comptime T: type,
|
comptime T: type,
|
||||||
|
|
|
@ -6,8 +6,6 @@ const Window = @import("../Window.zig");
|
||||||
const GapBuffer = @import("gap_buffer").GapBuffer;
|
const GapBuffer = @import("gap_buffer").GapBuffer;
|
||||||
const Unicode = @import("../Unicode.zig");
|
const Unicode = @import("../Unicode.zig");
|
||||||
|
|
||||||
const log = std.log.scoped(.text_input);
|
|
||||||
|
|
||||||
const TextInput = @This();
|
const TextInput = @This();
|
||||||
|
|
||||||
/// The events that this widget handles
|
/// The events that this widget handles
|
||||||
|
|
|
@ -4,7 +4,7 @@ const vaxis = @import("../../main.zig");
|
||||||
|
|
||||||
const ansi = @import("ansi.zig");
|
const ansi = @import("ansi.zig");
|
||||||
|
|
||||||
const log = std.log.scoped(.terminal);
|
const log = std.log.scoped(.vaxis_terminal);
|
||||||
|
|
||||||
const Screen = @This();
|
const Screen = @This();
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ const Key = @import("Key.zig");
|
||||||
const Mouse = @import("Mouse.zig");
|
const Mouse = @import("Mouse.zig");
|
||||||
const Color = @import("Cell.zig").Color;
|
const Color = @import("Cell.zig").Color;
|
||||||
|
|
||||||
const log = std.log.scoped(.tty_watcher);
|
const log = std.log.scoped(.vaxis_xev);
|
||||||
|
|
||||||
pub const Event = union(enum) {
|
pub const Event = union(enum) {
|
||||||
key_press: Key,
|
key_press: Key,
|
||||||
|
|
Loading…
Reference in a new issue