Terminal and tetris query

Hi All,

In this months Macworld magazine they have a small section on the Terminal application. It gives a few command codes one of which allows you to change the leopard dock to 2D. Another lets you play Tetris.

I however cannot get this to work, has anyone else found this problem? Basically the first command in the Terminal screen is : emacs , when I type this though I just get an error message....

Macbook, Mac OS X (10.5.5)

Posted on Oct 28, 2008 2:41 PM

Reply
32 replies

Oct 29, 2008 1:46 PM in response to Michael Conniff

Michael Conniff wrote:
I think you may need to follow the instructions in Brian P. Campbell's post here.

But first: what do you get from
ls -l /usr/bin/emacs*


And, if you can remember, tell us how you got Leopard: Upgrade Instal from Tiger, or Archive & Instal, or Erase & Instal?


I have the same version as you and did the default (merge) update from Tiger on this box.
I would presume that if the default install updated emacs, that an A&I would do the same.
On the outside chance that Fink installed that version I checked and it is not listed as installed by Fink. However, Fink lists emacs 22.2-1002 as their latest version, but Fink lives it its own world AFAIAC 🙂

I am always amazed at how interesting some of these threads become and how much I am learning.
The thread about the maintenance scripts started on a completely different issue and finally migrated over to the Leopard forum.

Oct 28, 2008 2:47 PM in response to golfdriver

Could you give me the link to the article so I can try the commands on my machine?

EDIT: I think I found the link. Is it http://www.macworld.com/article/45860/2005/07/terminaltricks.html ?

If so, the command should be:

emacs (with NO spaces on either side).
Then press "return". Press "esc", then "X", and then type:

tetris (again, NO spaces).

Arrow keys control the blocks.

To quit, press Control-X, then Control-C.

Good luck!

P.S. Welcome to Discussions!

Message was edited by: joshz

Oct 28, 2008 5:08 PM in response to golfdriver

Strange: that's the same as mine (apart from the date). I'll think some more …

OK, open the Console and open a second window on system.log. Then try the emacs command again, and see if you get any further error messages there, as well as your "Fatal malloc_jumpstart() error".

May not get back to you today …

Message was edited by: Michael Conniff

Oct 28, 2008 8:31 PM in response to Paul4900

There are some geometry settings for emacs but they only change the size of the X window, not anything inside.

I presume it's more of a "hey! look, emacs can do this" kind of thing 🙂

There is also 'life' for those who are interested.

In fact, FWIW I found this:

If you are a little bit bored, you can try M-x hanoi. If you are considerably bored, give it a numeric argument. If you are very, very bored, try an argument of 9. Sit back and watch.

If you want a little more personal involvement, try M-x gomoku, which plays the game Go Moku with you.

M-x blackbox, M-x mpuz and M-x 5x5 are puzzles. blackbox challenges you to determine the location of objects inside a box by tomography. mpuz displays a multiplication puzzle with letters standing for digits in a code that you must guess—to guess a value, type a letter and then the digit you think it stands for. The aim of 5x5 is to fill in all the squares.

M-x decipher helps you to cryptanalyze a buffer which is encrypted in a simple monoalphabetic substitution cipher.

M-x dunnet runs an adventure-style exploration game, which is a bigger sort of puzzle.

M-x lm runs a relatively non-participatory game in which a robot attempts to maneuver towards a tree at the center of the window based on unique olfactory cues from each of the four directions.

M-x life runs Conway's “Life” cellular automaton.

M-x morse-region converts text in a region to Morse code and M-x unmorse-region converts it back. No cause for remorse.

M-x pong plays a Pong-like game, bouncing the ball off opposing bats.

M-x solitaire plays a game of solitaire in which you jump pegs across other pegs.

M-x studlify-region studlify-cases the region, producing text like this:

M-x stUdlIfY-RegioN stUdlIfY-CaSeS thE region.
M-x tetris runs an implementation of the well-known Tetris game. Likewise, M-x snake provides an implementation of Snake.

When you are frustrated, try the famous Eliza program. Just do M-x doctor. End each input by typing <RET> twice.

When you are feeling strange, type M-x yow.

The command M-x zone plays games with the display when Emacs is idle.


http://www.gnu.org/software/emacs/manual/html_mono/emacs.html

Message was edited by: nerowolfe

Oct 29, 2008 9:49 AM in response to golfdriver

golfdriver wrote:
It does indeed seem complicated to me but probably very simple to some of you guys, would someone be kind enough to run me through what I need to do?


In addition to determining the version of emacs you have, or whether or not you even have emacs, remember that emacs is one of the more difficult tools to use. It's not just a text editor, it's a thing unto itself with curious arcane command structures that make veteran vi users scratch their heads on occasion. 🙂
emacs is not the best way to begin using Unix. As a command-line tool, I would say it's like starting at the top.

emacs can be used to write a program in almost any language, with checking, compile it, and execute it, without ever leaving the emacs environment. And that's only one little thing it can do.

Read the link I provided for the emacs manual, especially the commands.

If you get stuck in an emacs environment, use Ctl-z once or twice to get free.
That's the ctrl key, not the cmd key.

As suggested, here is what I get from

emacs --v

GNU Emacs 22.1.1
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Oct 29, 2008 10:11 AM in response to nerowolfe

nerowolfe wrote:
Is emacs part of BSD or did in install with the Developer/XTools package?
All my Macs have the Developer pack installed, so I cannot tell.

Now if you'd asked me three days ago, I could have answered, since I was preparing a new Mac for my daughter, but I've now shipped it on 🙂

My own Macs have Developer Tools, so again I can't say. I'll try and find out.

However, I just realised that my last suggestion to the OP was pretty dumb. He has emacs in /usr/bin, and it is the same size as mine, so is likely to be the same version, 22.1.1.

Still, it will be interesting to know if it responds correctly to this without crashing. But I'm not very hopeful.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal and tetris query

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.