05-29-2008
macintosh
hello,
i am new to this forum. i own a macbook pro running mac os x 10.5.2 leopard. just wondering, if these forums will help me? i work a lot in an application called terminal, it is apples command line. i like programming and have questions, like there was a post about text scrolling, the person who started the thread asked when using cat and page is there a way to have the text scroll or slowly move across the screen. there was a couple of programs in the thread that looked interesting to me. when you are talking about a script, what is this? like what language are you talking about? in the same thread there was a post of a c program. i tried to paste the c program into a text editor, and then compile it. the program compiled with out any errors but when i went to run it nothing seemed to happen. i am wondering if the reason it didn't work was because i am running a mac? i can re-post the program if any one wanted me to?
also how do i post code on this forum?
7 More Discussions You Might Find Interesting
1. Where do I download LINUX & UNIX?
Hi all,
I'm a Mac-user (imac se at the moment), using Mac OS 9.1
I really want to learn how to work with unix-systems.
What is the best place for me to start?
Where can i download a system?
Can i still use my imac as a software basestation for an ibook running OS 9.1?
It seems like i... (9 Replies)
Discussion started by: Icarus
9 Replies
2. Shell Programming and Scripting
I need help i heard you can play halo over online and you have a macintosh version where can I get it please respond (1 Reply)
Discussion started by: memattmyself
1 Replies
3. UNIX for Advanced & Expert Users
I am in the process of reading up on and
learning about linux,and as i read, i am
seeing that it was built off of the unix
system platform,and i also believe that it
is used in the mac computer field,i would
like to know if this is true, and if i should
learn about the macintosh computer... (2 Replies)
Discussion started by: Bill1263
2 Replies
4. UNIX for Dummies Questions & Answers
Hi folks!
I am not a power user, and have been able to enable Postfix to run on my Macintosh. It was a little bit difficult for me. But I payed good attention, while following an Internet Tutorial.
Postfix version 2.1.5
I can send out emails, from local accounts or even from other... (0 Replies)
Discussion started by: fundidor
0 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I have been assigned the following task;
I have a Macintosh iBook laptop computer running OSX (10.3). This computer was used to download some unwanted content from the Internet. We know by looking at the browser history that these downloads took place between May 1 and May 3.
What... (0 Replies)
Discussion started by: olifer
0 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to use sed to process some files on Macs running OSX. Anyone know anything about Macs and sed?
Here's the problem
sed 's/^/ /g' test_file > endfile
(there are spaces betwen the second and third /, but the forum software compresses them)
This should put spaces at... (3 Replies)
Discussion started by: Laurel Maury
3 Replies
7. OS X (Apple)
Hi All,
I am having a clarification regarding the mounted file systems on a normal mac.
This is the output displayed once i launch terminal and key in mount
command.
**************************************************
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local,... (1 Reply)
Discussion started by: Achilles_Hectar
1 Replies
LEARN ABOUT DEBIAN
tcl_macevalresource
Tcl_MacSetEventProc(3tcl) Tcl Library Procedures Tcl_MacSetEventProc(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_MacSetEventProc, Tcl_MacConvertTextResource, Tcl_MacEvalResource, Tcl_MacFindResource, Tcl_GetOSTypeFromObj, Tcl_SetOSTypeObj,
Tcl_NewOSTypeObj - procedures to handle Macintosh resources and other Macintosh specifics
SYNOPSIS
#include <tcl.h>
int
Tcl_MacEvalResource(interp, resourceName, resourceNumber, fileName)
char*
Tcl_MacConvertTextResource(resource)
Handle
Tcl_MacFindResource(interp, resourceType, resourceName, resourceNumber, resFileRef, releaseIt)
Tcl_Obj*
Tcl_NewOSTypeObj(newOSType)
void
Tcl_SetOSTypeObj(objPtr, newOSType)
int
Tcl_GetOSTypeFromObj(interp, objPtr, osTypePtr)
void
Tcl_MacSetEventProc(procPtr)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter to use for error reporting, or NULL if no error reporting is desired.
CONST char *resourceName (in) Name of TEXT resource to source, NULL if number should be used.
int resourceNumber (in) Resource id of source.
CONST char *fileName (in) Name of file to process. NULL if application resource.
Handle resource (in) Handle to TEXT resource.
long resourceType (in) Type of resource to load.
CONST char *resFileRef (in) Registered resource file reference, NULL if searching all open resource files.
int *releaseIt (out) Should we release this resource when done.
int newOSType (in) Int used to initialize the new object or set the object's value.
Tcl_Obj *objPtr (in) Object whose internal representation is to be set or retrieved.
osTypePtr out Place to store the resulting integer.
Tcl_MacConvertEventPtr procPtr(in)
Reference to the new function to handle all incoming Mac events.
_________________________________________________________________
INTRODUCTION
The described routines are used to implement the Macintosh specific resource command and the Mac specific notifier.. They manipulate or use
Macintosh resources and provide administration for open resource file references.
DESCRIPTION
Tcl_MacEvalResource extends the source command to Macintosh resources. It sources Tcl code from a Text resource. Currently only sources
the resource by name, file IDs may be supported at a later date.
Tcl_MacConvertTextResource converts a TEXT resource into a Tcl suitable string. It mallocs the returned memory, converts ``
'' to ``
'',
and appends a null. The caller has the responsibility for freeing the memory.
Tcl_MacFindResource provides a higher level interface for loading resources. It is used by resource read.
Tcl_NewOSTypeObj is used to create a new resource name type object. The object type is "ostype".
Tcl_SetOSTypeObj modifies an object to be a resource type and to have the specified long value.
Tcl_GetOSTypeFromObj attempts to return an int from the Tcl object "objPtr". If the object is not already an int, an attempt will be made
to convert it to one.
Tcl_MacSetEventProc sets the event handling procedure for the application. This function will be passed all incoming Mac events. This
function usually controls the console or some other entity like Tk.
RESOURCE TYPES
Resource types are 4-byte values used by the macintosh resource facility to tag parts of the resource fork in a file so that the OS knows
how to handle them. As all 4 bytes are restricted to printable characters such a type can be interpreted as a 4 character string too.
KEYWORDS
macintosh, mac, resource, notifier
Tcl 8.1 Tcl_MacSetEventProc(3tcl)