ftp.nice.ch/pub/next/developer/resources/classes/misckit/MiscKit.1.10.0.s.gnutar.gz#/MiscKit/Examples/TinyTerm

English.lproj/
 
Makefile
 
Makefile.postamble
 
Makefile.preamble
 
MiscSerialPort.m → ../../Source/MiscKit/MiscSerialPort.m
[Download]
PB.gdbinit
 
PB.project
 
README
 
TinyTerm.iconheader
 
TinyTermWindow.h
[View TinyTermWindow.h] 
TinyTermWindow.m
[View TinyTermWindow.m] 
TinyTerm_main.m
[View TinyTerm_main.m] 

README

The TinyTerminal example creates a really dumb terminal window and connects it to "/dev/cufa". You might need to change the permissions on /dev/cufa to use it if you get a window that says the port couldn't open (in the title). You can change the port by editing the source. To fix the permissions su to root and do: "chmod 666 /dev/cu*". Alternately you can make the program suid to uucp which is usually the owner of cufa.

I have tried to keep this as simple as possible. All of the setup for the serial port and event handling is done in TinyTermWindow.m including key events. The makeFirstResponder: method of Window is overridden to keep the text object from gaining control.

I hope you find many good uses for the MiscSerialPort object. It was used on my terminal program Modulator (available at finer archive sites) and has had some testing but if you find any bugs or have any suggestions mail them to me at:

matt@drefla.mese.com

Changes to version 1.1 include the following:

Updated documentation
Changed the name of -continue to -resume (the old name is left in for backwards compatability) due to the fact that continue is a C keyword!
Efficiency is improved in the receive routines.

Special thanks to Eric Norum for helping to improve the efficiency of the code.

Matt Brandt

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.