![]() If you're in Emacs on a daily basis anyway, the ability to split your window between essentially different applications means you never have to leave the familiarity and comfort of your favorite text editor. Ctrl-A d detach from Screen, leaving it running in the background (use screen -r to reenter)Įmacs isn't exactly a terminal multiplexer, but its interface supports splitting and resizing, and it has a built-in terminal.Ctrl-A Tab to make the other shell active.Ctrl-A S for a horizontal split (one shell at the top, one shell at the bottom).Ctrl-A | for a vertical split (one shell on the left, one shell on the right).Here are the basic split commands, using the default keyboard shortcuts: Still, Screen is a reliable and flexible application that you can run should you find that tmux is unavailable to you. Unlike tmux, a split doesn't go away when you exit a shell, which is a design feature that's quite nice in some instances but can also sometimes be cumbersome because it forces you to manage your splits manually. You have to navigate to the other space with Ctrl-A Tab (or Ctrl-J if you redefine your keyboard shortcut as I do) and create a new shell manually with Ctrl-A C. For instance, when you split your shell, a new shell does not start in the other panel. Screen's split function works well, but it leaves out a few pleasantries that tmux lacks. Personally, I redefine the trigger key to Ctrl-J with this line in $HOME/.screenrc: escape ^jJ This means that if you have Screen running, you must press Ctrl-A twice instead of just once to go to the beginning of the line. ![]() Its default key binding is Ctrl-A, which also happens to be Bash's keyboard shortcut to go to the beginning of a line. You can detach and reattach from a running session, and you can split the screen both horizontally and vertically. Similar to tmux, GNU Screen is a shell multiplexer. When I log out, tmux continues to run, patiently waiting for me to reattach to the session from a different computer. It's with tmux running on a Pi, for example, that I can stay logged into IRC on a permanent basis-I start tmux on the Pi, and then log in from whatever computer I happen to be on. There are many benefits to tmux, including the ability to start a tmux session on one computer, and then join that same session from another computer remotely.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |