项目作者: yehorbk

项目描述 :
Cross-platform terminal emulator with flexible script configuration
高级语言: C++
项目地址: git://github.com/yehorbk/cross-term.git
创建时间: 2020-05-08T13:04:08Z
项目社区:https://github.com/yehorbk/cross-term

开源协议:MIT License

下载


Cross-Term

Unix Build Status
Windows Build Status
Release version
Licence

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

  1. <?xml version="1.0"?>
  2. <settings>
  3. <greeting><!-- TODO --></greeting>
  4. <prompt><!-- TODO --></prompt>
  5. </settings>
  6. <commands>
  7. <Item>
  8. <command><!-- TODO --></command>
  9. <execute><!-- TODO --></execute>
  10. </Item>
  11. </commands>

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

    1. <!-- settings.xml -->
    2. ...
    3. <greeting>date</greeting>
    4. <prompt>printf "$USER:${PWD##*/}$ "</prompt>
    5. ...
    1. # result
    2. Tue May 19 20:55:49 EEST 2020
    3. admin:Desktop$

    Git Publisher

    1. # publish.sh
    2. git add . ;
    3. git commit ;
    4. git push
    1. <!-- settings.xml: -->
    2. ...
    3. <Item>
    4. <command>publish</command>
    5. <execute>./publish.sh</execute>
    6. </Item>
    7. ...

    Build

  • Unix
  • Windows

    Third Party and Libs

  • pugixml
  • trim

    Requirements

  • gcc and g++ compilers
  • c++11 or above C++ versions

    Author

    Yehor Bublyk: GitHubTwitter