Bug#259828: tabs mangled to spaces when copying from xterm - ideas on semantics

2004-08-12 Thread pcg
Hi, I just submitted additional info on your bug report #259828, but forgot to CC: you. The problem why this is non-trivial is that tabs are not replaced by spaces (as TD said), but that tabs are cursor movements, which cnanot be represented as tabs. See below:

Bug#259828: tabs mangled to spaces when copying from xterm - ideas on semantics

2004-08-12 Thread pcg
I thought about implementing this in rxvt-unicode: tabs could be represented trivially in rxvt-unicode's data structure. However, there are semantic problems: Tabs are not characters, but cursor movements. As such, there is no good way to represent them as tab characters, just as "cursor up" or "g

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-20 Thread Thomas Dickey
On Tue, Jul 20, 2004 at 09:30:11AM +0200, Branden Robinson wrote: > On Fri, Jul 16, 2004 at 09:02:20PM -0400, Thomas Dickey wrote: > > On Fri, Jul 16, 2004 at 08:43:38PM -0400, Lee Revell wrote: > > > > > Just tried konsole and gnome terminal. Neither of them currently seem > > > to work this wa

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-20 Thread Branden Robinson
On Fri, Jul 16, 2004 at 09:02:20PM -0400, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 08:43:38PM -0400, Lee Revell wrote: > > > Just tried konsole and gnome terminal. Neither of them currently seem > > to work this way, at least the versions in unstable don't. Even if > > konsole supported t

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-17 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 09:18:14PM -0400, Lee Revell wrote: > > > It seems like the mouse thing would be easy, if a click starts inside a > > > tab, that tab is part of the selection region. Same policy as clicking > > > on a space, you just treat tab as a big space. Then again I have never > > >

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
On Fri, 2004-07-16 at 21:02, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 08:43:38PM -0400, Lee Revell wrote: > > > Just tried konsole and gnome terminal. Neither of them currently seem > > to work this way, at least the versions in unstable don't. Even if > > konsole supported this I could n

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 08:43:38PM -0400, Lee Revell wrote: > Just tried konsole and gnome terminal. Neither of them currently seem > to work this way, at least the versions in unstable don't. Even if > konsole supported this I could not use it, it took 10 seconds to start. I guess you have a

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
On Fri, 2004-07-16 at 20:08, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 07:52:06PM -0400, Lee Revell wrote: > > > Hmm, interesting, so it is fixable. I wonder if any other terminals do > > this already. It would definitely be a nice usability enhancement. > > Actually, I've read that gnome

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
On Fri, 2004-07-16 at 19:45, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 07:40:06PM -0400, Lee Revell wrote: > > On Fri, 2004-07-16 at 19:30, Thomas Dickey wrote: > > > On Fri, Jul 16, 2004 at 07:15:33PM -0400, Lee Revell wrote: > > > > Sorry, I think this is important. It makes it impossible t

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 07:52:06PM -0400, Lee Revell wrote: > Hmm, interesting, so it is fixable. I wonder if any other terminals do > this already. It would definitely be a nice usability enhancement. Actually, I've read that gnome-terminal or konsole (don't recall which) does allow selection

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
On Fri, 2004-07-16 at 19:30, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 07:15:33PM -0400, Lee Revell wrote: > > Sorry, I think this is important. It makes it impossible to copy and > > paste a diff into an email and have the patch apply cleanly. As a > > well, if it's blocking you, I suggest

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 07:40:06PM -0400, Lee Revell wrote: > On Fri, 2004-07-16 at 19:30, Thomas Dickey wrote: > > On Fri, Jul 16, 2004 at 07:15:33PM -0400, Lee Revell wrote: > > > Sorry, I think this is important. It makes it impossible to copy and > > > paste a diff into an email and have the p

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
On Fri, 2004-07-16 at 18:34, Thomas Dickey wrote: > On Fri, Jul 16, 2004 at 11:40:08PM +0200, Lee Revell wrote: > > Package: xterm > > Version: 4.3.0.dfsg.1-6 > > Severity: important > ^ (disagree) > > > > > > xterm mangles tabs to spaces when copying/pasting with middle mouse

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 07:15:33PM -0400, Lee Revell wrote: > Sorry, I think this is important. It makes it impossible to copy and > paste a diff into an email and have the patch apply cleanly. As a well, if it's blocking you, I suggest you submit a patch to fix it. -- Thomas E. Dickey http://

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Thomas Dickey
On Fri, Jul 16, 2004 at 11:40:08PM +0200, Lee Revell wrote: > Package: xterm > Version: 4.3.0.dfsg.1-6 > Severity: important ^ (disagree) > > > xterm mangles tabs to spaces when copying/pasting with middle mouse > button. It's a well-known limitation: xterm selects text which

Bug#259828: tabs mangled to spaces when copying from xterm

2004-07-16 Thread Lee Revell
Package: xterm Version: 4.3.0.dfsg.1-6 Severity: important xterm mangles tabs to spaces when copying/pasting with middle mouse button. This can be easily reproduced by doing 'diff -u old_file new_file', then selecting the output and pasting into 'vim'. The tabs from the output have been convert