Skip to content

Cross-platform terminal emulator with flexible script configuration

License

Notifications You must be signed in to change notification settings

yehorbk/cross-term

Repository files navigation

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

<?xml version="1.0"?>
<settings>
  <greeting><!-- TODO --></greeting>
  <prompt><!-- TODO --></prompt>
</settings>
<commands>
  <Item>
    <command><!-- TODO --></command>
    <execute><!-- TODO --></execute>
  </Item>
</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

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

Git Publisher

# publish.sh
git add . ;
git commit ;
git push
<!-- settings.xml: -->
...
<Item>
  <command>publish</command>
  <execute>./publish.sh</execute>
</Item>
...

Build

Third Party and Libs

Requirements

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

Author

Yehor Bublyk: GitHubTwitter