Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: "Less" perl output

by betterworld (Curate)
on Sep 12, 2008 at 12:52 UTC ( [id://710892]=note: print w/replies, xml ) Need Help??


in reply to "Less" perl output

What you are describing is the "alternate screen" feature that some terminal emulators have. The linux virtual console, for instance, doesn't have this feature.

not leaving a trace in your terminal.

Actually this is not 100% true. In xterm you can find "Show alternate screen" in the menu that opens when you hold down Ctrl-MiddleButton. Even after less has been quit, xterm still shows its display (of your secret files) in the alternate screen.

Update: Regarding your question how you can do this: I think that ncurses (which "less" uses) does this by default when you initiate the screen, so you should be able to do this with the Curses module (as atcroft suggests).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://710892]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2026-01-24 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (126 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.