Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yehorbk/cross-term
Cross-platform terminal emulator with flexible script configuration
https://github.com/yehorbk/cross-term
cross-term macos terminal terminal-emulator unix windows
Last synced: 14 days ago
JSON representation
Cross-platform terminal emulator with flexible script configuration
- Host: GitHub
- URL: https://github.com/yehorbk/cross-term
- Owner: yehorbk
- License: mit
- Created: 2020-05-08T13:04:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T10:10:17.000Z (over 4 years ago)
- Last Synced: 2024-11-12T16:47:37.330Z (2 months ago)
- Topics: cross-term, macos, terminal, terminal-emulator, unix, windows
- Language: C++
- Homepage:
- Size: 149 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Cross-Term
[![Unix Build Status](https://travis-ci.org/yehorbk/cross-term.svg?branch=master)](https://travis-ci.org/yehorbk/cross-term)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/5fno5nr72jj9cs7p/branch/master?svg=true)](https://ci.appveyor.com/project/yehorbk/cross-term)
[![Release version](https://img.shields.io/github/v/release/yehorbk/cross-term)](https://github.com/yehorbk/cross-term/releases/tag/v1.0.0)
[![Licence](https://img.shields.io/github/license/yehorbk/cross-term)](https://github.com/yehorbk/cross-term/blob/master/LICENSE)
# How to use
All settings are in file settings.xml. This file have a basic structure and consists of `greeting`, `prompt` and `commands` sections. You able to use any commands or run files with scripts.
## Settings XML Basic Structure
```xml
```
## Settings Description
- `greeting` - terminal greeting
- `prompt` - common terminal prompt
- `commands` - list of commands
- `command` - what word will be used to execute script
- `execute` - script or file what will be executed
# Examples of Configuration
## Simple Unix Terminal
```xml...
date
printf "$USER:${PWD##*/}$ "
...
```
```bash
# result
Tue May 19 20:55:49 EEST 2020
admin:Desktop$
```
## Git Publisher
```bash
# publish.sh
git add . ;
git commit ;
git push
```
```xml...
publish
./publish.sh...
```
# Build
- [Unix](https://github.com/yehorbk/cross-term/blob/master/docs/building-unix.md)
- [Windows](https://github.com/yehorbk/cross-term/blob/master/docs/building-windows.md)
# Third Party and Libs
- [pugixml](https://pugixml.org)
- [trim](https://stackoverflow.com/a/25385766/11804288)
# Requirements
- `gcc` and `g++` compilers
- `c++11` or above C++ versions
# Author
**Yehor Bublyk**: [GitHub](https://github.com/yehorbk) • [Twitter](https://twitter.com/yehorbk)