static PtyFactory local() {
		switch (OperatingSystem.CURRENT_OPERATING_SYSTEM) {
			case MAC_OS_X:
				return MacosPtyFactory.INSTANCE;
			case LINUX:
				return LinuxPtyFactory.INSTANCE;
			case WINDOWS:
				return ConPtyFactory.INSTANCE;
			default:
				throw new UnsupportedOperationException();
		}
	}
Choose a factory of local pty's for the host operating system

@return the factory
Ghidra/Framework/Pty/src/main/java/ghidra/pty/PtyFactory.java