1

How to use xterm on Mac OS?

I'm quite new to Mac OS and I want to use xterm on it.

I found from

that starting xterm is not much an issue on Mac, but I just can't. Maybe my latest Mac is too new to have xterm?

Anyway, how to use xterm on Mac OS?

xpt
  • 9,385
  • 44
  • 120
  • 178

2 Answers2

1

XQuartz is good, it provides both server and client, xterm, in a single package.

It has however not been updated since 2016, and there is better / recommended options out there. I wish I had known earlier so that I can spend my energy on the right place. So I'm writing it out for the next person here.

I only found that out after following the lead of my second question on Mac -- Standard (Linux/GNU) toolset for Mac. If you come from the Linux world, then the next thing you'd find out is that, in Mac OS many tools are not what we used to. and the answer to both these two questions is,

The MacPorts Project
https://www.macports.org/install.php

Install the xorg-server port from MacPorts (recommended).

xpt
  • 9,385
  • 44
  • 120
  • 178
0

My M1-based Mac w/ Big Sur 11.1 did not come with XQuartz. I had to install it manually, and even though it's an Intel package, it runs fine in M1. It should run even finer in non-M1 too!

On my Mac, xterm is installed in /usr/X11/bin/xterm. I didn't manually install it. It could have been installed when XQuartz was. If I look inside the XQuartz package, most of the files were last updated late Oct, 2016. This match the modified timestamp on the xterm executable (Oct 7, 2016), so it's quite possible that XQuartz installed xterm too.

The 2nd time that I launched XQuartz, I got an xterm launched too. I didn't want this (I just want X running silently until I launch a real X app myself), so I found the solution here: https://apple.stackexchange.com/questions/53734/how-do-i-prevent-x11-opening-an-xterm-when-it-starts

But, when you run an xterm, it does behave correctly:

enter image description here

Please update your question with more details so someone can help you in more detail. Specifically, you should include anything you think is helpful, like:

  • macOS version
  • XQuartz version, and a picture of it running (like its "About" screen from the menu XQuartz -> About)
  • A picture of your Terminal (or copy/paste of the commands and output) when you try to run /usr/X11/bin/xterm
  • Maybe some other things, like your shell (probably bash or zsh) and your PATH (echo $PATH)
Spiff
  • 110,156
jimtut
  • 1,714