[TAG] puzzled by cut-n-paste
Kapil Hari Paranjape
kapil at imsc.res.in
Wed Nov 9 07:32:34 MSK 2005
On Tue, 08 Nov 2005, Peter Knaggs wrote:
> I guess this is a Debian question, at least I've
> only had this problem since moving to Debian, and
> as it's the only puzzle of this type I've come
> across, I figure I might as well try to understand
> it. So far, though, I'm stumped :)
> Hopefully I described the sequence in sufficient
> detail you can reproduce it. Any ideas on how
> to debug or what could be the cause?
I think the problem has nothing really to do with "vi" per se.
It is more likely the point that the display buffer of your terminal
is being cleared before you "paste".
1. Does your terminal have a scroll-buffer?
2. Try to repeat this experiment with the first "vi" replaced
by any program which uses "full-screen" mode and clears the
3. Repeat your experiment with "ed" (which is line-by-line rather
that "full-screen") in place of "vi".
Point to ponder:
"When the screen is wiped clear where does the data on it go?"
Note that security/paranoia dictates that "vi" (or any
editor/terminal/user program) should clear data-buffers before releasing
them to the general kernel pool.
More information about the TAG