Swiftpack.co - dnpp73/Terminal as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dnpp73.
dnpp73/Terminal 0.3.4
Terminal Emulator for iOS
⭐️ 23
🕓 3 years ago
iOS
.package(url: "https://github.com/dnpp73/Terminal.git", from: "0.3.4")

Terminal

Carthage compatible Swift Package Manager compatible

What is this

Terminal Emulator for iOS. based on hterm.js with WKWebView

This is not ssh client. only emulate terminal output.

If need ssh, you could use NMSSH/NMSSH library. Please see example app.

Demo

nyancat sl cmatrix vim

Features

  • supports iOS 11 ~ (iOS 12 or above recommended)
  • supports Interface Builder creation
  • supports GUI selection, select all, copy, paste
  • supports hardware keyboard input
  • supports CJK IME (little buggy...)

Technical Detail

Please see my blog post (written in Japanese).

How to use

See Example Appication.

How to build Example App

swiftlint and carthage required

brew install swiftlint carthage

Clone Repository and prepare

git clone [email protected]:dnpp73/Terminal.git

cd Terminal/Example

carthage bootstrap --platform iOS --no-use-binaries

open TerminalExample.xcodeproj

If you want to run on a real devices, change the Team because of code sign problem.

sshd with password authentication?

I recommend using Docker. See Dockerize an SSH service

dnpp73/chef_cutting_board is convenient.

Carthage

https://github.com/Carthage/Carthage

Write your Cartfile

github "dnpp73/Terminal"

and run

carthage bootstrap --cache-builds --no-use-binaries --platform iOS

or

carthage update --cache-builds --no-use-binaries --platform iOS

Respect

License

MIT

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics