Bug 79650
Summary: | less -F option isn't useful in gnome-terminal | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Robin Green <greenrd> | ||||||||
Component: | less | Assignee: | Jindrich Novy <jnovy> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
Severity: | low | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | rawhide | CC: | jnovy, nalin, pknirsch, praszyk, zcerza | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2005-10-21 14:57:55 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Robin Green
2002-12-14 16:06:42 UTC
This bug still exists in Rawhide. less uses ncurses for displaying file content on the screen and restores the original content on exit. Note that less is not intended for diplaying file contents on terminal non-interactively. You can use cat or something for this purpose instead. I agree the -F option is useless though. The -F option is not useless per se. It works fine on the linux console (and also in the "screen" terminal emulator, I have since found out). What I'm requesting here is for it to also work, in the same way, in the gnome-terminal terminal emulator. (The bug title could be better phrased, I admit.) What needs to be done here, I believe, is add logic to less to not send the special ANSI sequences that it normally sends, if -F is supplied and the file is less than one screenful long. This looks like a termcap issue IMO. Maybe Petr will help here. Created attachment 120251 [details]
patch
Discussed with jnovy. There was a patch for 'less' prepared.
We will fix the issue above as BUG IN LESS.
less-392-capa-te.patch
Petr, thanks for your help! Reassigning back to less. Created attachment 120257 [details]
A bit groomed patch applied to fix it.
Created attachment 120258 [details]
Sorry, this is the right one.
|