Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Zigazou/HaMinitel
An Haskell library to drive a french Minitel
https://github.com/Zigazou/HaMinitel
Last synced: 27 days ago
JSON representation
An Haskell library to drive a french Minitel
- Host: GitHub
- URL: https://github.com/Zigazou/HaMinitel
- Owner: Zigazou
- License: gpl-3.0
- Created: 2014-07-10T05:23:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T06:25:35.000Z (almost 10 years ago)
- Last Synced: 2024-10-13T16:52:54.669Z (about 2 months ago)
- Language: Haskell
- Size: 367 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-minitel - Zigazou/HaMinitel - An Haskell Minitel (Software / Server side)
README
HaMinitel
=========HaMinitel is a library that allows you to drive a french Minitel through a
serial port in Haskell.It was started as a mean to experience Haskell and functional programming.
Requirements
------------It’s written using GHC 7.8 and SerialPort 0.4.
Since an RS-232 port is not directly compatible with the Minitel serial port,
I generally use an FTDI USB serial device converter which is generally mapped
to /dev/ttyUSB0 in Linux. It has also been tested with a real RS-232 port to
which is connected a modem (it requires you to send the correct AT sequences
to the modem in order to set it up).It works under Linux (tested on a traditional PC and Raspberry Pi).
This library needs the -threaded GHC flag.
Example
-------Here is a small example which displays an "Hello world!" message onto the
Minitel screen:import Minitel.Minitel
import Minitel.Generate.Generator
import Minitel.Type.Videotexmain = do
m <- minitel "/dev/ttyUSB0" standardSettings
m <<< mString VideoTex "Hello, World!"
waitForMinitel m