From 0a894c321c11a133c51ccaecc615930eb8306f8b Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Thu, 11 Aug 2016 07:38:20 +0900 Subject: [PATCH 01/14] Correct file variables for emacs --- converters/img2sixel.c | 9 +++++++-- converters/malloc_stub.c | 9 +++++++-- converters/malloc_stub.h | 9 +++++++-- converters/sixel2png.c | 9 +++++++-- include/sixel.h.in | 9 +++++++-- ruby/ext/libsixel/libsixel.c | 9 +++++++-- src/allocator.c | 10 +++++++--- src/allocator.h | 9 +++++++-- src/chunk.c | 10 +++++++--- src/chunk.h | 9 +++++++-- src/decoder.c | 9 +++++++-- src/decoder.h | 9 +++++++-- src/dither.c | 9 +++++++-- src/dither.h | 9 +++++++-- src/encoder.h | 9 +++++++-- src/frame.c | 10 +++++++--- src/frame.h | 9 +++++++-- src/fromgif.c | 10 +++++++--- src/fromgif.h | 9 +++++++-- src/frompnm.c | 9 +++++++-- src/frompnm.h | 9 +++++++-- src/fromsixel.c | 9 +++++++-- src/loader.c | 10 +++++++--- src/loader.h | 9 +++++++-- src/malloc_stub.c | 9 +++++++-- src/malloc_stub.h | 9 +++++++-- src/output.c | 9 +++++++-- src/output.h | 9 +++++++-- src/pixelformat.c | 10 +++++++--- src/pixelformat.h | 9 +++++++-- src/quant.c | 11 +++++++---- src/quant.h | 9 +++++++-- src/scale.c | 9 +++++++-- src/status.c | 9 +++++++-- src/status.h | 9 +++++++-- src/stb_image_write.c | 9 +++++++-- src/tests.c | 9 +++++++-- src/tosixel.c | 9 +++++++-- src/tty.c | 9 +++++++-- src/tty.h | 9 +++++++-- src/writer.c | 10 +++++++--- src/writer.h | 9 +++++++-- 42 files changed, 294 insertions(+), 93 deletions(-) diff --git a/converters/img2sixel.c b/converters/img2sixel.c index cc2eea01..6ee1d285 100644 --- a/converters/img2sixel.c +++ b/converters/img2sixel.c @@ -445,6 +445,11 @@ main(int argc, char *argv[]) return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/converters/malloc_stub.c b/converters/malloc_stub.c index cb8c990f..3e9fcbfc 100644 --- a/converters/malloc_stub.c +++ b/converters/malloc_stub.c @@ -81,6 +81,11 @@ rpl_posix_memalign(void **memptr, size_t alignment, size_t size) } #endif -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/converters/malloc_stub.h b/converters/malloc_stub.h index 821bdd8c..2f2621e8 100644 --- a/converters/malloc_stub.h +++ b/converters/malloc_stub.h @@ -40,6 +40,11 @@ int rpl_posix_memalign(void **memptr, size_t alignment, size_t size); #endif /* MALLOC_STUB_H */ -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/converters/sixel2png.c b/converters/sixel2png.c index f97be4af..eecd0722 100644 --- a/converters/sixel2png.c +++ b/converters/sixel2png.c @@ -200,6 +200,11 @@ main(int argc, char *argv[]) return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/include/sixel.h.in b/include/sixel.h.in index 29ab8a38..d453ecb8 100644 --- a/include/sixel.h.in +++ b/include/sixel.h.in @@ -1134,6 +1134,11 @@ sixel_decoder_decode( #endif /* LIBSIXEL_SIXEL_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/ruby/ext/libsixel/libsixel.c b/ruby/ext/libsixel/libsixel.c index 016c700c..79247421 100644 --- a/ruby/ext/libsixel/libsixel.c +++ b/ruby/ext/libsixel/libsixel.c @@ -198,6 +198,11 @@ Init_libsixel() rb_define_method(decoder_class, "encode", sixel_ruby_decoder_decode, 0); } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/allocator.c b/src/allocator.c index 5b6725e1..b9f7a8a3 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -333,7 +333,11 @@ sixel_allocator_tests_main(void) } #endif /* HAVE_TESTS */ - -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/allocator.h b/src/allocator.h index ace130b5..c18da4b3 100644 --- a/src/allocator.h +++ b/src/allocator.h @@ -39,6 +39,11 @@ sixel_allocator_tests_main(void); #endif /* LIBSIXEL_ALLOCATOR_H */ -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/chunk.c b/src/chunk.c index 1769fbfa..7d113293 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -613,7 +613,11 @@ sixel_chunk_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/chunk.h b/src/chunk.h index 253ad91e..8dad901a 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -62,6 +62,11 @@ sixel_chunk_tests_main(void); #endif /* LIBSIXEL_CHUNK_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/decoder.c b/src/decoder.c index 1a3b920b..08900696 100644 --- a/src/decoder.c +++ b/src/decoder.c @@ -605,6 +605,11 @@ sixel_decoder_tests_main(void) } #endif /* HAVE_TESTS */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/decoder.h b/src/decoder.h index 9dc64024..0fc1ae3e 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -39,6 +39,11 @@ sixel_decoder_tests_main(void); #endif /* LIBSIXEL_DECODER_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/dither.c b/src/dither.c index 655471c9..7a4e91f3 100644 --- a/src/dither.c +++ b/src/dither.c @@ -894,6 +894,11 @@ sixel_dither_tests_main(void) } #endif /* HAVE_TESTS */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/dither.h b/src/dither.h index f6f88f4d..f07bbfc7 100644 --- a/src/dither.h +++ b/src/dither.h @@ -68,6 +68,11 @@ sixel_frame_tests_main(void); #endif /* LIBSIXEL_DITHER_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/encoder.h b/src/encoder.h index bf6dacad..363fe859 100644 --- a/src/encoder.h +++ b/src/encoder.h @@ -79,6 +79,11 @@ sixel_encoder_tests_main(void); #endif /* LIBSIXEL_ENCODER_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/frame.c b/src/frame.c index 32437670..d0ef3bfb 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1058,7 +1058,11 @@ sixel_frame_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/frame.h b/src/frame.h index f6be9f25..2b932bad 100644 --- a/src/frame.h +++ b/src/frame.h @@ -56,6 +56,11 @@ sixel_dither_tests_main(void); #endif /* LIBSIXEL_FRAME_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/fromgif.c b/src/fromgif.c index 55348d48..b7a3e92e 100644 --- a/src/fromgif.c +++ b/src/fromgif.c @@ -686,7 +686,11 @@ sixel_fromgif_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/fromgif.h b/src/fromgif.h index f71cb139..9219a0e5 100644 --- a/src/fromgif.h +++ b/src/fromgif.h @@ -54,6 +54,11 @@ sixel_fromgif_tests_main(void); #endif /* LIBSIXEL_FROMGIF_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/frompnm.c b/src/frompnm.c index 8cb074c0..56e7ca8f 100644 --- a/src/frompnm.c +++ b/src/frompnm.c @@ -253,6 +253,11 @@ load_pnm(unsigned char /* in */ *p, return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/frompnm.h b/src/frompnm.h index f3176c8f..40d55f39 100644 --- a/src/frompnm.h +++ b/src/frompnm.h @@ -46,6 +46,11 @@ load_pnm(unsigned char /* in */ *p, #endif /* LIBSIXEL_FROMPNM_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/fromsixel.c b/src/fromsixel.c index 021d49e6..ec58e668 100644 --- a/src/fromsixel.c +++ b/src/fromsixel.c @@ -976,6 +976,11 @@ sixel_decode(unsigned char /* in */ *p, /* sixel bytes */ return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/loader.c b/src/loader.c index 969c5427..d0b4d196 100644 --- a/src/loader.c +++ b/src/loader.c @@ -1392,7 +1392,11 @@ sixel_loader_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/loader.h b/src/loader.h index 7ca5cb06..474d0849 100644 --- a/src/loader.h +++ b/src/loader.h @@ -37,6 +37,11 @@ sixel_loader_tests_main(void); #endif /* LIBSIXEL_LOADER_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/malloc_stub.c b/src/malloc_stub.c index cb8c990f..3e9fcbfc 100644 --- a/src/malloc_stub.c +++ b/src/malloc_stub.c @@ -81,6 +81,11 @@ rpl_posix_memalign(void **memptr, size_t alignment, size_t size) } #endif -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/malloc_stub.h b/src/malloc_stub.h index 821bdd8c..2f2621e8 100644 --- a/src/malloc_stub.h +++ b/src/malloc_stub.h @@ -40,6 +40,11 @@ int rpl_posix_memalign(void **memptr, size_t alignment, size_t size); #endif /* MALLOC_STUB_H */ -/* Hello emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/output.c b/src/output.c index 2fbc9793..d3489cdb 100644 --- a/src/output.c +++ b/src/output.c @@ -194,6 +194,11 @@ sixel_output_set_encode_policy(sixel_output_t *output, int encode_policy) output->encode_policy = encode_policy; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/output.h b/src/output.h index 76727fb7..60648db0 100644 --- a/src/output.h +++ b/src/output.h @@ -81,6 +81,11 @@ struct sixel_output { #endif /* LIBSIXEL_OUTPUT_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/pixelformat.c b/src/pixelformat.c index 021a1058..0293cb60 100644 --- a/src/pixelformat.c +++ b/src/pixelformat.c @@ -711,7 +711,11 @@ sixel_pixelformat_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/pixelformat.h b/src/pixelformat.h index b3e5127e..c6aecb30 100644 --- a/src/pixelformat.h +++ b/src/pixelformat.h @@ -37,6 +37,11 @@ sixel_pixelformat_tests_main(void); #endif /* LIBSIXEL_PIXELFORMAT_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/quant.c b/src/quant.c index 0ba26cbe..9af05602 100644 --- a/src/quant.c +++ b/src/quant.c @@ -1436,8 +1436,11 @@ sixel_quant_tests_main(void) } #endif /* HAVE_TESTS */ - - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/quant.h b/src/quant.h index 5eaf0794..e63f3a51 100644 --- a/src/quant.h +++ b/src/quant.h @@ -80,6 +80,11 @@ sixel_quant_tests_main(void); #endif /* LIBSIXEL_QUANT_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/scale.c b/src/scale.c index 4519c60c..536c6726 100644 --- a/src/scale.c +++ b/src/scale.c @@ -387,6 +387,11 @@ sixel_helper_scale_image( return 0; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/status.c b/src/status.c index 8b637641..932945df 100644 --- a/src/status.c +++ b/src/status.c @@ -337,6 +337,11 @@ sixel_status_tests_main(void) } #endif /* HAVE_TESTS */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/status.h b/src/status.h index 73fe2006..ea235840 100644 --- a/src/status.h +++ b/src/status.h @@ -37,6 +37,11 @@ sixel_status_tests_main(void); #endif /* LIBSIXEL_STATUS_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/stb_image_write.c b/src/stb_image_write.c index d1d20fd0..20227a0e 100644 --- a/src/stb_image_write.c +++ b/src/stb_image_write.c @@ -61,6 +61,11 @@ # pragma GCC diagnostic pop #endif -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/tests.c b/src/tests.c index 0108337e..e8e996d5 100644 --- a/src/tests.c +++ b/src/tests.c @@ -157,6 +157,11 @@ main(int argc, char *argv[]) #endif -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/tosixel.c b/src/tosixel.c index 1ede38e1..b2513322 100644 --- a/src/tosixel.c +++ b/src/tosixel.c @@ -1445,6 +1445,11 @@ sixel_encode( return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 sw=4 sts=0 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/tty.c b/src/tty.c index 819cbdae..0b423bb2 100644 --- a/src/tty.c +++ b/src/tty.c @@ -302,6 +302,11 @@ sixel_tty_scroll( return status; } -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/tty.h b/src/tty.h index 51caf813..37166a16 100644 --- a/src/tty.h +++ b/src/tty.h @@ -34,6 +34,11 @@ sixel_tty_scroll( #endif /* LIBSIXEL_TTY_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/writer.c b/src/writer.c index ef511342..49db99af 100644 --- a/src/writer.c +++ b/src/writer.c @@ -581,7 +581,11 @@ sixel_writer_tests_main(void) } #endif /* HAVE_TESTS */ - -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ diff --git a/src/writer.h b/src/writer.h index d0569bfd..1190be03 100644 --- a/src/writer.h +++ b/src/writer.h @@ -37,6 +37,11 @@ sixel_writer_tests_main(void); #endif /* LIBSIXEL_WRITER_H */ -/* emacs, -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- */ -/* vim: set expandtab ts=4 : */ +/* emacs Local Variables: */ +/* emacs mode: c */ +/* emacs tab-width: 4 */ +/* emacs indent-tabs-mode: nil */ +/* emacs c-basic-offset: 4 */ +/* emacs End: */ +/* vim: set expandtab ts=4 sts=4 sw=4 : */ /* EOF */ From 0fe6674accacf5acb98ea233dfca5f20b3d699c5 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Thu, 8 Sep 2016 11:56:46 +0900 Subject: [PATCH 02/14] Fix a typo: selet -> select --- src/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index 0b423bb2..024f4867 100644 --- a/src/tty.c +++ b/src/tty.c @@ -128,7 +128,7 @@ sixel_tty_wait_stdin(int usec) if (ret != 0) { status = (SIXEL_LIBC_ERROR | (errno & 0xff)); sixel_helper_set_additional_message( - "sixel_tty_wait_stdin: selet() failed."); + "sixel_tty_wait_stdin: select() failed."); goto end; } From 16678c127c1b3d6b36efac47a945efcd95f9ac21 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Thu, 8 Sep 2016 12:41:31 +0900 Subject: [PATCH 03/14] Additional inclusion of sys/time.h and sys/types.h for traditional systems --- src/tty.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index 024f4867..530ef330 100644 --- a/src/tty.c +++ b/src/tty.c @@ -25,6 +25,12 @@ #include #include +#if HAVE_SYS_TIME_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif #if HAVE_UNISTD_H # include #endif @@ -32,7 +38,7 @@ # include #endif #if HAVE_SYS_SELECT_H -#include +# include #endif #if HAVE_ERRNO_H # include From c739e8f7f8f22696e3304289e50af57499aa3274 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Thu, 8 Sep 2016 13:15:54 +0900 Subject: [PATCH 04/14] Fix wrong error handling after calling select(2) --- src/tty.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/tty.c b/src/tty.c index 530ef330..354c9040 100644 --- a/src/tty.c +++ b/src/tty.c @@ -128,10 +128,7 @@ sixel_tty_wait_stdin(int usec) FD_ZERO(&rfds); FD_SET(STDIN_FILENO, &rfds); ret = select(STDIN_FILENO + 1, &rfds, NULL, NULL, &tv); -#else - (void) usec; -#endif /* HAVE_SYS_SELECT_H */ - if (ret != 0) { + if (ret < 0) { status = (SIXEL_LIBC_ERROR | (errno & 0xff)); sixel_helper_set_additional_message( "sixel_tty_wait_stdin: select() failed."); @@ -140,6 +137,10 @@ sixel_tty_wait_stdin(int usec) /* success */ status = SIXEL_OK; +#else + (void) ret; + (void) usec; +#endif /* HAVE_SYS_SELECT_H */ end: return status; @@ -232,7 +233,9 @@ sixel_tty_scroll( } /* wait cursor position report */ - if (sixel_tty_wait_stdin(1000 * 1000) == (-1)) { /* wait up to 1 sec */ + if (SIXEL_FAILED(sixel_tty_wait_stdin(1000 * 1000))) { /* wait up to 1 sec */ + /* If we can't get any response from the terminal, + * move cursor to (1, 1). */ nwrite = f_write("\033[H", 3, &outfd); if (nwrite < 0) { status = (SIXEL_LIBC_ERROR | (errno & 0xff)); From d7ea8116d8ba19ce13d72c8cd3af9077d545cfb4 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Thu, 8 Sep 2016 23:59:05 +0900 Subject: [PATCH 05/14] Rebuild --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index d966ad45..40c907f2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -192,8 +192,8 @@ CTAGS = ctags CSCOPE = cscope am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/libsixel.pc.in $(srcdir)/package.json.in.in \ - ChangeLog NEWS compile config.guess config.sub install-sh \ - ltmain.sh missing py-compile + ChangeLog NEWS compile config.guess config.sub depcomp \ + install-sh ltmain.sh missing py-compile DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) From b5fe699af5ec0f904eb86062403de5b054223230 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Fri, 9 Sep 2016 22:18:23 +0900 Subject: [PATCH 06/14] Suppress warning on mingw environment --- src/tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tty.c b/src/tty.c index 354c9040..54de0e44 100644 --- a/src/tty.c +++ b/src/tty.c @@ -118,8 +118,8 @@ sixel_tty_wait_stdin(int usec) #if HAVE_SYS_SELECT_H fd_set rfds; struct timeval tv; -#endif /* HAVE_SYS_SELECT_H */ int ret = 0; +#endif /* HAVE_SYS_SELECT_H */ SIXELSTATUS status = SIXEL_FALSE; #if HAVE_SYS_SELECT_H @@ -138,7 +138,6 @@ sixel_tty_wait_stdin(int usec) /* success */ status = SIXEL_OK; #else - (void) ret; (void) usec; #endif /* HAVE_SYS_SELECT_H */ From 67571ff371d1fe16393c5562bad671bf74166113 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Sat, 10 Sep 2016 23:01:07 +0900 Subject: [PATCH 07/14] Suppress unused-label warning --- src/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tty.c b/src/tty.c index 54de0e44..8aa6dd10 100644 --- a/src/tty.c +++ b/src/tty.c @@ -139,6 +139,7 @@ sixel_tty_wait_stdin(int usec) status = SIXEL_OK; #else (void) usec; + goto end; #endif /* HAVE_SYS_SELECT_H */ end: From be107ac3efe3653f50e8e4f66ecdfac08e397de9 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Mon, 12 Sep 2016 03:17:40 +0900 Subject: [PATCH 08/14] Update version to 1.7.2 --- configure | 20 ++++++++++---------- configure.ac | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 6a92f104..72462876 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sixel 1.7.1. +# Generated by GNU Autoconf 2.69 for sixel 1.7.2. # # Report bugs to . # @@ -590,8 +590,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='sixel' PACKAGE_TARNAME='sixel' -PACKAGE_VERSION='1.7.1' -PACKAGE_STRING='sixel 1.7.1' +PACKAGE_VERSION='1.7.2' +PACKAGE_STRING='sixel 1.7.2' PACKAGE_BUGREPORT='saitoha@me.com' PACKAGE_URL='' @@ -1393,7 +1393,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sixel 1.7.1 to adapt to many kinds of systems. +\`configure' configures sixel 1.7.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1463,7 +1463,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sixel 1.7.1:";; + short | recursive ) echo "Configuration of sixel 1.7.2:";; esac cat <<\_ACEOF @@ -1612,7 +1612,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sixel configure 1.7.1 +sixel configure 1.7.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2027,7 +2027,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sixel $as_me 1.7.1, which was +It was created by sixel $as_me 1.7.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2970,7 +2970,7 @@ fi # Define the identity of the package. PACKAGE='sixel' - VERSION='1.7.1' + VERSION='1.7.2' cat >>confdefs.h <<_ACEOF @@ -16306,7 +16306,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sixel $as_me 1.7.1, which was +This file was extended by sixel $as_me 1.7.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -16372,7 +16372,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sixel config.status 1.7.1 +sixel config.status 1.7.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/configure.ac b/configure.ac index 75b46646..5d6e151f 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.60]) LT_PREREQ([2.4]) -AC_INIT([sixel], [1.7.1], [saitoha@me.com]) +AC_INIT([sixel], [1.7.2], [saitoha@me.com]) LS_LT_CURRENT=1 LS_LT_REVISION=6 LS_LT_AGE=0 diff --git a/package.json b/package.json index c1967024..3695e69d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "libsixel", - "version": "1.7.1", + "version": "1.7.2", "repo": "saitoha/libsixel", "description": "A lightweight, fast implementation of DEC SIXEL graphics codec", "keywords": ["terminal", "graphics", "image", "sixel"], From 9005953cc469c3ccfadd5b31d4cb5c6f233d7158 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Mon, 12 Sep 2016 03:19:53 +0900 Subject: [PATCH 09/14] Fix dangling pointer access in GIF loader --- src/fromgif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fromgif.c b/src/fromgif.c index b7a3e92e..b7865a0e 100644 --- a/src/fromgif.c +++ b/src/fromgif.c @@ -642,8 +642,8 @@ load_gif( } end: - sixel_frame_unref(frame); sixel_allocator_free(frame->allocator, g.out); + sixel_frame_unref(frame); return status; } From 1db9e9ef07c479d9b62aace1afe8025bb6999506 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Mon, 12 Sep 2016 03:44:02 +0900 Subject: [PATCH 10/14] Ensure 256 color sixel register is available in drawing demo --- examples/drawing/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/drawing/main.c b/examples/drawing/main.c index cc62914a..ec6b462b 100644 --- a/examples/drawing/main.c +++ b/examples/drawing/main.c @@ -228,7 +228,7 @@ int main(int argc, char **argv) int state; int offset; - printf("\033[?8452h" "\033[1;1'z"); + printf("\033[?1;3;256S" "\033[?8452h" "\033[1;1'z"); (void) tty_raw(&old_termios); if (canvas_init(&c, 640, 480) != 0) From 739863dfa6192d3386fb253dbd2a684461f12fc0 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Wed, 14 Sep 2016 03:52:23 +0900 Subject: [PATCH 11/14] Update README --- README.md | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6b9d10a2..5fcc118b 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,18 @@ You can run QEMU on SIXEL terminals. [![SDL1.2-SIXEL XSDL](https://raw.githubusercontent.com/saitoha/libsixel/data/data/xsdl.png)](http://youtu.be/UOTMGdUPYRo) +Furthermore some information of SIXEL-ready SDL applications are reported. + +- [NetSurf](https://www.reddit.com/r/commandline/comments/4qyb90/netsurf_a_graphical_browser_on_xterm_using_sixel/) [screenshot](http://imgur.com/a/Y6xH6) + +- [Green PDF Viewer](https://www.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/) [screenshot](https://m.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/) + +- [DOOM](https://www.libsdl.org/projects/doom/) + [tweet](https://twitter.com/rattcv/status/775213402130046977) + +- [firesdl](https://github.com/klange/firesdl) + [movie](https://www.youtube.com/watch?v=XubH2W39Xtc) + ### X11 on SIXEL terminals @@ -130,14 +142,14 @@ Some NetBSD/OpenBSD users are doing amazing challenges. ### Other -#### [sdump](https://github.com/uobikiemukot/sdump) - - A sixel image dumper, provides pdf previewer. +#### [sixelPreviewer](https://github.com/mikoto2000/sixelPreviewer) + Simple scripts and development environment for realtime edit-previewing for dot, svg, markdown, ...etc. + [![sixelPreviewer](https://raw.githubusercontent.com/saitoha/libsixel/data/data/sixelpreviewer.png)](https://youtu.be/iPzHWPGWHV4) -#### [sixelPreviewer](https://github.com/mikoto2000/sixelPreviewer) +#### [sdump](https://github.com/uobikiemukot/sdump) - A simple scripts for realtime edit-previewing for dot, svg, markdown, ...etc. + A sixel image dumper, provides pdf previewer. ## Highlighted features @@ -215,10 +227,6 @@ Now SIXEL feature is supported by the following terminals. [http://nanno.dip.jp/softlib/man/rlogin/](http://nanno.dip.jp/softlib/man/rlogin/) -- tanasinn (Works with firefox) - - [http://zuse.jp/tanasinn/](http://zuse.jp/tanasinn/) - - mlterm [http://mlterm.sourceforge.net/](http://mlterm.sourceforge.net/) @@ -258,6 +266,10 @@ $ xterm -xrm "XTerm*decTerminalID: vt340" -xrm "XTerm*numColorRegisters: 256" [https://github.com/saitoha/seq2gif](https://github.com/saitoha/seq2gif) +- Mintty (>= 2.6.0) + + [https://mintty.github.io/](https://mintty.github.io/) + ## Install @@ -1359,3 +1371,8 @@ We are greatly inspired by the quality of ImageMagick and added some resampling - [SIXEL to PostScript converter](http://t.co/zTC7LhRbBc) + +- [sixelplot](https://github.com/kktk-KO/sixelplot) + + thin-wrapper for pysixel and matplotlib + From eec80f046a799d0ff195885c19aeafbd5002c9bf Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Wed, 14 Sep 2016 04:05:53 +0900 Subject: [PATCH 12/14] README: minor fixes --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5fcc118b..b4a969fa 100644 --- a/README.md +++ b/README.md @@ -51,15 +51,17 @@ You can run QEMU on SIXEL terminals. Furthermore some information of SIXEL-ready SDL applications are reported. -- [NetSurf](https://www.reddit.com/r/commandline/comments/4qyb90/netsurf_a_graphical_browser_on_xterm_using_sixel/) [screenshot](http://imgur.com/a/Y6xH6) +- [NetSurf](https://www.reddit.com/r/commandline/comments/4qyb90/netsurf_a_graphical_browser_on_xterm_using_sixel/) + ([screenshot](http://imgur.com/a/Y6xH6)) -- [Green PDF Viewer](https://www.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/) [screenshot](https://m.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/) +- [Green PDF Viewer](https://www.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/) + ([screenshot](https://m.reddit.com/r/commandline/comments/4oldf5/view_pdfs_in_terminal_requires_nixos_latest_git/)) - [DOOM](https://www.libsdl.org/projects/doom/) - [tweet](https://twitter.com/rattcv/status/775213402130046977) + ([tweet](https://twitter.com/rattcv/status/775213402130046977)) - [firesdl](https://github.com/klange/firesdl) - [movie](https://www.youtube.com/watch?v=XubH2W39Xtc) + ([movie](https://www.youtube.com/watch?v=XubH2W39Xtc)) ### X11 on SIXEL terminals From 24df8b4d25b4be3b840740ed5ce1c7c8373439e6 Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Sat, 1 Oct 2016 02:31:27 +0900 Subject: [PATCH 13/14] README: fix wrong description of Xterm's ./configure option (#51, Thanks to @nilqed) "--enable-sixel" -> "--enable-sixel-graphics" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b4a969fa..f010cbf7 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,7 @@ Now SIXEL feature is supported by the following terminals. Works on each of X, WIN32 GDI, framebuffer, Android, Cocoa version. -- XTerm (compiled with `--enable-sixel` option) +- XTerm (compiled with `--enable-sixel-graphics` option) [http://invisible-island.net/xterm/](http://invisible-island.net/xterm/) From 6a47141c620593dffca347831d5016067130cd8d Mon Sep 17 00:00:00 2001 From: Hayaki Saito Date: Sat, 1 Oct 2016 02:37:06 +0900 Subject: [PATCH 14/14] manpage: fix wrong description of Xterm's ./configure option (#51, Thanks to @nilqed) --- src/sixel.5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sixel.5 b/src/sixel.5 index 08db9519..3cdd6afc 100644 --- a/src/sixel.5 +++ b/src/sixel.5 @@ -19,7 +19,7 @@ tanasinn (Works with firefox) .br mlterm (Works on each of X, win32/cygwin and framebuffer version) .br -XTerm (configured with --enable-sixel and lanuched with "-ti 340" option) +XTerm (configured with --enable-sixel-graphics and lanuched with "-ti 340" option) .br yaft / yaftx (Works on framebuffer / X11 environment) .br