https://github.com/bod/klibminitel
A Kotlin (JVM) library to interact with the Minitel
https://github.com/bod/klibminitel
Last synced: 4 months ago
JSON representation
A Kotlin (JVM) library to interact with the Minitel
- Host: GitHub
- URL: https://github.com/bod/klibminitel
- Owner: BoD
- License: apache-2.0
- Created: 2019-09-15T15:18:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T17:26:59.000Z (over 1 year ago)
- Last Synced: 2025-05-01T17:31:45.279Z (about 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 848 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# klibminitel
A Kotlin (KMP) library to interact with the [Minitel](https://en.wikipedia.org/wiki/Minitel).
## Usage
```kotlin
implementation("org.jraf:klibminitel:1.3.1")
```
```kotlin
val minitel = Minitel(filePath)
minitel.connect {
screen.disableAcknowledgement()
screen.localEcho(false)
screen.clearScreenAndHome()
screen.print("Hello, World!")
coroutineScope.launch {
system.collect { e ->
onSystemEvent(e, screen)
}
}
keyboard.collect { e ->
onKeyboardEvent(e, screen)
}
}
```
Full KDoc is available [here](https://github.com/BoD/klibminitel/tree/master/docs).
## Author and License
```
Copyright (C) 2019-present Benoit 'BoD' Lubek (BoD@JRAF.org)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```