all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: running from terminal
Date: Sat, 24 May 2008 17:26:24 +1000	[thread overview]
Message-ID: <87k5hk40yn.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.12144.1211604096.18990.help-gnu-emacs@gnu.org

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


       reply	other threads:[~2008-05-24  7:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12144.1211604096.18990.help-gnu-emacs@gnu.org>
2008-05-24  7:26 ` Tim X [this message]
2008-05-24  9:59 ` running from terminal Phil Carmody
2008-05-24  4:23 phillc
2008-05-24  6:31 ` Daniel Pittman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k5hk40yn.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.