Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I search a terminal window in tmux, it sets the cursor the keyword search, but doesn't highlight the matching word. Screen used to do this, and it was much easier to visually find a match.


share|improve this question
up vote 12 down vote accepted

According to the developer1, this isn't currently possible in tmux.

[1] http://sourceforge.net/mailarchive/message.php?msg_id=27427973

share|improve this answer
Good to know. At least I'm not just missing something! – Daniel Schuler Oct 20 '11 at 18:01

I know this article is a little outdated so I thought I might follow up with a possible solution, because I was recently looking for this and think I might have found a solution.

set-window-option -g mode-fg colour3
set-window-option -g mode-bg colour0

Hope this helps.

share|improve this answer
This sets the search text at the bottom left to "colour3" and "colour0", but doesn't highlight the search results in the window. Is that not what you see? – Daniel Schuler Jan 3 at 10:23
Interesting. Those changes worked for me on both Arch and OS X. Just for clarification, this changed the vi mode searching in Tmux in my case. This should not impact Ctrl-F for "Find" within your Terminal Application. Is this what you mean by "search results in the window"? – Byron Mansfield Jan 27 at 2:07
That didn't work for me either. It changed the colors of the search prompt, but didn't do anything to highlight the actual match. Tmux 2.1 in OS X, using vi for both mode-keys and status-keys. Also, I'm a bit surprised to find no documentation of those options in the manfile. – rspeed Feb 6 at 20:38
Same on K-Ubuntu Linux 16.04 (highlight bottom left) – Édouard Lopez May 11 at 9:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.