Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)