hidewin

package
v0.167.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hidewin starts helper processes (git, gh, claude -p, tasklist …) without a console window on Windows.

The daemon runs with no visible console. A console program started from a process like that gets a console window of its own — on Windows 10 it flashes up for a fraction of a second and takes the keyboard focus, so typing in any other window comes out ragged. The daemon polls git every few seconds, which made the release unusable there (user report, 2026-10-15). Every child the daemon starts goes through Command, CommandContext or Hide; TestEveryCommandIsHidden keeps it that way. On macOS and Linux they are exec.Command and exec.CommandContext.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, args ...string) *exec.Cmd

Command is exec.Command with the console window hidden on Windows.

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

CommandContext is exec.CommandContext with the console window hidden on Windows.

func Hide

func Hide(*exec.Cmd)

Hide does nothing off Windows: there is no console window to hide.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL