Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use 'screen' as a serial terminal emulator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use 'screen' as a serial terminal emulator
Authored by: wcontello on Mar 18, '07 05:53:58PM
Here is an addition I made to select the serial port and the baud rate:

set baudList to {1200, 2400, 4800, 4800, 9600, 19200, 38400, 57600, 115200, 230400}

set baudRate to (choose from list baudList default items {38400})

tell application "Terminal"

set serialDevices to (do shell script "ls /dev/cu*")

set theDeviceList to (paragraphs of serialDevices) as list

set theDevice to (choose from list theDeviceList)

do script "screen " & theDevice & " " & baudRate

display dialog "To quit you terminal session type then "

end tell

Edited on Jun 05, '10 09:40:56AM by crarko


[ Reply to This | # ]
Use 'screen' as a serial terminal emulator
Authored by: wcontello on Mar 19, '07 09:55:03AM

the second to last line should have been:
display dialog "To quit you terminal session type <ctrl-a> then <ctrl-\\>"



[ Reply to This | # ]
Use 'screen' as a serial terminal emulator
Authored by: wcontello on Mar 19, '07 06:03:46PM
The second to last should have read:

    display dialog "To quit you terminal session type then "


[ Reply to This | # ]