restic/internal/ui/termstatus
greatroar 1ed93bd54d backend,termstatus: Unify foreground/background detection
PR #5358 reintroduced a version of the TIOCGPGRP ioctl call that works
on all Unix platforms except Linux, due to a bug/inconsistency in
x/sys/unix. This commit fixes that by introducing termstatus.Tcgetpgrp.

It also introduces termstatus.Getpgrp and termstatus.Tcsetpgrp to deal
with the different signature of unix.Getpgrp in Solaris vs. all other
Unix platforms and an int-overflowing constant on AIX, so that some
AIX/Solaris-specific code can be removed elsewhere and
foreground/background detection is done the same everywhere except on
Windows.
2025-09-08 09:33:44 +02:00
..
background_unix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
background_unix_test.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
background_windows.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
getpgrp_solaris.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
getpgrp_unix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
status.go ui/termstatus: Remove unused bytes.Buffer 2025-02-01 08:21:40 +01:00
status_test.go Renames to fix clashes with reserved words. 2025-03-22 18:20:30 +00:00
stdio_wrapper.go ui/termstatus: fix race condition in StdioWrapper 2025-03-24 11:07:15 +01:00
stdio_wrapper_test.go ui/termstatus: fix race condition in StdioWrapper 2025-03-24 11:07:15 +01:00
tcgetpgrp_linux.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
tcgetpgrp_unix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
tcsetpgrp_aix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
tcsetpgrp_unix.go backend,termstatus: Unify foreground/background detection 2025-09-08 09:33:44 +02:00
terminal_posix.go Replace lots of unused parameters with _ 2023-05-18 21:17:53 +02:00
terminal_unix.go termstatus: remove unused parameter from helpers 2023-05-18 21:17:53 +02:00
terminal_windows.go termstatus: update import path of golang.org/x/term 2024-01-06 21:59:26 +01:00
terminal_windows_test.go Add test to mintty pipe detection 2021-04-11 20:02:09 +02:00