Copying a line that only looked broken
A path occupies two rows in a narrow terminal. What should happen to that visual wrap when it is copied into another window?

Two rows made by a narrow window
Imagine copying a long file path from a terminal into a message to a colleague. The narrow window displays it on two rows. If the pasted message splits the path as well, what has the colleague received?
I made up a path: reports/weekly-summary-2026-11.txt. Suppose everything after reports/weekly- drops onto the next row. Nobody pressed Enter inside the filename. The window ran out of room.
When taking that path elsewhere, I would want the two displayed rows to become one line again. The thing I am copying is the path, rather than the shape of a narrow window.
Now imagine two separate output lines, status=done and count=3. Joining them as status=donecount=3 would erase the boundary between records, rather than simply tidy their appearance.
Both cases move down a row on screen. They look similar while reading, but need different treatment when carried elsewhere.
That small action caught my attention in wterm’s documentation. Its feature list describes preserving explicit newlines and joining confirmed Ghostty soft wraps when copying.
The path and output in this essay are invented examples for thinking about that behavior. They are not results from installing wterm and testing its clipboard.
Drawing legible characters inside a dark rectangle can look like most of a terminal’s work. Selecting a line and putting it into another window leaves decisions to make.
What remains after the drag
wterm renders terminal text to the DOM. Its README scopes native browser selection and find to mounted rows. I like the prospect of retaining familiar browser gestures.
Still, being able to drag over characters leaves more to inspect before concluding that the intended sentence comes out intact.
For an imagined interface exporting that path, I would first copy it from a wide window. Then I would narrow the window until the path wraps. The pasted path should not change with the window’s width.
I would also consider output arriving during selection. If the display scrolls while I am selecting the beginning of a path, what will be selected by the end? A polished screenshot does not usually bring that question to mind.
Names containing Korean characters and symbols would be worth trying too. A character that looks whole should arrive whole, without making the recipient ask for the filename again. These are scenes I would check in the imagined interface, rather than failures observed in a particular implementation.
I would want to understand the scope of find as well. Searching mounted rows and searching all retained output can be different promises. Knowing what a search covered gives me somewhere to begin when looking again for a missing log entry.
I would not want explaining this small gesture to turn into teaching terminal internals. Someone handing over a path should be able to hand over the path. Someone moving two records should receive two lines.
The interesting part is the information needed to make that feel simple. A distinction that readers can ignore on screen becomes something the implementation needs to retain.
I suspect I might have written “copy supported” in a feature list and moved on. Thinking about what gets copied makes that short line of work rather longer.
In the colleague’s window
Return to the fictional message window. I have sent the path selected in the terminal, and my colleague is looking at it on their screen.
Their window might be wider than mine. Where my display wrapped is no longer very relevant.
“Did you press Enter in the middle?”
I would like to answer without first explaining how wide my terminal was. It occupied two rows on screen, but the thing handed over was one path.

