* Suspending emacs on character terminals and "screen switching"
@ 2007-05-04 23:25 Casper Gripenberg
2007-05-06 6:19 ` Maciej Katafiasz
0 siblings, 1 reply; 4+ messages in thread
From: Casper Gripenberg @ 2007-05-04 23:25 UTC (permalink / raw)
To: help-gnu-emacs
Does anyone know what the terminal capability is that
makes emacs switch back to the "shell screen" when you
suspend emacs?
I made a gif animation showing what I mean:
http://zoidberg.homeip.net/schtuff/EmacsSuspendSwitch.gif
I run emacs on two computers. One is OpenBSD and the
other FreeBSD. Emacs works fine on both but on FreeBSD
I can't get it to "switch screens" when I suspend it.
No matter what terminal type I set.
The screen switching is really useful when having to
suspend emacs and go back to the command line to see
what your program output was, or part of a manpage or
whatever.
Why can't I get it to work on FreeBSD? What terminal
capability or setting is missing over there? I'm sure
I could tweak a termcap file or something and get it
going, but I can't figure out what it is emacs is
looking for to activate this switching feature.
Look in the video. Setting term to xterm activates
the behaviour, setting it to vt100 disables it.
Anyone got any ideas how to get emacs to do this
on my FreeBSD box too?
Casper
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Suspending emacs on character terminals and "screen switching"
[not found] <mailman.313.1178390702.32220.help-gnu-emacs@gnu.org>
@ 2007-05-05 19:06 ` Romain Francoise
2007-05-05 20:03 ` Tyler Smith
1 sibling, 0 replies; 4+ messages in thread
From: Romain Francoise @ 2007-05-05 19:06 UTC (permalink / raw)
To: help-gnu-emacs
Casper Gripenberg <casper.gripenberg@kotiportti.fi> writes:
> Does anyone know what the terminal capability is that makes emacs
> switch back to the "shell screen" when you suspend emacs?
What you're seeing is called the "alternate screen", when TERM=xterm
Emacs draws its frame in the alternate screen, leaving the original
screen alone. When TERM=vt100 then Emacs uses the original screen
buffer, which (as you've noticed) makes scrollback invisible. The
corresponding termcap entries are 'ti' and 'te'.
A Google search for "xterm alternate screen" should return plenty of
relevant results.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Suspending emacs on character terminals and "screen switching"
[not found] <mailman.313.1178390702.32220.help-gnu-emacs@gnu.org>
2007-05-05 19:06 ` Suspending emacs on character terminals and "screen switching" Romain Francoise
@ 2007-05-05 20:03 ` Tyler Smith
1 sibling, 0 replies; 4+ messages in thread
From: Tyler Smith @ 2007-05-05 20:03 UTC (permalink / raw)
To: help-gnu-emacs
On 2007-05-04, Casper Gripenberg <casper.gripenberg@kotiportti.fi> wrote:
>
> The screen switching is really useful when having to
> suspend emacs and go back to the command line to see
> what your program output was, or part of a manpage or
> whatever.
>
You can read manpages from within Emacs using M-x man, or run a
separate shell in an Emacs buffer for testing programs with M-x
shell. I know that doesn't help solve your problem, but it could limit
how often you actually need to switch back to the command line.
Cheers,
Tyler
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Suspending emacs on character terminals and "screen switching"
2007-05-04 23:25 Casper Gripenberg
@ 2007-05-06 6:19 ` Maciej Katafiasz
0 siblings, 0 replies; 4+ messages in thread
From: Maciej Katafiasz @ 2007-05-06 6:19 UTC (permalink / raw)
To: help-gnu-emacs
Den Sat, 05 May 2007 02:25:08 +0300 skrev Casper Gripenberg:
> Why can't I get it to work on FreeBSD? What terminal
> capability or setting is missing over there? I'm sure
> I could tweak a termcap file or something and get it
> going, but I can't figure out what it is emacs is
> looking for to activate this switching feature.
It seems to be smcup / rmcup, nrrmc also influences that, according to the
manpage.
Cheers,
Maciej
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-06 6:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.313.1178390702.32220.help-gnu-emacs@gnu.org>
2007-05-05 19:06 ` Suspending emacs on character terminals and "screen switching" Romain Francoise
2007-05-05 20:03 ` Tyler Smith
2007-05-04 23:25 Casper Gripenberg
2007-05-06 6:19 ` Maciej Katafiasz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.