verify checklist: scroll text with wide characters into the terminal history

Open Beginner friendly
#2,525 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
c, markdown
Domain
documentation

Research direction

Update .claude/skills/verify/checklist.md, adding the wide-character scrollback case to the terminal checklist. The checklist should instruct verification to print text such as 日本語の行 あいうえお and printf 'あb\r \n', scroll it into terminal history, and confirm that the history preserves the displayed columns. Run the updated verify checklist against changes involving extensions/terminal/terminal.c or scrollback-line rendering; the issue is done when the checklist can detect garbled wide-character history.

Written by the indexing model from the issue text.

Description

#2522 fixed a bug that verification had not caught: in M-x terminal, every line holding a wide character (Japanese text) was garbled once it scrolled into the history, because the scrollback line was built from the cells in C (terminal_sb_line_extract) and not the way the screen is rendered (render-row-direct). The checklist item "Scrolling a terminal buffer" in .claude/skills/verify/checklist.md scrolls the history with ASCII output only (seq, a spinner), so it could not see it.

CLAUDE.md asks for a checklist item when a bug gets past verification. Add to that item (or a new one under "Terminal"), for changes to extensions/terminal/terminal.c or to how scrollback lines are made: print text with wide characters (e.g. 日本語の行 あいうえお, and printf 'あb\r \n' for a space over half a wide character), scroll it into the history, and see that the history shows each line as the screen showed it, columns included.

Found by the review of #2522.

An agent can fix this and check it with verify.

Dominant language
Common Lisp
Stars
3.1k
Forks
261
Avg merge
1d 1h
Merged PRs (30d)
117

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lem-project/lem

All issues in lem-project/lem

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.