all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Issues running shell/tshell
@ 2005-09-30 13:47 aizenman
  2005-09-30 13:58 ` Pascal Bourguignon
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: aizenman @ 2005-09-30 13:47 UTC (permalink / raw)


Hi all,

I'd like to run a shell in emacs because I hear that it's so damn cool
:-) But both shell options (shell and tshell) have their issues that
make them unuseable.  Does anyone know the solutions?

-shell-
I'd like to be able to use up and down arrow to get history.  Is there
perhaps a line I can put in my .emacs to give me that option?

-tshell-
Formatting is terrible:
~/foo/ > ls
aasdfasdf		  basdfasdf*		 casdfasdfasdf*
											       asdfasdfasdf		  fgsdfgsdfg			 xcvzxcveafgds
							       qweryietyur		  vbmnfjkfk

Any thoughts on how to make it recognize the screen width?

-general-
Is there a way to get proper syntax coloring?

Thanks!
~aizenman

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Issues running shell/tshell
  2005-09-30 13:47 Issues running shell/tshell aizenman
@ 2005-09-30 13:58 ` Pascal Bourguignon
  2005-09-30 14:27   ` aizenman
  2005-09-30 14:30 ` EScott
  2005-09-30 15:57 ` Kevin Rodgers
  2 siblings, 1 reply; 5+ messages in thread
From: Pascal Bourguignon @ 2005-09-30 13:58 UTC (permalink / raw)


aizenman@gmail.com writes:

> Hi all,
>
> I'd like to run a shell in emacs because I hear that it's so damn cool
> :-) But both shell options (shell and tshell) have their issues that
> make them unuseable.  Does anyone know the solutions?
>
> -shell-
> I'd like to be able to use up and down arrow to get history.  Is there
> perhaps a line I can put in my .emacs to give me that option?
>
> -tshell-
> Formatting is terrible:
> ~/foo/ > ls
> aasdfasdf		  basdfasdf*		 casdfasdfasdf*
> 											       asdfasdfasdf		  fgsdfgsdfg			 xcvzxcveafgds
> 							       qweryietyur		  vbmnfjkfk
>
> Any thoughts on how to make it recognize the screen width?

I don't know tshell, but perhaps:
   stty columns 80 
could help.
What does:
   stty -a
print?

> -general-
> Is there a way to get proper syntax coloring?

(add-hook 'shell-mode-hook
          (lambda ()
            (set-variable 'tab-width 8)
            (setf comint-process-echoes t)
            (when (fboundp 'ansi-color-for-comint-mode-on)
              (ansi-color-for-comint-mode-on))))

-- 
"You question the worthiness of my code? I should kill you where you
stand!"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Issues running shell/tshell
  2005-09-30 13:58 ` Pascal Bourguignon
@ 2005-09-30 14:27   ` aizenman
  0 siblings, 0 replies; 5+ messages in thread
From: aizenman @ 2005-09-30 14:27 UTC (permalink / raw)


Rats.  stty columns 80 didn't change anything.  Stty -a produces:

~> speed 9600 baud;
intr = ^C; quit = ^\; erase = ^H; kill = <undef>; eof = ^D; eol =
<undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
dsusp = ^Y;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany imaxbel
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
bs0 vt0
ff0
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt
echoctl echoke

Additionally, there seems to be an issue where it doesn't handle
newlines correctly in shell:
 ~ >  ~/ >  ~/ >

Any thoughts on getting things to work right?
Thanks!
~aizenman

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Issues running shell/tshell
  2005-09-30 13:47 Issues running shell/tshell aizenman
  2005-09-30 13:58 ` Pascal Bourguignon
@ 2005-09-30 14:30 ` EScott
  2005-09-30 15:57 ` Kevin Rodgers
  2 siblings, 0 replies; 5+ messages in thread
From: EScott @ 2005-09-30 14:30 UTC (permalink / raw)
  Cc: help-gnu-emacs, help-gnu-emacs-bounces+escott=nyiso.com


[-- Attachment #1.1: Type: text/plain, Size: 1037 bytes --]

Try eshell.

EricS

help-gnu-emacs-bounces+escott=nyiso.com@gnu.org wrote on 09/30/2005 
09:47:42 AM:

> Hi all,
> 
> I'd like to run a shell in emacs because I hear that it's so damn cool
> :-) But both shell options (shell and tshell) have their issues that
> make them unuseable.  Does anyone know the solutions?
> 
> -shell-
> I'd like to be able to use up and down arrow to get history.  Is there
> perhaps a line I can put in my .emacs to give me that option?
> 
> -tshell-
> Formatting is terrible:
> ~/foo/ > ls
> aasdfasdf        basdfasdf*       casdfasdfasdf*
>                                         asdfasdfasdf 
> fgsdfgsdfg          xcvzxcveafgds
>                             qweryietyur        vbmnfjkfk
> 
> Any thoughts on how to make it recognize the screen width?
> 
> -general-
> Is there a way to get proper syntax coloring?
> 
> Thanks!
> ~aizenman
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

[-- Attachment #1.2: Type: text/html, Size: 1670 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Issues running shell/tshell
  2005-09-30 13:47 Issues running shell/tshell aizenman
  2005-09-30 13:58 ` Pascal Bourguignon
  2005-09-30 14:30 ` EScott
@ 2005-09-30 15:57 ` Kevin Rodgers
  2 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2005-09-30 15:57 UTC (permalink / raw)


aizenman@gmail.com wrote:
 > I'd like to run a shell in emacs because I hear that it's so damn cool
 > :-) But both shell options (shell and tshell) have their issues that
 > make them unuseable.  Does anyone know the solutions?
 >
 > -shell-
 > I'd like to be able to use up and down arrow to get history.  Is there
 > perhaps a line I can put in my .emacs to give me that option?

History is available in the *shell* buffer via M-p and M-n.  The up and
down arrows move point up and down, as usual, but you can change their
default bindings like this:

(add-hook 'shell-mode-hook
           (lambda ()
             (local-set-key (kbd "<up>") 'comint-previous-input)
             (local-set-key (kbd "<down>") 'comint-next-input)))

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-30 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 13:47 Issues running shell/tshell aizenman
2005-09-30 13:58 ` Pascal Bourguignon
2005-09-30 14:27   ` aizenman
2005-09-30 14:30 ` EScott
2005-09-30 15:57 ` Kevin Rodgers

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.