## Install on Windows
-ttyd can be built with [MSYS2][10] on windows, [follow the instructions here](msys2).
+ttyd can be built with [MSYS2][10] on windows, The build instructions is [here][13].
> **NOTE:** Native windows console programs may not work correctly due to [pty incompatibility issues][11].
As a workaround, you can use [winpty][12] as a wrapper to invoke the windows program, eg: `ttyd winpty cmd`.
opkg install ttyd
```
-> **NOTE:** This may only works for [LEDE][6] snapshots currently, if the install command fails, [compile it yourself](openwrt).
+> **NOTE:** This may only works for [LEDE][6] snapshots currently, if the install command fails, [compile it yourself][14].
# Usage
[10]: http://msys2.github.io
[11]: https://github.com/mintty/mintty/blob/master/wiki/Tips.md#inputoutput-interaction-with-alien-programs
[12]: https://github.com/rprichard/winpty
+ [13]: https://github.com/tsl0922/ttyd/tree/master/msys2
+ [14]: https://github.com/tsl0922/ttyd/tree/master/openwrt
pkgver=0.12.1
pkgrel=1
pkgdesc="A JSON implementation in C"
-arch=('any')
+arch=('i686' 'x86_64')
url="https://github.com/json-c/json-c"
license=('MIT')
makedepends=('gcc' 'make' 'autoconf')
pkgver=2.1.0
pkgrel=1
pkgdesc="A lightweight pure C library for websockets (msys)"
-arch=('any')
+arch=('i686' 'x86_64')
url="http://libwebsockets.org"
license=('LGPL 2.1')
makedepends=('gcc' 'cmake' 'zlib-devel' 'openssl-devel')
pkgver=1.2.2
pkgrel=1
pkgdesc="A command-line tool for sharing terminal over the web"
-arch=('any')
+arch=('i686' 'x86_64')
url="https://github.com/tsl0922/ttyd"
license=('MIT')
-makedepends=('gcc' 'cmake' 'json-c' 'libwebsockets')
+makedepends=('gcc' 'cmake' 'json-c' 'libwebsockets' 'vim')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/tsl0922/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('6e85335c11df68e6401178269920a586bce7e66045bd0b225f6d2bc58356d105')