Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions .github/workflows/cmake.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Meson

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu",
os: ubuntu-latest,
tests: "true",
gtk_tsm: "true"
}
- {
name: "macOS",
os: macos-latest,
tests: "true",
gtk_tsm: "false"
}

steps:
- uses: actions/checkout@v3
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}

- name: Install dependencies on Ubuntu
if: startsWith(matrix.config.name, 'Ubuntu')
run: sudo apt-get update && sudo apt-get install -y meson check valgrind libgtk-3-dev libpango1.0-dev pkg-config

- name: Install dependencies on macOS
if: startsWith(matrix.config.name, 'macOS')
run: brew install check meson ninja

- name: Configure Meson
run: meson setup -Dtests=${{matrix.config.tests}} -Dgtktsm=${{matrix.config.gtk_tsm}} -Dextra_debug=true build

- name: Build
working-directory: ./build
run: meson compile

- name: Test
working-directory: ./build
run: meson test

184 changes: 0 additions & 184 deletions CMakeLists.txt

This file was deleted.

42 changes: 19 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TSM - Terminal Emulator State Machine

[![Build Status](https://travis-ci.com/Aetf/libtsm.svg?branch=master)](https://travis-ci.com/Aetf/libtsm)
![Build Status](https://github.com/aetf/libtsm/actions/workflows/meson.yml/badge.svg?branch=develop)

TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It
tries to support all common standards while keeping compatibility to existing
Expand All @@ -19,44 +19,40 @@ This is a personal modified version. For more information, please refer to its o
+ Support Ctrl + Arrow keys
+ Support custom title using OSC
+ Bug fixes:
* [Repsonse to 'CSI c' contains random bytes][91335]
* [Response to 'CSI c' contains random bytes][91335]
* [Fix invalid cpr values](https://github.com/Aetf/libtsm/pull/2)

[91335]: https://bugs.freedesktop.org/show_bug.cgi?id=91335

## Build
```bash
mkdir build && cd build
cmake ..
make
make install
meson setup build
cd build
meson compile
meson install
```

### Build options
Options may be supplied when configuring cmake:
Options may be supplied when configuring meson:
```bash
cmake -DOPTION1=VALUE1 -DOPTION2=VALUE2 ..
meson -Dtests=true -Dextra_debug=true -Dgtktsm=true
```
The following options are available:

|Name | Description | Default |
|:---:|:---|:---:|
| BUILD_SHARED_LIBS | Whether to build as a shared library | ON |
| BUILD_TESTING | Whether to build test suits | OFF |
| ENABLE_EXTRA_DEBUG | Whether to enable several non-standard debug options. | OFF |
| BUILD_GTKTSM | Whether to build the gtktsm example. This is linux-only as it uses epoll and friends. Therefore is disabled by default. | OFF |

### Dependencies

- [cmake](https://cmake.org) >= 3.5
| tests | Whether build the test suite | ON |
| extra_debug | Whether to enable several non-standard debug options | OFF |
| gtktsm | Whether to build the gtktsm example. This is linux-only as it uses epoll and friends. Therefor is disabled by default. | OFF |

## Dependencies
### Required
- [meson](https://mesonbuild.com) >= 3.5
### Optional
- `xkbcommon-keysyms.h` from xkbcommon (Optional. Will use private copy if not found.)

The test suits needs:

- [check](https://libcheck.github.io/check/) >= 0.9.10

The gtktsm example needs:

## Test suite
- [check](https://libcheck.github.io/check/) >= 0.9.10 (For the test suite)
## Gtktsm
- gtk3
- cairo
- pango
Expand Down
Loading
Loading