Install Hyper, iTerm2, or Terminal Let's walk through installing a terminal app. Feel free to use any terminal option, including the terminal app that comes installed on MacOS. I'll be using Hyper, which you can install from hyper.is.
Smart scroll 4 3 7. Using a few guides on the web and a little bit of ingenuity I was ableto get my FTDI-based, USB to 2x Serial adapter working in Mac OSX 10.9Mavericks with iTerm 2. This post documents the process and resourcesused in the hope of becoming the definitive guide to setting up a USBserial adapter in OSX and using iTerm2 as the terminal emulator. Even ifit isn’t quite definitive, it should at least be useful to others - Ihope!
Choose your weapon
![Iterm Iterm](https://image.made-in-china.com/226f3j00kaoQgSelACbJ/Kubota-Original-V-Belt-Bando-for-Sale.jpg)
- With iTerm2 1.0.0 on Mac OS X 10.6.8, I'd like to delete from cursor to the next end of word, i.e. Deleting one word forward. I tried Alt+d but this types the delta operator symbol ∂ and doesn't d.
- Ansi 0 Color Blue Component 0.4716187 Green Component 0.8171692 Red Component 0.9102478 Ansi 1 Color Blue Component 0.7642517 Green Component 0.9198761 Red Component 0.036438 Ansi 10 Color Blue Component 0.3742676 Green Component 0.0227661 Red Component 0.4055786 Ansi 11 Color Blue Component 0.
- Alactritty: rg perl 7.28s user 28.04s system 21% cpu 2:43.80 total iterm2: rg perl 7.15s user 26.87s system 0% cpu 58:14.69 total kitty: rg perl 6.26s user 19.47s system 11% cpu 3:35.96 total hyper: rg perl 6.65s user 16.02s system 25% cpu 1:27.68 total. So, things like tmux scrolling, vim scrolling, logfile scrolling are liquid smooth.
The dual serial adapter above is my weapon ofchoice. You can pick one up for about £20 on Amazon(not an affiliatelink). Generally speaking, I’ve had better experience with FTDI chipsetsso if you are in the market for an adapter, I’d recommend checking thechipset first…
Driver Installation
![Iterm Iterm](https://image.dhgate.com/0x0s/f2-albu-g4-M00-D1-00-rBVaEVmxFR6AHJzlAAKTaX3k2ts692.jpg/jomo-lite-40-e-cig-box-mod-lite-40w-vapor.jpg)
For FTDI
- Download the FTDI VCP driver for OSX
- Install the drivers
Iterm 3 2 8 0 8
For Prolific
- Download the drivers from here
- Install the drivers
A quick note on terminal emulation in OSX
Most likely you have used a USB-serial adapter in Windows. Wheninstalled It appears as a COM port, you point TeraTerm or HyperTerminalto that COM port and everything automagically works. In OSX things aredecidely more UNIX-like. When the adapter is installed you will see anew “tty” and “cu” devices in “/dev”. To access these you need anapplication to attach to the “cu” device.
Why “cu” and not “tty”? Because TTY-lines are for inboundconnections and Call-Up ('cu’) lines are for outbound.
There are a number of applications that can do this, but I’m going tofocus on using “screen” as it’s built in to OSX.
Setting up iTerm2
I use iTerm2 for all my terminal needs in OSX, more on that later…Right now we’re going to focus on adding a profile for your USBadapter(s).
- Open iTerm2 and enter the following to find your usb serial TTY’s Edgeview 2 1 980 – cutting edge image viewer tool.
- Open the Preferences menu and click Profiles
- Add a new profile (or duplicate your existing one) a give it adescriptive name. Something like 'USB Serial 1 - 9600baud” forexample.
- In the “Command” section, select Command and enter the following,replacing FTDYUKSO with the output from Step 1.The
in the “screen” command you can add anything from thescreen manpage and/or a comma separated list of values from thestty manpage The following will give you a 9600 baud, 8-bits percharacter, no parity and 1 stop bit (default for most networkdevices) - Repeat steps 3 and 4 for the second adapter.
- Fin
Using your USB Serial adapter
Iterm 3 2 8 0t
- Open iTerm
- Select one of the profiles you just created
- Hit “Enter” and begin
- To quit, press CTRL+A+K or CTRL+A then CTRL+
Note: If you don’t quit properly, i.e just closing the tab in iTerm,you will leave the your session alive and you won’t be able toreconnect until you kill the session manually.
Iterm 3 2 8 0 3
Conclusion
Hopefully this guide has been useful in helping you get set up with yourUSB serial adapter in Mac OSX. If you find mistakes, have feedback orquestions feel free to use the comments section below.
Resources
Iterm 3 2 8 0 6
The following resources were used to write this blog post: