imgcat: add --position, --no-move-cursor and --hold options

These allow additional control over image placement

refs: https://github.com/wez/wezterm/issues/3716
This commit is contained in:
Wez Furlong committed 2023-07-15 16:27:52 -07:00
1 parent b54b0ce404
commit 2e505ad869
32 files changed
+105 -29

No files matched your search

@@ -1,4 +1,3 @@
Wez's Terminal Emulator
http://github.com/wez/wezterm
@@ -1,4 +1,3 @@
Activate (focus) a pane
Usage: wezterm cli activate-pane [OPTIONS]
@@ -1,4 +1,3 @@
Activate an adjacent pane in the specified direction
Usage: wezterm cli activate-pane-direction [OPTIONS] <DIRECTION>
@@ -1,4 +1,3 @@
Activate a tab
Usage: wezterm cli activate-tab [OPTIONS]
@@ -1,4 +1,3 @@
Adjust the size of a pane directionally
Usage: wezterm cli adjust-pane-size [OPTIONS] <DIRECTION>
@@ -1,4 +1,3 @@
Determine the adjacent pane in the specified direction.
Prints the pane id in that direction, or nothing if there is no pane in that
@@ -1,4 +1,3 @@
Retrieves the textual content of a pane and output it to stdout
Usage: wezterm cli get-text [OPTIONS]
@@ -1,4 +1,3 @@
Kill a pane
Usage: wezterm cli kill-pane [OPTIONS]
@@ -1,4 +1,3 @@
list windows, tabs and panes
Usage: wezterm cli list [OPTIONS]
@@ -1,4 +1,3 @@
list clients
Usage: wezterm cli list-clients [OPTIONS]
@@ -1,4 +1,3 @@
Move a pane into a new tab
Usage: wezterm cli move-pane-to-new-tab [OPTIONS]
@@ -1,4 +1,3 @@
Rename a workspace
Usage: wezterm cli rename-workspace [OPTIONS] <NEW_WORKSPACE>
@@ -1,4 +1,3 @@
Send text to a pane as though it were pasted. If bracketed paste mode is enabled
in the pane, then the text will be sent as a bracketed paste
@@ -1,4 +1,3 @@
Change the title of a tab
Usage: wezterm cli set-tab-title [OPTIONS] <TITLE>
@@ -1,4 +1,3 @@
Change the title of a window
Usage: wezterm cli set-window-title [OPTIONS] <TITLE>
@@ -1,4 +1,3 @@
Spawn a command into a new window or tab
Outputs the pane-id for the newly created pane on success
@@ -1,4 +1,3 @@
split the current pane.
Outputs the pane-id for the newly created pane on success
@@ -1,4 +1,3 @@
Connect to wezterm multiplexer
Usage: wezterm connect [OPTIONS] <DOMAIN_NAME> [PROG]...
@@ -1,4 +1,3 @@
Output an image to the terminal
Usage: wezterm imgcat [OPTIONS] [FILE_NAME]
@@ -21,5 +20,16 @@ Options:
--no-preserve-aspect-ratio
Do not respect the aspect ratio. The default is to respect the aspect
ratio
--position <POSITION>
Set the cursor position prior to displaying the image. The default is
to use the current cursor position. Coordinates are expressed in cells
with 0,0 being the top left cell position
--no-move-cursor
Do not move the cursor after displaying the image. Note that when used
like this from the shell, there is a very high chance that shell
prompt will overwrite the image; you may wish to also use `--hold` in
that case
--hold
Wait for enter to be pressed after displaying the image
-h, --help
Print help
@@ -1,4 +1,3 @@
Display information about fonts
Usage: wezterm ls-fonts [OPTIONS]
@@ -1,4 +1,3 @@
Record a terminal session as an asciicast
Usage: wezterm record [PROG]...
@@ -1,4 +1,3 @@
Replay an asciicast terminal session
Usage: wezterm replay [OPTIONS] <CAST_FILE>
@@ -1,4 +1,3 @@
Open a serial port
Usage: wezterm serial [OPTIONS] <PORT>
@@ -1,4 +1,3 @@
Advise the terminal of the current working directory by emitting an OSC 7 escape
sequence
@@ -1,4 +1,3 @@
Show key assignments
Usage: wezterm show-keys [OPTIONS]
@@ -1,4 +1,3 @@
Establish an ssh session
Usage: wezterm ssh [OPTIONS] <USER_AT_HOST_AND_PORT> [PROG]...
@@ -1,4 +1,3 @@
Start the GUI, optionally running an alternative program
Usage: wezterm start [OPTIONS] [PROG]...