Skip to content

Lakr233/XTerminalUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XTerminalUI

xterm.js binding to AppleUI with WebKit.

Preview

Preview Image

Usage

We recommend to use this package with https://github.com/Lakr233/NSRemoteShell.

SwiftUI Example

GeometryReader { r in
    webView
        .setupBufferChain { dataBuffer.append($0) }
        .setupTitleChain { title = $0 }
        .onAppear {
            webView.loadTerminalPage()
        }
        .frame(width: r.size.width, height: r.size.height)
        .onAppear { updateTerminalSize() }
        .onChange(of: r.size) { _ in updateTerminalSize() }
}

LICENSE

NSRemoteShell is licensed under [MIT License - Lakr's Edition].

Permissions
- Commercial use
- Modification
- Distribution
- Private use

Limitations
- NO Liability
- NO Warranty

Conditions
- NO Conditions

Copyright © 2022 Lakr Aream. All Rights Reserved.

About

xterm.js binding to Apple user interface frameworks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published