1
0
hugo/content/blog/2022-02-11-sixel.md
2024-04-23 22:21:26 +09:00

39 lines
1.0 KiB
Markdown

+++
date = "2022-02-11"
tags = ["rust", "terminal", "sixel"]
title = "windowsでのsixel"
slug = "sixel"
+++
[msr](https://github.com/syui/msr)というmastodon clientでは、macはiterm2の`imgcat`を使い、linuxはmltermなどで`img2sixel`を使って画像アイコンを表示します。
windowsの場合は、msys2でsixelをcompileし、minttyで表示できます。
<video controls="controls" width="100%" height="350">
<source src="https://raw.githubusercontent.com/syui/img/master/movie/dev_msr_sixel_20220211_0000.mov">
</video>
msys2をscoopでinstallする場合のpathは`~/scoop/apps/msys2/current`になります。
```sh
$ scoop install msys2
$ msys2
$ git clone https://github.com/saitoha/libsixel
$ cd libsixel
$ pacman -S make gcc
$ ./configure
$ make
$ make install
$ mintty
$ img2sixel test.png
```
https://github.com/saitoha/libsixel
windows terminalもsixelに対応してくれるといいんですけどね。
https://github.com/microsoft/terminal
https://github.com/microsoft/terminal/issues/448