Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for split terminal #433

Open
Aviksaikat opened this issue Jan 17, 2024 · 6 comments
Open

Add option for split terminal #433

Aviksaikat opened this issue Jan 17, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@Aviksaikat
Copy link

Aviksaikat commented Jan 17, 2024

Summary

Would love to see a feature to split terminal in a single GIF.

@Aviksaikat Aviksaikat added the enhancement New feature or request label Jan 17, 2024
@maaslalani
Copy link
Member

Hey! You should be able to set up tmux or screen in the tape file to get a split screen how ever you want! Let me know if you need an example showing how to set that up!

@Aviksaikat
Copy link
Author

Hey! You should be able to set up tmux or screen in the tape file to get a split screen how ever you want! Let me know if you need an example showing how to set that up!

Yes please

@rigzba21
Copy link

➕ to an example please!

@maaslalani
Copy link
Member

maaslalani commented Jan 24, 2024

Sorry about the delay!

Here is the example of using tmux to achieve split screen GIFs. I highly recommend the tmux manual to be able to control the session / panes within VHS if you are not familiar.

out

Require tmux

Hide
  Type "tmux -f /dev/null -L test new-session -- bash" Enter
  Type "tmux split-window -d -h -- bash && \" Enter
  Type "tmux set status && \" Enter
  Type 'tmux setw pane-border-style "fg=0" && \' Enter
  Type 'tmux setw pane-active-border-style "fg=0"' Enter
  Sleep 0.5
  Ctrl+L
  Sleep 1
Show

Type "Window 1"
Sleep 1

# tmux bind to switch to next pane
Ctrl+B
Type o

Sleep 1
Type "Window 2"
Sleep 1

Let me know if you have any questions about this!

@Aviksaikat
Copy link
Author

Aviksaikat commented Jan 24, 2024

and what about screen ? is it another way of splitting terminals?

@rigzba21
Copy link

Thank you @maaslalani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants