aboutsummaryrefslogtreecommitdiff
path: root/completions/fish
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-12-10 17:40:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-14 06:31:03 +0000
commit86894a1cd29f8fb3e5a8487b4ce2d2c1b4cf57a9 (patch)
tree35bb34fda0a86556662159439d47b3b599276d40 /completions/fish
parentcsi: the CSI-t family of queries now report unscaled pixel values (diff)
Add support for opening an existing PTY
Virtual machine monitor programs (e.g. QEMU, Cloud Hypervisor) expose guest consoles as PTYs. With this patch, foot can access these guest consoles. Usually, the program used for accessing these PTYs is screen, but screen is barely developed, doesn't support resizing, and has a bunch of other unrelated stuff going on. It would be nice to have a terminal emulator that properly supported opening an existing PTY. The VMM controls the master end of the PTY, so to the other end (in this case foot), it just behaves like any application running in a directly-opened PTY, and all that's needed is to change foot's code to support opening an existing PTY rather than creating one. Co-authored-by: tanto <tanto@ccc.ac>
Diffstat (limited to 'completions/fish')
-rw-r--r--completions/fish/foot.fish1
1 files changed, 1 insertions, 0 deletions
diff --git a/completions/fish/foot.fish b/completions/fish/foot.fish
index 86f6616d..eecb6488 100644
--- a/completions/fish/foot.fish
+++ b/completions/fish/foot.fish
@@ -18,5 +18,6 @@ complete -c foot -r -s p -l print-pid
complete -c foot -x -s d -l log-level -a "info warning error none" -d "log-level (warning)"
complete -c foot -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr"
complete -c foot -s S -l log-no-syslog -d "disable syslog logging (server mode only)"
+complete -c foot -x -l pty -a '(__fish_complete_path)' -d "display an existing pty instead of creating one"
complete -c foot -s v -l version -d "show the version number and quit"
complete -c foot -s h -l help -d "show help message and quit"