Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/interkosmos/fortran-xkcd
xkcd client for X11 written in Fortran 2018
https://github.com/interkosmos/fortran-xkcd
fortran fortran-2018 fortran-package-manager fpm xkcd xkcd-client
Last synced: about 8 hours ago
JSON representation
xkcd client for X11 written in Fortran 2018
- Host: GitHub
- URL: https://github.com/interkosmos/fortran-xkcd
- Owner: interkosmos
- License: isc
- Created: 2021-10-14T12:12:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-28T16:55:01.000Z (about 1 year ago)
- Last Synced: 2024-01-29T14:16:49.646Z (9 months ago)
- Topics: fortran, fortran-2018, fortran-package-manager, fpm, xkcd, xkcd-client
- Language: Fortran
- Homepage:
- Size: 84 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fortran-xkcd
An [fpm](https://github.com/fortran-lang/fpm) example project written in Fortran
2018 that displays the latest [xkcd](https://xkcd.com/) comic inside an X
window. As a limitation, only images in PNG format are supported (no JPEG). The
alt text will be printed to console.The program depends on X11, libcairo, libcurl, as well as the following Fortran
libraries:* [fortran-xlib](https://github.com/interkosmos/fortran-xlib)
* [http-client](https://github.com/fortran-lang/http-client)
* [json-fortran](https://github.com/jacobwilliams/json-fortran)You can pass the xkcd number to view a specific comic strip:
```
$ ./xkcd 292
```## Screen Shot
![screen shot](screenshot.png)
## Build Instruction
Just clone the repository and build the executable with *fpm*:
```
$ git clone https://github.com/interkosmos/fortran-xkcd
$ cd fortran-xkcd/
$ fpm build --profile=release
$ fpm run
```The binary `xkcd` will be written to `build//app/`.
## Licence
ISC