How to Enable Scrolling in Tmux Copy Mode

Abstract: Resolve unresponsive scrolling in Tmux copy mode by enabling mouse support and verifying terminal emulator settings.

Created: 2026-07-30 by
To enable scrolling in Tmux copy mode, you must enter the prefix key (default Ctrl-B), press [ to activate copy mode, and then use your terminal’s native scroll wheel or keyboard shortcuts like Page Up and Page Down. If scrolling feels unresponsive, verify that your terminal emulator supports mouse events and check your tmux.conf for conflicting mouse settings. This guide details the standard navigation methods and troubleshooting steps for common configuration issues.

Entering Copy Mode Correctly

The primary step to accessing scrollable history is ensuring you are in the correct mode. Tmux separates normal command input from buffer inspection. Pressing the prefix key followed by [ enters copy mode. Once inside, the status bar typically changes to indicate this state. Many users attempt to scroll while in normal mode, which results in no visible movement because the pane is waiting for commands, not displaying a buffer. After entering copy mode, you can navigate using several methods. The most intuitive method for modern setups involves using the mouse wheel. However, this requires specific configuration as discussed later. For keyboard-only navigation, Page Up and Page Down move through the buffer one screen at a time. Arrow keys allow pixel-by-pixel movement, which is useful for fine-tuning your view but slower for large buffers.

Configuring Mouse Support

Mouse support is not always enabled by default in older Tmux versions or minimal configurations. To enable it, add the following line to your ~/.tmux.conf file:
set -g mouse on
This single setting activates three features simultaneously: resizing panes, selecting windows, and scrolling in copy mode. After adding this line, reload your configuration by running tmux source-file ~/.tmux.conf from within a Tmux session. If you prefer granular control, you can use set -g mouse select-pane on or similar flags, but mouse on is the standard recommendation for most users. If you do not see any change after enabling mouse support, the issue likely lies with your terminal emulator rather than Tmux itself. Some terminals require explicit permission to send mouse event codes. For example, in iTerm2, you may need to check "Allow Mouse Reporting" in preferences. In other terminals, ensure that the terminal type is correctly set to xterm-256color or similar, as generic xterm types may lack full mouse support. For those who find the default behavior intrusive, you can disable mouse support entirely by setting set -g mouse off. This forces reliance on keyboard shortcuts, which some power users prefer for consistency across different environments.

Troubleshooting Unresponsive Scrolling

When scrolling fails despite correct configuration, several factors could be at play. First, verify that you are actually in copy mode. The cursor should be inactive for normal typing. If you accidentally exit copy mode by pressing q or Esc, scrolling will stop. Second, check for conflicts with other plugins or custom bindings. If you have loaded additional scripts via TPM (Tmux Plugin Manager), they might override default behaviors. Look for lines in your config that explicitly set set -g mouse after plugin loads, as these will take precedence. Third, consider the size of the scrollback buffer. By default, Tmux limits the history to 2000 lines. If your output exceeds this, older lines are discarded, making it impossible to scroll back further. Increase this limit by adding:
set -g history-limit 10000
Adjust the number based on your system's memory capacity. A higher limit allows deeper scrolling but consumes more RAM. Finally, ensure your terminal emulator is not intercepting scroll events before they reach Tmux. Some integrated development environments (IDEs) or remote desktop protocols capture mouse inputs locally. Test scrolling in a plain SSH session to isolate whether the problem is local to your client or within the Tmux configuration. For more advanced navigation techniques, such as using Vim-style bindings, refer to our guide on Using Vim Shortcuts for Tmux Scrolling. This approach integrates seamlessly with copy mode for users already familiar with Vim motions.

Alternative Navigation Methods

Beyond mouse and basic keyboard shortcuts, Tmux offers powerful search capabilities within copy mode. Pressing / initiates a forward search, while ? starts a backward search. You can type a string to highlight matches in the buffer. This is particularly useful for finding specific error messages or log entries without manually scrolling through thousands of lines. Once a match is found, you can yank (copy) the text by pressing y. This copies the selected region to the Tmux clipboard, allowing you to paste it into other applications. This feature transforms Tmux into a robust text analysis tool directly within the terminal. Another useful tip is using Space to toggle between line mode and cell mode. In line mode, copying includes entire lines, whereas cell mode allows rectangular selections. Understanding these modes enhances productivity when extracting data from structured logs. If you encounter issues with hyperlinks or colored text disrupting your scroll experience, check out How to Enable Hyperlinks in TMUX Config File to ensure your visual environment remains stable during heavy usage.

Frequently Asked Questions

Why does my mouse wheel not work in Tmux?

Ensure that set -g mouse on is present in your ~/.tmux.conf and that you have reloaded the config. Additionally, verify that your terminal emulator supports mouse reporting and has not disabled it in its own settings.

How can I increase the scrollback buffer size?

Add set -g history-limit [number] to your configuration file, replacing [number] with your desired line count. Reload the config to apply the change immediately.

Can I use Vim keys to navigate in copy mode?

Yes, by binding keys in your config. Common bindings include mapping k and j to move up and down, and h and l to move left and right. Use bind-key k copy-mode-up and similar commands to achieve this.

What is the difference between copy mode and normal mode?

Normal mode accepts commands and interacts with the running process, while copy mode freezes the display and allows navigation through the historical output. You cannot interact with the program in copy mode; you are only viewing saved text.

Does Tmux support scrolling in split panes?

Yes, each pane maintains its own scroll history. When you enter copy mode in a specific pane, only that pane’s buffer becomes accessible for scrolling. Other panes remain unaffected until you switch focus and enter copy mode there as well.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More