tmux

How to increase scrollback buffer size in tmux?

落爺英雄遲暮 提交于 2019-12-04 07:19:12
问题 How do I increase scrollback buffer size in tmux ? If I enter copy mode, the number of available scrollback lines (visible in upper right corner) is always below 2000. I tried to find a list of all tmux commands, but I can't find anything about scrollback size. For all I see the screen command for setting that option doesn't work with tmux . Using tmux 1.8, Ubuntu 12.04 LTS, either konsole or gnome-terminal . 回答1: The history limit is a pane attribute that is fixed at the time of pane

Tmux: how do I bind function keys to commands?

浪尽此生 提交于 2019-12-04 06:47:40
How do I bind a function key (e.g. F1, which generates ESC O P ) to a tmux command (e.g. "next window", ctrl-B n )? Context: ssh running on mac into tmux session on linux. I'm pressing fn-F1 on the mac keyboard to generate the ESC O P . From the KEY BINDINGS section of man tmux : tmux allows a command to be bound to most keys, with or without a prefix key. When specifying keys, most represent themselves (for example ‘A’ to ‘Z’). Ctrl keys may be prefixed with ‘C-’ or ‘^’, and Alt (meta) with ‘M-’. In addition, the following special key names are accepted: Up, Down, Left, Right, BSpace, BTab,

How to disable keybinding in Tmux

十年热恋 提交于 2019-12-04 05:52:11
Using Tmux and Vim is a pain sometimes. One of the collisions for me is Control-S . I use it in Vim for opening buffers in split, but when using Tmux, well... Tmux does something stupid with it, I can't figure out whats the purpose. But basically, when C-s is pressed in Tmux, screen freezes. And it unfreezes with C-q . I've no idea whats that good for, if anything. unbind C-s unbind C-q I tried to unbind C-s in tmux.conf, but it didn't work. How can I unbind it? Also I freed the binding from Terminal, in .bashrc stty -ixon -ixoff First of all, I would say that the Ctrl-S (suspend the output)

How to use Ctrl-semicolon for prefix in tmux?

不羁的心 提交于 2019-12-04 04:19:53
I want to use Ctrl-semicolon for tmux's prefix. But my conf doesn't work. unbind-key C-b set-option -g prefix C-\; I found a similar article. But it's not for the prefix. tmux bind semicolon BTW, what's your favorite prefix key? :D Do you have a recommend key? Terminal can't register a Ctrl-; keystroke. It's just not a valid character. If you look at the control characters in the below ascii table, you'll see Ctrl-; is not on the list. I'm on OS X and when I type Ctrl - ; in the (terminal and in a "desktop" program) I get a bell sound indicating the character is not recognized or something. As

Is it possible to find tmux sockets currently in use?

别说谁变了你拦得住时间么 提交于 2019-12-04 00:50:22
I am trying to get a list of tmux sockets that are currently being used but the best solution I've come up with so far is to check in /tmp/tmux* or TMPDIR. As far as I can tell tmux keeps these sockets around for some amount of time even if no current tmux session is using them. As such I was hoping there was something similar to tmux list-sessions, but for sockets, that would give me all the sockets that are currently being used. I couldn't seem to find one in the man page and if there was one I didn't properly understand that listing sockets was its purpose. Thanks! To list all sockets used

How would I go about binding the HOME key as a tmux prefix?

醉酒当歌 提交于 2019-12-03 15:25:02
Is there a way to do this in ~/.tmux.conf? If everything else is configured correctly, it should be as simple as putting this in your .tmux.conf : set-option -g prefix Home Note: Unless you manually “source” your .tmux.conf , changes to the file will only take affect when the tmux server is restarted. Either cleanly exit all your panes, windows (thus closing all your sessions and letting the server exit), or use tmux kill-server , then start a fresh session. This will only work if your terminal emulator is sending an escape sequence that matches the khome field of the terminfo database entry

Mapping arrow keys when running tmux

五迷三道 提交于 2019-12-03 14:19:29
These key mappings stop working in tmux. In my .vimrc , I have: nmap <Space> i map <C-Down> <C-w>j map <C-Up> <C-w>k map <C-Left> <C-w>h map <C-Right> <C-w>l When I run :map , I see: <C-Right> <C-W>l <C-Left> <C-W>h <C-Up> <C-W>k <C-Down> <C-W>j Yet when I hit control and an arrow key at the same time, it behaves as if no keybinding was set. Vim knows that xterm -like terminals (identified by TERM starting with xterm , or a particular response to the t_RV sequence, if it is defined) support extended sequences for certain modified keys, but it does not assume this for screen TERMs (which you

TMUX setting environment variables for sessions

拟墨画扇 提交于 2019-12-03 11:42:34
问题 I work in a situation where I have multiple projects and within each are many scripts that make use of environment variables set to values specific to that project. What i'd like to do is use a separate tmux session for each project and set the variables so that they are set for all windows in that session. I tried to use the set-environment option which works using the -g option but then sets the variable for all sessions connected to that server. Without the -g option I see its set when

How do I find out what escape sequence my terminal needs to send?

岁酱吖の 提交于 2019-12-03 11:22:17
I am using the terminal application on osX to connect to ubuntu (12.04 i think). I have the terminal at it's default setting of xerm-256. In this mode the terminal sends the sequence of \033OQ when F2 is pressed. There is no mapping however for Shift-F2 or Control-F2. There is also no sequences set for Shift-Left, Shift-Right, Control-Left, Control-Right, etc. I need some of these keys to operate features from time to time in various programs. Take for example byobu. Shift-F2 and Control-F2 are used to split the screen vertically and horizontally. In tmux the arrow keys are used with shift and

While moving the cursor across a vim process open in a tmux session, every now and then, why does it leave a trail of ghost characters - ^[OB, ^[OA?

我的梦境 提交于 2019-12-03 09:50:13
问题 These disappear if I do a page-up and page-down. Why does this happen and how do I rectify it? http://i.stack.imgur.com/DnMYl.png I recently fiddled around with my vimrc. Could that be the cause? UPDATE: I figured out the cause. I had added to functions that automatically updated the cwd name and the current git branch in my vim statusline. This caused vim to be laggy and everytime it lagged on a up/down/left/right key hit, it printed out the ghost characters ^[OA, etc. It's possible that