platformdep

package
v1.17.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package platformdep contains platform-specific constants and helpers.

Index

Constants

View Source
const (
	Mingw        = false
	EnableColors = true
)

Mingw reports whether the runtime looks like a Mingw/Cygwin terminal. Always false on Unix; only ever true on Windows.

View Source
const (
	DirConfFilename = ".algernon"
	IgnoreFilename  = ".ignore"
	HistoryFilename = ".algernon_history"
)

Per-directory filenames recognized by Algernon.

View Source
const (
	ExeExt = ""
)

ExeExt is the executable file extension for this platform.

Variables

This section is empty.

Functions

func IgnoreTerminalResizeSignal

func IgnoreTerminalResizeSignal()

IgnoreTerminalResizeSignal configures UNIX related platforms to ignore SIGWINCH

func SetupSignals added in v1.17.3

func SetupSignals(clearCacheFunction func(), printFunction func(format string, args ...any))

SetupSignals installs a SIGUSR1 handler that invokes clearCacheFunction in a goroutine. printFunction is used to log the received signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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