what is it called when programs operate like man?
what is it called when programs operate like man?
Does anyone know if there is a term to describe what programs like `man` do, where they take over your terminal to display stuff without printing to stdout, so when they are finished/exited the stuff disappears?
Thanks.
Thanks.
Last edited by disciple on Sun 01 Sep 2013, 00:38, edited 1 time in total.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Like pressing Ctrl-L ?amigo wrote:I suspect most are just 'clearing' the screen -by printf-ing the 'clear screen character'.
That's quite different from what man or less does, as you can scroll up to see the output afterwards.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
I think that's a terminal emulator feature, called alternate screen switching or something like that. Basically, when a "full-screen" terminal program starts, the terminal emulator switches the buffers around; when the program exits, the terminal emulator switches it back to the main screen buffer.
In xterm, you can ctrl+middleclick to select/unselect this feature.
If you run the programs in the Linux console, you don't have alternate screen switching.
In xterm, you can ctrl+middleclick to select/unselect this feature.
If you run the programs in the Linux console, you don't have alternate screen switching.
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Those programs are in "raw mode", a bit of info is here:
http://www.tldp.org/HOWTO/Text-Terminal ... ormal_exit
but no code - I think dialog does the same thing (maybe all curses programs?)
http://www.tldp.org/HOWTO/Text-Terminal ... ormal_exit
but no code - I think dialog does the same thing (maybe all curses programs?)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
Bingo!Ibidem wrote:I think that's a terminal emulator feature, called alternate screen switching or something like that. Basically, when a "full-screen" terminal program starts, the terminal emulator switches the buffers around; when the program exits, the terminal emulator switches it back to the main screen buffer.
In xterm, you can ctrl+middleclick to select/unselect this feature.
If you run the programs in the Linux console, you don't have alternate screen switching.
http://invisible-island.net/xterm/ctlse ... n%20Buffer
You can use "tput smcup" to activate the alternate buffer, and "tput rmcup" to return to the original buffer. As Ibidem said - it won't work on linux console itself because the capability isn't supported, but on xterm and urxvt it works well.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Haven't he heard of "screen" or "tmux" (or, how about opening multiple xterm windows)?disciple wrote:Ah, thanks.
So here's someone circumventing it
https://blogs.oracle.com/samf/entry/smcup_rmcup_hate
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]
Or Ctrl+Middleclick?jamesbond wrote:Haven't he heard of "screen" or "tmux" (or, how about opening multiple xterm windows)?disciple wrote:Ah, thanks.
So here's someone circumventing it
https://blogs.oracle.com/samf/entry/smcup_rmcup_hate
(For xterm, there are menus. You just have to press Ctrl while you click.)
He probably thinks this is nice and simple compared to them.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER