惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

Julia Evans: TIL

You don't have to close <p> or <li> tags Advice for writing alt text Al Sweigart's Python books are available for free Resources for upgrading Django esbuild can build css In CSS you can populate `content:` with a `data-` attribute fx: a jq replacement You can use `fzf` to review git commits pip install --user can override system libraries You can run `tty` to see your current TTY CSS supports nested selectors now! strace's `--tips` `**` works for globbing in the shell Environment variables with no equals sign Tiny IP-KVM devices exist why the text disappers from my PDF when I print it Emoji Kitchen strace has a --stack-traces option Some programming languages buffer stdout and some don't
Two ways the mouse wheel works in the terminal
Julia Evans · 2026-05-31 · via Julia Evans: TIL

« back to all TILs

Two ways the mouse wheel works in the terminal

Learned today (thanks to Simon Tatham) that there are 2 different ways the mouse’s scroll wheel can work in the terminal:

  1. if the application (like less) enables the alternate screen buffer, then scroll events are ESC O A or ESC O B (like pressing the up and down keys)
  2. if mouse reporting is on, scroll events are reported to the program like other mouse events, as button press 4/5, with the coordinates of where your mouse was included

(as well as the default where your terminal emulator will just scroll the terminal window without telling the program that you’re scrolling)

This makes sense in retrospect because:

a) I’ve noticed that some TUI programs (like lazygit) have multiple areas and you can scroll each area independently with the mouse, which “feels’ like it would have to use mouse reporting” (and it does) a) it felt weird to me that less would support mouse reporting and indeed it doesn’t

I don’t think this is that useful in practice but it’s kind of interesting that sometimes the scroll wheel is just another way to press arrow keys really fast and sometimes it acts more like a GUI scroll wheel.