//go:build !windows

package main

import (
	"bufio"
	"fmt"
	"os"
)

// pressAnyKey waits for a single keypress on raw terminals and falls back to
// a line read elsewhere (same helper as the Windows build).
func pressAnyKey(r *bufio.Reader, prompt string) {
	fmt.Print(prompt)
	if r == nil {
		r = bufio.NewReader(os.Stdin)
	}
	_, _ = r.ReadByte()
	fmt.Println()
}
