file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/Termina.Generators/LayoutNodeInViewModelAnalyzer.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Mi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina.Generators/ReactivePropertyGenerator.cs
C#
using System.Collections.Immutable; using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; namespace Termina.Generators; /// <summary> /// Source generator that generates reactive properties for fields marked...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Component.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Layout; namespace Termina; /// <summary> /// Base class for all UI components in Ter...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/BlockSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; namespace Termina.Components.Streaming; /// <summary> /// A wrapper segment that indicates the content...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/CompositeTextSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Text; using Termina.Term...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/IAnimatedTextSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; namespace Termina.Components.Streaming; /// <summary> /// Represents a text segment that can animate over time (spinner, blink, ti...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/ICompositeTextSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Components.Streaming; /// <summary> /// Represents a group of text segments composed together. /// Enables grouping multiple segments (s...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/IStreamingTextBuffer.cs
C#
using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// Interface for streaming text buffers that efficiently handle append-only text content. /// </summary> public interface IStreamingTextBuffer { /// <summary> /// Gets the stream mode (Persisted or Windowed). /// </summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/ITextSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// Base interface for any text segment (static or animated) that can be re...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/PersistedStreamBuffer.cs
C#
using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// A streaming text buffer that retains full history with scroll support. /// Suitable for chat messages, command output, logs that need review. /// </summary> /// <remarks> /// <para> /// Key features: /// </para> /// <list type="bullet">...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/SpinnerSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Timers; using Termina.Terminal; using Timer = System.Timers...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/StaticTextSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// Represents a static (non-animated) text segment that can be tracked for...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/StreamMode.cs
C#
namespace Termina.Components.Streaming; /// <summary> /// Defines how a streaming text buffer retains content. /// </summary> public enum StreamMode { /// <summary> /// Full history is retained and scrollable. /// Suitable for chat messages, command output, logs that need review. /// </summary> Per...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/StyledLine.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Text; using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// A line of text composed of styled segments, supporti...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/StyledSegment.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// A segment of text with associated style. Used for inline styled text re...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/StyledWordWrapper.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// Word wrapper that preserves styling across line breaks. /// </summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/TextSegmentExtensions.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Components.Streaming; /// <summary> /// Extension methods for <see cref="ITextSegment"/>. /// </summary> public static class TextSegment...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/WindowedStreamBuffer.cs
C#
using Termina.Terminal; namespace Termina.Components.Streaming; /// <summary> /// A streaming text buffer that retains only the last N lines (rolling window). /// Suitable for ephemeral content like "thinking" indicators, progress updates. /// </summary> /// <remarks> /// <para> /// Key features: /// </para> /// <lis...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Components/Streaming/WordWrapper.cs
C#
namespace Termina.Components.Streaming; /// <summary> /// Utility class for word-wrapping text to fit within a specified width. /// </summary> public static class WordWrapper { /// <summary> /// Wraps a single line of text to fit within the specified width. /// </summary> /// <param name="text">Text to...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/FileTraceListener.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Globalization; using System.Threading.Channels; namespace Termina.Diagnostics; /// <summary> /// Trace listener that writes to a file or Tex...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/ITerminaTraceListener.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Diagnostics; /// <summary> /// Interface for receiving Termina diagnostic trace output. /// </summary> /// <remarks> /// Implement this ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/LoggerTraceListener.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.Logging; namespace Termina.Diagnostics; /// <summary> /// Trace listener that routes to Microsoft.Extensions.Logging. /// </su...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/TerminaTrace.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Runtime.CompilerServices; namespace Termina.Diagnostics; /// <summary> /// Static entry point for Termina diagnostic trace logging. /// </su...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/TerminaTraceCategory.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Diagnostics; /// <summary> /// Categories for Termina diagnostic trace output. /// </summary> [Flags] public enum TerminaTraceCategory {...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/TerminaTraceExtensions.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; namespace Termina.Diagnostics; /// <summary> /// Extension methods fo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/TerminaTraceLevel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Diagnostics; /// <summary> /// Log levels for Termina diagnostic trace output. /// </summary> public enum TerminaTraceLevel { /// <s...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Diagnostics/TraceEvent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Diagnostics; /// <summary> /// A deferred trace event that captures all context at creation time /// but only formats the message string...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Extensions/ObservableLayoutExtensions.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Layout; namespace Termina.Extensions; /// <summary> /// Extension methods for binding observables to the layout tree. /// </summary> public...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Hosting/TerminaBuilder.cs
C#
using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; using Termina.Pages; using Termina.Reactive; using Termina.Routing; namespace Termina.Hosting; /// <summary> /// Builder for configuring Termina page registrations. /// </summary> public sealed class TerminaBuilder { private re...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Hosting/TerminaHostedService.cs
C#
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace Termina.Hosting; /// <summary> /// Hosted service that runs the Termina TUI application. /// Automatically starts the application when the host starts and stops it on shutdown. /// </summary> internal sealed class TerminaHostedService :...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Hosting/TerminaServiceCollectionExtensions.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Termina.Input; using Termina.Terminal; na...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/IUIEvent.cs
C#
namespace Termina; /// <summary> /// Base interface for all UI events that flow through the event channel. /// Events are strongly-typed and immutable records. /// </summary> public interface IUIEvent { /// <summary> /// Timestamp when this event was created. /// </summary> DateTime Timestamp { get; } ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/ConsoleInputSource.cs
C#
using System.Threading.Channels; namespace Termina.Input; /// <summary> /// Real console input source that reads from Console.ReadKey and detects terminal resize. /// Runs on a background thread since ReadKey is blocking. /// </summary> public sealed class ConsoleInputSource : IInputSource { private int _lastWidt...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/FocusManager.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Diagnostics; using Termina.Layout; namespace Termina.Input; /// <summary> /// M...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/IFocusManager.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Layout; namespace Termina.Input; /// <summary> /// Manages keyboard focus for interactive components. /// </summary> /// <remarks> /// The ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/IInputEvent.cs
C#
namespace Termina.Input; /// <summary> /// Marker interface for low-level input events. /// These events are handled internally by components and are not typically /// exposed to page handlers directly. /// </summary> public interface IInputEvent { }
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/IInputSource.cs
C#
using System.Threading.Channels; namespace Termina.Input; /// <summary> /// Abstraction for input sources. /// Input sources push events to a channel - no polling required. /// </summary> public interface IInputSource { /// <summary> /// Start the input source, pushing events to the provided channel. /// ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/KeyPressed.cs
C#
namespace Termina.Input; /// <summary> /// Low-level keyboard input event. /// Contains the raw ConsoleKeyInfo from the keyboard. /// </summary> public sealed record KeyPressed(ConsoleKeyInfo KeyInfo) : IInputEvent;
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/MouseEvent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Input; /// <summary> /// Type of mouse button. /// </summary> public enum MouseButton { /// <summary> /// No button. /// </summary>...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/PageKeyBindings.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Input; /// <summary> /// Manages page-level key bindings that intercept input before focused components. /// This implements a "capture ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/PlatformInputSource.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Threading.Channels; using Termina.Diagnostics; using Termina.Platform; namespace Termina.Input; /// <summary> /// Input source that uses the platfo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/RedrawRequested.cs
C#
namespace Termina.Input; /// <summary> /// Event requesting a UI redraw. Used by components that update asynchronously /// (e.g., StreamingText consuming an IAsyncEnumerable) to signal that the /// display needs to be refreshed. /// </summary> public sealed class RedrawRequested : IInputEvent { /// <summary> /...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/ResizeEvent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Input; /// <summary> /// Terminal resize event. /// Fired when the terminal window dimensions change. /// </summary> /// <param name="Width">Ne...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Input/VirtualInputSource.cs
C#
using System.Threading.Channels; namespace Termina.Input; /// <summary> /// Virtual input source for testing and programmatic input. /// External code pushes events via Enqueue methods, which get forwarded to the event loop. /// </summary> public sealed class VirtualInputSource : IInputSource { private readonly C...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/BackdropStyle.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Defines how the modal backdrop is rendered. /// </summary> public enum BackdropStyle { /// <summary> /...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ConditionalNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Rendering; namespace Termina.Layout; /// <summary> /// A layout node that conditiona...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/DeferredNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Rendering; namespace Termina.Layout; /// <summary> /// A layout node that delegates to a lazily-obtained node without owning or disposing i...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/EmptyNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Rendering; namespace Termina.Layout; /// <summary> /// An empty layout node that renders nothing and takes no space. /// Useful as a placeh...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/GridNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Rendering; using Termina.Terminal; namespace Termina.Layo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/HorizontalLayout.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Rendering; namespace Termina.Layout; /// <summary> /// A container that arranges children horizontally (left to right). /// </summary> publ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/IActivatableNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Defines lifecycle methods for layout nodes that can be activated/deactivated. /// Used with NavigationBehavior...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/IFocusable.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Interface for layout nodes that can receive keyboard focus. /// </summary> /// <remarks> /// Components that i...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ILayoutNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using Termina.Rendering; namespace Termina.Layout; /// <summary> /// Represents a node in the layout tree. /// Layout nodes form a...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/Layout.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Factory for creating layout containers. /// </summary> public static class Layouts { /// <summary> ///...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/LayoutNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Rendering; namespace Termina.Layout; /// <summary> /// Base class for layout nodes p...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ModalNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Rendering; using Termina.Terminal; namespace Termina.Layo...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ModalPosition.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Defines where the modal is positioned on the screen. /// </summary> public enum ModalPosition { /// <summa...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/PanelNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Rendering; using Termina.Terminal; namespace Termina.Layout; /// <summary> /// A lay...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ReactiveLayoutNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Disposables; using System.Reactive.Subjects; using Termina.Rendering; namespace Termina.Layout; /// <summary...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/Rect.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Represents a rectangle with position and size. /// </summary> /// <param name="X">Left column.</param> /// <pa...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ScreenBounds.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Represents the absolute bounds of a region on screen. /// </summary> /// <param name="X">X position (column) of top-l...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/ScrollableContainerNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Disposables; using System.Reactive.Subjects; using Termina.Rendering; using Termina.Terminal; namespace Termi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SegmentId.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Unique identifier for a tracked segment in a streaming text buffer. /// Uses lightweight integer instead of GU...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SelectionItem.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using Termina.Components.Streaming; namespace Termina.Layout; /// <summary> /// Represents an item in a SelectionListNode. /// </s...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SelectionItemContent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Components.Streaming; u...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SelectionListNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Components.Streaming; using Termina.Rendering; using Termi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SelectionMode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Defines the selection behavior for SelectionListNode. /// </summary> public enum SelectionMode { /// <summ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/Size.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Represents a 2D size with width and height. /// </summary> /// <param name="Width">Width in columns.</param> /...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SizeConstraint.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Layout; /// <summary> /// Defines how a layout node should be sized along one axis. /// </summary> public abstract record SizeConstraint...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/SpinnerNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using System.Timers; using Termina.Rendering; using Termina.Terminal; using Timer = System.Timers.Ti...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/StackLayout.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Rendering; namespace Termina.Layout; /// <summary> /// A container that overlays children (like a z-stack). /// All children occupy the sam...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/StreamingTextNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Components.Streaming; using Termina.Rendering; using Termina.Terminal; namespace Term...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/TextInputNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using System.Timers; using Termina.Diagnostics; using Termina.Rendering; using Termina.Terminal; usi...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/TextNode.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Rendering; using Termina.Terminal; namespace Termina.Layout; /// <summary> /// Horizontal text alignmen...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Layout/VerticalLayout.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Rendering; namespace Termina.Layout; /// <summary> /// A container that arranges children vertically (top to bottom). /// </summary> public...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Navigation/NavigationRequested.cs
C#
namespace Termina.Navigation; /// <summary> /// Event emitted to request navigation to a different page. /// Handlers can emit this to trigger navigation through the event loop. /// </summary> public sealed record NavigationRequested(string PageKey) : IUIEvent { public DateTime Timestamp { get; } = DateTime.UtcNow...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Navigation/ShutdownRequested.cs
C#
namespace Termina.Navigation; /// <summary> /// Event emitted to request application shutdown. /// The EventMediator will handle this and trigger graceful shutdown. /// </summary> public sealed record ShutdownRequested() : IUIEvent { public DateTime Timestamp { get; } = DateTime.UtcNow; }
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Pages/IPage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Layout; using Termina.Reactive; namespace Termina.Pages; /// <summary> /// Represents a page (screen) in the TUI application. /// Pages ren...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Pages/NavigationBehavior.cs
C#
namespace Termina.Pages; /// <summary> /// Defines how a page behaves when navigating away and back. /// </summary> public enum NavigationBehavior { /// <summary> /// Page is re-created each time it is navigated to. /// State is not preserved between visits. /// </summary> ResetOnNavigation, /...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/FallbackConsole.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reactive.Subjects; namespace Termina.Platform; /// <summary> /// Fallback console implementation using polling-based input. /// Used on platforms w...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/IConsoleInputEvent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Platform; /// <summary> /// Marker interface for low-level console input events from the platform layer. /// These events represent raw input b...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/IPlatformConsole.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Platform; /// <summary> /// Platform abstraction for console I/O operations. /// Provides event-driven input and proper terminal initialization...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/PlatformConsoleFactory.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Runtime.InteropServices; using Termina.Diagnostics; namespace Termina.Platform; /// <summary> /// Factory for creating platform-specific console im...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/UnixConsole.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reactive.Subjects; using System.Runtime.Versioning; namespace Termina.Platform; /// <summary> /// Unix/macOS console implementation using termios a...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Platform/WindowsConsole.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reactive.Subjects; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Threading.Channels; using Termina.Diagnostics;...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Reactive/ReactiveAttribute.cs
C#
using System.Diagnostics; namespace Termina.Reactive; /// <summary> /// <b>Source Generator Attribute:</b> Marks a field to generate a reactive property with BehaviorSubject backing. /// </summary> /// <remarks> /// <para> /// <b>This attribute is processed by the Termina.Generators source generator at compile time.<...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Reactive/ReactivePage.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Disposables; using System.Reactive.Linq; using Termina.Input; using Termina.Layout; using Termina.Pages; namespace Termina.Reactive;...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Reactive/ReactiveViewModel.cs
C#
using System.Reactive.Disposables; using Termina.Input; namespace Termina.Reactive; /// <summary> /// Base class for reactive view models in Termina. /// ViewModels contain application state and logic, exposing observable properties /// that pages subscribe to for automatic UI updates. /// </summary> /// <remarks> //...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Reactive/RxExtensions.cs
C#
using System.Reactive.Disposables; namespace Termina.Reactive; /// <summary> /// Extension methods for working with System.Reactive in Termina. /// </summary> public static class RxExtensions { /// <summary> /// Adds a disposable to a CompositeDisposable and returns the disposable. /// Enables fluent subs...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/IRenderContext.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// Context provided to components during rendering. /// All coordinates are relative to the ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/IRenderable.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Rendering; /// <summary> /// Interface for components that can be rendered to a terminal. /// Components should render relative to (0,0) - the ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/Panel.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// The style of border to draw around the panel. /// </summary> public enum BorderStyle { ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/RegionRenderContext.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// Render context that translates relative coordinates to absolute screen positions. /// All...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/ScrollableContent.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// A container that provides vertical...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/Text.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// A simple text component that renders a string. /// </summary> public sealed class Text : ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Rendering/TextInput.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Subjects; using Termina.Terminal; namespace Termina.Rendering; /// <summary> /// A text input component that handle...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/FromRouteAttribute.cs
C#
namespace Termina.Routing; /// <summary> /// Marks a field to receive a route parameter value. /// </summary> /// <remarks> /// <para> /// Fields marked with this attribute will have their values injected by the framework /// before <see cref="Termina.Reactive.ReactiveViewModel.OnActivated"/> is called. /// </para> //...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/IRouteParameterReceiver.cs
C#
namespace Termina.Routing; /// <summary> /// Interface implemented by source-generated code for ViewModels with <see cref="FromRouteAttribute"/> fields. /// </summary> /// <remarks> /// <para> /// This interface is implemented automatically by the source generator when a ViewModel /// has fields marked with <see cref=...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/RouteConstraints.cs
C#
namespace Termina.Routing; /// <summary> /// Handles route parameter type constraint validation and parsing. /// </summary> public static class RouteConstraints { /// <summary> /// The set of valid constraint names. /// </summary> public static readonly IReadOnlySet<string> ValidConstraints = new HashS...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/RouteMatcher.cs
C#
using System.Diagnostics.CodeAnalysis; namespace Termina.Routing; /// <summary> /// Matches incoming paths against registered route templates and extracts parameters. /// </summary> public sealed class RouteMatcher { private readonly List<RouteRegistration> _routes = new(); /// <summary> /// Adds a route...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC