* running from terminal
@ 2008-05-24 4:23 phillc
2008-05-24 6:31 ` Daniel Pittman
0 siblings, 1 reply; 4+ messages in thread
From: phillc @ 2008-05-24 4:23 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
hi,
i am using ubuntu (gui) and to start emacs, i open a terminal and type
emacs.
however, that then causes the terminal to stop, rendering it useless,
despite it still existing, until in cntrl - c out of it.
is there anyway to launch emacs without it being dependant upon the
terminal?
[-- Attachment #2: Type: text/html, Size: 309 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: running from terminal
2008-05-24 4:23 phillc
@ 2008-05-24 6:31 ` Daniel Pittman
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Pittman @ 2008-05-24 6:31 UTC (permalink / raw)
To: help-gnu-emacs
phillc <spyyderz@gmail.com> writes:
> i am using ubuntu (gui) and to start emacs, i open a terminal and type
> emacs.
That seem cumbersome and unnecessary. Try starting it from a menu or
other GUI shortcut, or running it from the "run program" widget provided
by the distribution.
> however, that then causes the terminal to stop, rendering it useless,
> despite it still existing, until in cntrl - c out of it.
No, it doesn't. The emacs process is running and connected to the
terminal, even though it isn't using that. This is the normal, correct
and expected behaviour of running a process from the command line.[1]
> is there anyway to launch emacs without it being dependant upon the
> terminal?
Plenty. The first set of suggestions probably help.
However, if you insist on starting the tool from a command shell inside
a terminal and detaching it manually the invocation you are looking for
would be[2]:
] emacs & disown; exit
That would start emacs in the background, remove it from the bash process
group of the shell, then exit the shell and, consequently, the graphical
terminal emulator.
HTH, HAND.
Daniel
Footnotes:
[1] It has become fashionable for some GUI applications to fork
themselves away from the controlling terminal, these days, but many
tools still work the right ^W traditional way.
[2] ...assuming you have the default setup of bash as a login shell,
which seems a likely bet, or have used something similarly derived.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: running from terminal
[not found] <mailman.12144.1211604096.18990.help-gnu-emacs@gnu.org>
@ 2008-05-24 7:26 ` Tim X
2008-05-24 9:59 ` Phil Carmody
1 sibling, 0 replies; 4+ messages in thread
From: Tim X @ 2008-05-24 7:26 UTC (permalink / raw)
To: help-gnu-emacs
phillc <spyyderz@gmail.com> writes:
> hi,
> i am using ubuntu (gui) and to start emacs, i open a terminal and type emacs.
> however, that then causes the terminal to stop, rendering it useless, despite
> it still existing, until in cntrl - c out of it.
>
> is there anyway to launch emacs without it being dependant upon the terminal?
>
You ahve things slightly mixed up conceptually. When you open a
terminal, you are in fact using something like xterm, kterm,
gnome-terminal etc, that runs a shell and provides you with an interface
to that shell.
This means that what you need to look at are the job control
capabilities of the shell you are using.
Most shells support the concept of running a process in the
background. In most shells this is achieved by appending a '&' to the
command, which tells the shell to run the command in the background and
immediately return the foreground process (i.e. your interactive
shell). Most shells also have command for manipulating processes and
moving them into the forground and background etc. Exactly how depends
on the shell (i.e. bash, zsh, csh, tcsh etc).
Note also that control-c as a way of quitting a program is a pretty bad
habit. and won't always have the expected result. If you have to do a
ctl-c to exit the terminal you started emacs in, then emacs must still
be running and doing this is likely to kill both emacs and the
terminal. If you exited emacs first, your terminal prompt would return
and you could use logout/exit to close the terminal.
HTH
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: running from terminal
[not found] <mailman.12144.1211604096.18990.help-gnu-emacs@gnu.org>
2008-05-24 7:26 ` running from terminal Tim X
@ 2008-05-24 9:59 ` Phil Carmody
1 sibling, 0 replies; 4+ messages in thread
From: Phil Carmody @ 2008-05-24 9:59 UTC (permalink / raw)
To: help-gnu-emacs
phillc <spyyderz@gmail.com> writes:
> hi,
> i am using ubuntu (gui) and to start emacs, i open a terminal and type emacs.
> however, that then causes the terminal to stop, rendering it useless, despite
> it still existing, until in cntrl - c out of it.
>
> is there anyway to launch emacs without it being dependant upon the terminal?
Assuming you're using a shell like 'bash', then just append an
ampersand to the command line. This is known as running it in
the 'background'.
Emacs will then happily run independently of the terminal and
shell. You can continue using the shell to do other things, and
can even close the terminal if you want.
Look in your shell's manpages for words like foreground,
background, and job control.
Phil
--
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-24 9:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.12144.1211604096.18990.help-gnu-emacs@gnu.org>
2008-05-24 7:26 ` running from terminal Tim X
2008-05-24 9:59 ` Phil Carmody
2008-05-24 4:23 phillc
2008-05-24 6:31 ` Daniel Pittman
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.