Instead, and you can use 'SwiftTermFuzz' to run the fuzzer. To run the test suite, select the 'SwiftTerm' target When working with these projects, if you choose the terminal application Projects reference the same SwiftTerm package.
This is needed because Xcode does not provide code completion for iOS if you If you are using Xcode, there are two toplevel projects, one for MacĪnd one for iOS in the TerminalApp directory, one called "iOSTerminal.xcodeproj" In the iOS sample that that connects the TerminalView for iOS to an SSH connection. But this git module references a module that pullsĪ precompiled SSH client ( Frugghi's SwiftSH), along with The core library currently does not provide a convenient way to connect to SSH, purely The iOS and UIKit code share a lot of the code, that code lives under the Apple directory. And the safest way ofĬonnecting to a remote system is with SSH. Not offer access to processes, the most common scenario will be to Unlike the NSView case running on a Mac, whereĪ common scenario will be to run local commands, given that iOS does That can be connected to your application by implementing the same Which like its NSView companion is an embeddable and reusable view There is an equivalent UIKit UIView implementation for The TerminalView to a Unix pseudo-terminal and runs a command there. To host a local Unix command, so I have included I anticipate that a common scenario will be NSView control that can be connected to any source by implementing the The macOS AppKit NSView implementation TerminalView is a reusable
SwiftTerm uses the Swift Package Manager for its build, and you canĪdd the library to your project by using the url for this project or a Given that those two share a lot of common The engine is in this directory, while code for macOS lives under Mac, andĬode for iOS, lives under iOS. The SwiftTerm library itself contains the source code for both
On iOS to run), and the sample happens to be hardcoded to my home machine, you can change that in the sourceĪn actual iOS app that uses this library and is more complete than the testing apps in
Sample Code There are a couple of minimal sample apps for Mac and iOS showing how to Terminal emulator (to emulate an xterm inside a console application) is available as This repository contains both a terminal emulator engine that is UI agnostic, as well asįront-ends for this engine for iOS using UIKit, and macOS using AppKit. SwiftTerm is a VT100/Xterm terminal emulator library for Swift applications that can beĮmbedded into macOS, iOS applications, text-based, headless applications or other