gwsw
gwsw
Is this the same as #62, or is it referring to a different case?
This seems like a good idea, however there are a couple of problems with this implementation. First, ttyname is not supported on all systems, so a check should be added...
It seems strange and rather useless for ttyname() to return a name that can't be opened. But anyway, currently if ttyname() fails to open, less uses stderr (fd 2). Does...
There doesn't seem to be any harm in making /dev/tty the backup if ttyname() returns an unopenable file, just as is currently done if ttyname() returns NULL. @Dale-M and @cgzones...
Using stdin would not work if a file is piped into less. In that case stdin refers to the input file, not the tty.
How are you thinking that the test for CSI would work? I'm don't know how it would be possible to test for CSI support.
Well, this issue is a little unclear to me. It seems to me that the presence of a 0x9B CSI is related to the source of the document being viewed,...
I don't see how it would be possible to do this and still break lines correctly. Without knowing how many spaces the terminal uses for a tab, less wouldn't know...
Well I guess less could set hardware tabs to match the desired tabs set via -x, but this seems fairly nontrivial.
I guess test files would help. I haven't been able to reproduce this based on your description. In step 1 I've tried both using "G" and paging down to the...