% Goと端末制御シーケンス % haru % 2018/12/03
- @uobikiemukot
- 業務
- Ruby (サーバーサイド)
- 趣味の開発
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "image" | |
| "image/jpeg" | |
| _ "image/png" | |
| "io" |
| diff --git a/ChangeLog b/ChangeLog | |
| index 49a59d5..1d75b60 100644 | |
| --- a/ChangeLog | |
| +++ b/ChangeLog | |
| @@ -83,3 +83,11 @@ | |
| ex) | |
| $ ./mkfont alias-file your/favorite/bdf > glyph.h | |
| $ make yaft | |
| + | |
| +2014-03-07 haru |
| --- vgm.h.orig 2015-09-10 01:12:19.019687382 +0900 | |
| +++ vgm.h 2015-09-10 01:12:42.259665862 +0900 | |
| @@ -224,7 +224,7 @@ | |
| spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x13); | |
| spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x80); | |
| spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x00, 0x60); | |
| - spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x02); | |
| + spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x00); | |
| spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x02, low_byte(start_addr)); |
| #!/bin/bash | |
| BUILD_DIR="$HOME/build" | |
| SEARCH_URL="https://aur.archlinux.org/rpc.php?type=search" | |
| GIT_URL="https://aur.archlinux.org" | |
| error() | |
| { | |
| echo $1 | |
| exit |
| #define _XOPEN_SOURCE 600 | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <signal.h> | |
| #include <stdarg.h> | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
| commit de7e2edc14a5418abd5298e0cc76caa3d3bb5faa | |
| Author: uobikiemukot <[email protected]> | |
| Date: Wed Aug 26 20:14:34 2015 +0900 | |
| add framebuffer video output | |
| diff --git a/video/out/vo.c b/video/out/vo.c | |
| index de79fb0..d7d909c 100644 | |
| --- a/video/out/vo.c | |
| +++ b/video/out/vo.c |
| --- old/url.c 2015-07-28 23:57:42.144375057 +0900 | |
| +++ new/url.c 2015-07-28 23:57:34.394271277 +0900 | |
| @@ -107,6 +107,7 @@ | |
| {"jpg", "image/jpeg"}, | |
| {"png", "image/png"}, | |
| {"xbm", "image/xbm"}, | |
| + {"tiff", "image/tiff"}, | |
| {"au", "audio/basic"}, | |
| {"gz", "application/x-gzip"}, | |
| {"Z", "application/x-compress"}, |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <linux/input.h> | |
| #include <fcntl.h> | |
| #include <stdarg.h> | |
| #include <stdint.h> |