1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
# TSM - Terminal Emulator State Machine

TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It
tries to support all common standards while keeping compatibility to existing
emulators like xterm, gnome-terminal, konsole, ..
TSM itself does not provide any rendering nor window management. It is a simple
plain state machine without any external dependencies. It can be used to
implement terminal emulators, but also to implement other applications that need
to interpret terminal escape sequences.
This library is very similar to libvte of the gnome project. However, libvte is
highly bound to GTK+, which makes it unsuitable for non-graphics projects that
need to parse escape sequences. Instead, TSM tries to restrict its API to
terminal emulation only. Furthermore, TSM does not try to establish a new
terminal emulation standard, but instead keeps compatibility as close to xterm
as possible. This is why the TERM variable can be set to xterm-color256 with any
TSM based terminal emulator.
## Requirements
libtsm has no runtime requirements other than a ISO-C compatible C library.
For keyboard key-symbols, the headers of libxkbcommon are needed during
compile-time only. libtsm ships a copy of these headers if they are not
available at compile-time.
## Download
Releases are available at https://github.com/kmscon/libtsm/releases
## Build and install
```bash
meson setup -Dtests=false build
cd build
meson compile
meson install
```
### Build options
Options may be supplied when configuring meson:
```bash
meson setup -Dtests=true -Dextra_debug=true -Dgtktsm=true build
```
The following options are available:
|Name | Description | Default |
|:---:|:---|:---:|
| 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. Therefore, 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.)
## Test suite
- [check](https://libcheck.github.io/check/) >= 0.9.10 (For the test suite)
## Gtktsm
- gtk3
- cairo
- pango
- xkbcommon
## Documentation
There is currently no API documentation available. You can have a look at the
example terminal-emulator gtkterm [gtktsm-terminal.c](src/gtktsm/gtktsm-terminal.c)
## License
This software is licensed under the terms of an MIT-like license. Please see
[COPYING] for further information.
## Contact
This software is maintained by:
* David Rheinsberg <david@readahead.eu>
* Jocelyn Falempe <jfalempe@redhat.com>
If you have any questions, do not hesitate to contact one of the maintainers.
|