Tag Info

New answers tagged

2

Well as you quite correctly guessed setf is not correct capability for setting foreground color in context of xterm-256color(screen-256color) terminfo entry. You should use setaf (set foreground color using ANSI escape). $ echo $TERM screen-256color $ infocmp -1 | grep setf $ infocmp -1 | grep setaf ...


0

What worked for me is putting the following lines in my .bashrc file: if [ "x$DISPLAY" != "x" ] then export HAS_256_COLORS=yes alias tmux="tmux -2" if [ "$TERM" = "xterm" ] then export TERM=xterm-256color fi else if [ "$TERM" == "xterm" ] || [ "$TERM" == "xterm-256color" ] then ...


1

With tmux 1.5 (and later), you can give negative numbers to the -S option of capture-pane to access the scroll back buffer. Examples: Capture (up to) 32768 lines of the scroll back buffer along with the pane’s current text: tmux capture-pane -pS -32768 Capture just the tenth most recently “scrolled off” line: tmux capture-pane -pS -10 -E -10 Capture ...


3

Simple answer: No. tmux does not use unit tests or something like a big automated test suite. Also there is no check target or something similar in the Makefile. Anyhow there are some files which support a quick non automated test under /tools/, for example: /tools/UTF-8-demo.txt which contains a lot of UTF-8 ASCII Art examples /tools/256colors.pl which ...


0

Solved by the following: Placed a guard around my PATH manipulation code in .profile if [ "$PATHS" != "true" ]; then export PATHS="true" #Manipulate and export PATH over here fi Removed file-level guards around .bash_profile and .bashrc IMPORTANT: RESTARTED the tmux server. (killall tmux) -- the manual indicates the server maintains its ...


1

You could try to upgrade just tmux first, and then perform the full upgrade. With some luck, the currently installed system libraries versions will satisfy the dependencies for the new tmux version.


0

Ctrl + B then " (double quotes) to split into two horizontal windows Ctrl + B "o" to switch back to top window (check your cursor, that will tell you where you are) Ctrl + B then % (shift + 5) to split the top window That should work with the default key bindings.


0

If you'd like to spawn a new third horizontal pane that stretches over the full width, I suggest you try this Ctrl-b " or to cycle through Ctrl-b space


2

One approach is to use a terminal multiplexer only on remote machines. Running each shell in a separate terminal emulator has the advantage that you can put multiple shell windows side by side. On a remote machine, resistance to disconnection is a big win that justifies terminal multiplexers, but locally, they have fewer advantages. If you do want to nest ...


0

This is not exclusive to tmux, but right now it's what I'm using: You can use script -f /path/to/some/file to write a terminal session to a file. The -f option updates the file while you tipe. Someone else (with only read permissions to the file, if you want) can do tail -f to see the file, your terminal session. The -f option makes tail output whatever ...


0

Use tmux set -g mode-mouse on I use an alias "tn" with this (having it as the default in my .tmux.conf didn't work for me, some issue, tl; dr;) alias tn='tmux set -g mode-mouse on'


1

Putting this in my .tmux.conf file was the trick: set -g history-limit 20000


3

For tmux you can alter its scrollback buffer with set-option history-limit 10000 The default is 2000. You can put this directive in your ~/.tmux.conf or at the tmux command prompt (prefix + :). It looks like iTerm is integrated with tmux. See: https://code.google.com/p/iterm2/wiki/TmuxIntegration


0

As @northben and @andreas-wiese mentioned, I did get an answer from a ticket that I opened with tmux. Here is the response to the question, "Why does this happen?": historic reasons. ascii has only 32 ctrl keys so terminals map multiple keys to the same codes xterm may have an option to make them different but you would need to change tmux to ...


1

These speeds are a configuration setting for serial lines and are irrelevant for any terminal that isn't connected through a serial line, such as terminal multiplexer software, remote terminals, GUI terminal emulator, or any other kind of software terminal. Because serial lines were once the norm for terminals, the speed is a parameter in the terminal ...


0

Using a tool like FLOM (Free LOck Manager) should allow you to execute something like: tmux split-window -d "flom -- program1" flom -- program2 # this program depends on some side effects produced by program1 if "program1" starts before "program2" the expected behavior will be: flom will create a logical resource and lock it exclusively for "program1" ...


2

By default, (for xterm-type terminals) tmux uses a control sequence to automatically set the external clipboard/selection to whatever is copied. The bulk of this sequence will be the base-64 encoding of the copied data; this is probably the gibberish that you are seeing. It may be that your terminal emulator—the one in which you have attached to a tmux ...


0

I came up with the following shell function: hash_string256() { # Hash $1 into a number hash_value=$(printf "%s" "$1" | md5sum |tr -d " -"| tr "a-f" "A-F") # Add the hash with $2 and modulo 256 the result # if $2 == "" it is 0 printf "ibase=16; (%s + %X) %% 100\n" $hash_value "$2" | bc } This function can be used like this (The results ...


3

This basically tells you, that you already have an (old) tmux-server running and the new tmux can't connect to it because they don't understand each other anymore. Exit all your existing tmux sessions and start a fresh one using the new version and everything should be fine.


1

Add these lines to your .bashrc and try: if which tmux 2>&1 >/dev/null then # start a new session if not exist test -z ${TMUX} && tmux # when quitting tmux, try to attach to other session while test -z ${TMUX}; do tmux attach || break done fi


1

I rewrote script. The most tricky part was to disconnect from ssh by exiting from fish as exit inside ./.config/fish/config.fish didn't work. It starts tmux only if parent of the fish is ssh. Here is part of my ./.config/fish/config.fish file: set PPID (ps --pid %self -o ppid --no-headers) if ps --pid $PPID | grep ssh tmux has-session -t remote; ...



Top 50 recent answers are included