pty-handling

Handle PTY signals, resize events, and OSC sequences in Tauri applications.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/FullFran/nyxterm --skill pty-handling-fullfran
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pty-handling
Source: https://github.com/FullFran/nyxterm/tree/main/.agents/skills/pty-handling
Command: npx skills add https://github.com/FullFran/nyxterm --skill pty-handling-fullfran

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the complexities of handling PTY (pseudo-terminals) interactions, ensuring smooth terminal experiences and efficient shell management.

Core Features & Use Cases

  • PTY Gotchas: Covers issues like SIGWINCH, ConPTY race conditions, and OSC sequences.
  • Signal Forwarding: Properly handles Ctrl+C, Ctrl+Z, and Ctrl+\ signals.
  • Shell Integration: Injects prompt markers for enhanced shell interactions.
  • Use Case: For developers working in complex terminal environments, this Skill helps avoid common pitfalls with PTYs, enhancing productivity and stability.

Quick Start

Load the pty-handling skill when working with terminal escape sequences or handling resize events in your Tauri application.

Frequently Asked Questions about pty-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle SIGWINCH and resize events in a Tauri terminal application?

To handle SIGWINCH and resize events in a Tauri terminal application, you need robust signal forwarding that manages PTY nuances. This ensures terminal interactions remain smooth and stable during window resizing.

What is the best way to forward Ctrl+C and Ctrl+Z signals to a pseudo-terminal?

Forwarding Ctrl+C, Ctrl+Z, and Ctrl+\ signals to a pseudo-terminal requires specific signal handling logic. Injecting prompt markers and properly managing these signals ensures enhanced shell integration and avoids common PTY pitfalls.

How do ConPTY race conditions affect terminal interactions and how can I fix them?

ConPTY race conditions disrupt terminal interactions by causing synchronization issues in pseudo-terminal environments. Fixing them involves addressing specific PTY gotchas to ensure robust signal forwarding and smooth shell management.

How do I inject prompt markers for shell integration in a terminal environment?

Injecting prompt markers for shell integration in a terminal environment involves handling OSC sequences correctly. This provides enhanced shell interactions and helps developers avoid common pitfalls with PTYs.

Do I need to handle OSC sequences for robust shell integration in Tauri applications?

Yes, handling OSC sequences is necessary for robust shell integration in Tauri applications. Properly managing these terminal escape sequences alongside signal forwarding ensures stable and efficient shell management.

Why does my terminal lose stability when dealing with complex PTY interactions?

Terminal stability is often lost during complex PTY interactions due to unhandled signal forwarding or ConPTY race conditions. Addressing these PTY nuances directly enhances productivity and prevents common terminal environment failures.