If anyone can reply with a link to a tutorial on how to wrap an interactive Unix App in Cocoa, that would be the next step - it would be nice to do this without involving Terminal. man screen will show you further commands to send to a screen session.
If you fail to do this and exit a Terminal session, you'll leave the screen session alive and the serial resource unavailable until you kill the screen session manually. So type Control-A followed by Control-\ to exit your screen session. Screen uses Control-A to take commands directed to it. The FTDI drivers came with Mavericks, and I can see the device just fine as /dev/tty.usbserial-A123456. You may also need to customize the screen command with a different device name if you are using something other than the Keyspan Serial Adapter (do an ls tty* of the /dev/ directory to get the right name). Hi there, I have an FTDI based system that I am able to communicate with fine on a Linux machine using: talk -d /dev/ttyUSB0 but I would like to do programming using my Mac (running 10.9.5). You may want to customize this slightly - you can change the screen colors or number of columns or rows. Set custom title of window 1 to "SerialOut"Ĭompile and save as an app from within Script Editor, and you have a double-clickable application to launch a serial Terminal session. Set normal text color of window 1 to "green" Set background color of window 1 to "black" Among many other features it also has built-in Macro scripting language. Solution: Use screen, Terminal, and a little AppleScripting.įirst, launch Script Editor and type/paste in the following code:ĭo script with command "screen /dev/tty.KeySerial1" Tera Term is the terminal emulator for Microsoft Windows, that supports serial port, telnet and SSH connections.