Seguir

Terminals should have a "scroll up to the last shell prompt" hotkey.

@federicomena and a "just show me the output / stdout / stderr between my current prompt and the previous one", buffer size permitting!

@federicomena I think iTerm2 (on mac) have that.

Also, if my memory doesn't fail, only works if Bash is your shell.

@federicomena
And: copy the standard output and/or standard error into your clipboard!
Darn, now I need this. Maybe tmux could be taught to support this.

@Defolos @federicomena not sure about other platforms but macOS has pbcopy that writes from stdin to the system clipboard and pbpaste that writes from the system clipboard to stdout

@Defolos
Wayland: `!! | wl-copy`
X11: `!! | xclip -selection clipboard`

If re-running the command is not an option try github.com/LukeSmithxyz/st/ or another terminal (e.g. foot) that supports piping the terminal contents to an external command.

Regístrate para participar en la conversación
MaSToDoN.MX

La red social del futuro: ¡Sin anuncios, sin vigilancia corporativa, diseño ético, y descentralización! ¡Sé dueño de tu información con Mastodon!