commit libvterm for openSUSE:Factory

2020-04-01 Thread root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2020-04-01 19:11:29

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new.3248 (New)


Package is "libvterm"

Wed Apr  1 19:11:29 2020 rev:8 rq:790279 version:0.1.3

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2020-01-12 
23:26:05.434853994 +0100
+++ /work/SRC/openSUSE:Factory/.libvterm.new.3248/libvterm.changes  
2020-04-01 19:13:50.279409629 +0200
@@ -1,0 +2,18 @@
+Mon Mar 30 20:04:17 CEST 2020 - Matej Cepl 
+
+- All my previous builds were just figments of my imagination,
+  and neovim upstream claims one has to use 0.1.3 only. So,
+  downgrading.
+
+---
+Mon Mar 30 19:19:23 CEST 2020 - Matej Cepl 
+
+- Update to 0.1.3+bzr767:
+  - Remove debugging print on DECRQSS
+  - Regenerate fullwidth.inc for latest Unicode
+  - A much more efficient find-wide-chars.pl
+  - Accept OSC ... ST without an intermediate semicolon after the
+command number
+  - Fix printf argument types (gh#vim/vim#5456)
+
+---

Old:

  libvterm-0~bzr762.tar.gz

New:

  libvterm-0.1.3.tar.gz



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.6ygLHp/_old  2020-04-01 19:13:50.959409934 +0200
+++ /var/tmp/diff_new_pack.6ygLHp/_new  2020-04-01 19:13:50.963409936 +0200
@@ -17,17 +17,18 @@
 
 
 %define sover 0
-%define relno 762
+%{?!make_build:%define make_build %{__make} %{_make_output_sync} 
%{?_smp_mflags} %{_make_verbose}}
+%{?!_make_output_sync:%define _make_output_sync %(! %{__make} --version -O 
>/dev/null 2>&1 || echo -O)}
+%{?!_make_verbose:%define _make_verbose V=1 VERBOSE=1}
 
 Name:   libvterm
-Version:0.1.3+bzr762
+Version:0.1.3
 Release:0
 Summary:An abstract library implementation of a VT220/xterm/ECMA-48 
terminal emulator
 License:MIT
 Group:  Development/Libraries/C and C++
 URL:https://launchpad.net/libvterm
-# https://bazaar.launchpad.net/~libvterm/libvterm/trunk/tarball/%%{relno}
-Source: %{name}-0~bzr%{relno}.tar.gz
+Source: 
https://launchpad.net/libvterm/trunk/v0.1/+download/libvterm-%{version}.tar.gz
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
 
@@ -61,7 +62,7 @@
 This package contains tools for libvterm.
 
 %prep
-%setup -q -n \~libvterm/libvterm/trunk
+%setup -q
 
 %build
 %make_build PREFIX=%{_prefix} \

++ libvterm-0~bzr762.tar.gz -> libvterm-0.1.3.tar.gz ++
 23754 lines of diff (skipped)




commit libvterm for openSUSE:Factory

2020-01-12 Thread root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2020-01-12 23:24:03

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new.6675 (New)


Package is "libvterm"

Sun Jan 12 23:24:03 2020 rev:7 rq:763368 version:0.1.3+bzr762

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2019-09-20 
14:51:50.850898722 +0200
+++ /work/SRC/openSUSE:Factory/.libvterm.new.6675/libvterm.changes  
2020-01-12 23:26:05.434853994 +0100
@@ -1,0 +2,16 @@
+Sat Jan 11 21:25:32 CET 2020 - Matej Cepl 
+
+- Update to 0.1.3+bzr762:
+  - Merge bugfixes up to v0.1.3
+  - Partial bugfix for uncleared area after resize (thanks Jörg
+Richter)
+  - Recognise SGR 8 for conceal (thanks Jörg Richter)
+  - Define a new dedicated 'state fallbacks' struct rather than
+abusing the parser callbacks one
+  - New string-handling API that streams in possibly-multiple
+fragments
+  - Remember to length-check accesses at cell->chars[] because it
+is not necessarily zero-terminated (LP 1846869)
+  - fix memory leak of vt->tmpbuffer (LP 1843449)
+
+---

Old:

  libvterm-0~bzr755.tar.gz

New:

  libvterm-0~bzr762.tar.gz



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.fbga7C/_old  2020-01-12 23:26:06.462854375 +0100
+++ /var/tmp/diff_new_pack.fbga7C/_new  2020-01-12 23:26:06.466854376 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libvterm
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,16 @@
 
 
 %define sover 0
-%define relno 755
+%define relno 762
 
 Name:   libvterm
-Version:0.1+bzr755
+Version:0.1.3+bzr762
 Release:0
 Summary:An abstract library implementation of a VT220/xterm/ECMA-48 
terminal emulator
 License:MIT
 Group:  Development/Libraries/C and C++
 URL:https://launchpad.net/libvterm
-# https://bazaar.launchpad.net/~libvterm/libvterm/trunk/tarball/%{relno}
+# https://bazaar.launchpad.net/~libvterm/libvterm/trunk/tarball/%%{relno}
 Source: %{name}-0~bzr%{relno}.tar.gz
 BuildRequires:  libtool
 BuildRequires:  pkgconfig

++ libvterm-0~bzr755.tar.gz -> libvterm-0~bzr762.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/~libvterm/libvterm/trunk/bin/unterm.c 
new/~libvterm/libvterm/trunk/bin/unterm.c
--- old/~libvterm/libvterm/trunk/bin/unterm.c   2019-09-11 23:36:58.0 
+0200
+++ new/~libvterm/libvterm/trunk/bin/unterm.c   2020-01-11 21:23:33.0 
+0100
@@ -96,6 +96,11 @@
 if(prevcell->attrs.reverse && !cell->attrs.reverse)
   sgr[sgri++] = 27;
 
+if(!prevcell->attrs.conceal && cell->attrs.conceal)
+  sgr[sgri++] = 8;
+if(prevcell->attrs.conceal && !cell->attrs.conceal)
+  sgr[sgri++] = 28;
+
 if(!prevcell->attrs.strike && cell->attrs.strike)
   sgr[sgri++] = 9;
 if(prevcell->attrs.strike && !cell->attrs.strike)
@@ -143,7 +148,7 @@
 case FORMAT_SGR:
   if(prevcell->attrs.bold || prevcell->attrs.underline || 
prevcell->attrs.italic ||
  prevcell->attrs.blink || prevcell->attrs.reverse || 
prevcell->attrs.strike ||
- prevcell->attrs.font)
+ prevcell->attrs.conceal || prevcell->attrs.font)
 printf("\x1b[m");
   break;
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/~libvterm/libvterm/trunk/bin/vterm-dump.c 
new/~libvterm/libvterm/trunk/bin/vterm-dump.c
--- old/~libvterm/libvterm/trunk/bin/vterm-dump.c   2019-09-11 
23:36:58.0 +0200
+++ new/~libvterm/libvterm/trunk/bin/vterm-dump.c   2020-01-11 
21:23:33.0 +0100
@@ -154,16 +154,32 @@
   return 1;
 }
 
-static int parser_osc(const char *command, size_t cmdlen, void *user)
+static int parser_osc(int command, VTermStringFragment frag, void *user)
 {
-  printf("%sOSC %.*s%s", special_begin, (int)cmdlen, command, special_end);
+  if(frag.initial) {
+if(command == -1)
+  printf("%sOSC ", special_begin);
+else
+  printf("%sOSC %d;", special_begin, command);
+  }
+
+  printf("%.*s", (int)frag.len, frag.str);
+
+  if(frag.final)
+printf("%s", special_end);
 
   return 1;
 }
 
-static int parser_dcs(const char *command, size_t cmdlen, void *user)
+static int parser_dcs(const char *command, size_t commandlen, 
VTermStringFragment frag, void *user)
 {
-  

commit libvterm for openSUSE:Factory

2019-09-20 Thread root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2019-09-20 14:51:48

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new.7948 (New)


Package is "libvterm"

Fri Sep 20 14:51:48 2019 rev:6 rq:731768 version:0.1+bzr755

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2019-09-17 
13:39:57.989818394 +0200
+++ /work/SRC/openSUSE:Factory/.libvterm.new.7948/libvterm.changes  
2019-09-20 14:51:50.850898722 +0200
@@ -1,0 +2,5 @@
+Wed Sep 18 14:34:55 UTC 2019 - Martin Liška 
+
+- Make build verbose and respect $optflags.
+
+---



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.6sGhPO/_old  2019-09-20 14:51:51.598898573 +0200
+++ /var/tmp/diff_new_pack.6sGhPO/_new  2019-09-20 14:51:51.602898572 +0200
@@ -64,9 +64,9 @@
 %setup -q -n \~libvterm/libvterm/trunk
 
 %build
-make PREFIX=%{_prefix} \
+%make_build PREFIX=%{_prefix} \
  LIBDIR=%{_libdir} \
- %{?_smp_mflags}
+ CFLAGS="%{optflags}"
 
 %install
 make PREFIX=%{_prefix} \




commit libvterm for openSUSE:Factory

2019-09-17 Thread root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2019-09-17 13:39:56

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new.7948 (New)


Package is "libvterm"

Tue Sep 17 13:39:56 2019 rev:5 rq:731442 version:0.1+bzr755

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2017-05-29 
22:20:06.348125611 +0200
+++ /work/SRC/openSUSE:Factory/.libvterm.new.7948/libvterm.changes  
2019-09-17 13:39:57.989818394 +0200
@@ -1,0 +2,84 @@
+Wed Sep 11 23:31:21 CEST 2019 - Matej Cepl 
+
+- Update to 0~bzr755:
+  - 755 t/run-test.pl option to abort on first fail
+  - 754 Accept convenience formatting in ?screen_chars assertions; makes unit
+tests more readable
+  - 753 Include test script line number in t/run-test.pl output
+  - 752 Add a short unit test that resize on altscreen at least doesn't crash
+  - 751 Only enable altscreen during unit tests that need it
+  - 750 Better handling of resize to try to avoid the final memmove(), and not
+drag scrollback in unnecessarily
+  - 749 Can't lazy-allocate state->lineinfos[BUFIDX_ALTSCREEN] because that
+allocs during byte run
+  - 748 Initial hack at tracking 'continuation' marks per line in lineinfo
+  - 747 Allow run-test.pl to cope with empty assertion results
+  - 746 Be sure to clear DWL/DHL status for blank lines caused by scroll
+  - 745 Pass 'state fields' as a struct into resize callback in case of other
+things it needs to edit
+  - 744 Remember to store a state->lineinfo array for both buffers
+  - 743 Do all the initialising of VTermState in vterm_state_new()
+  - 742 Rename realloc_buffer() to just alloc_buffer() since it doesn't need to
+realloc now
+  - 741 Rewrite of resize handling logic to hopefully cope much better with
+reflow
+  - 739 Recognise an __END__ marker in a unit test file
+  - 738 Add a version check macro
+  - 737 Bump version to 0.1
+  - 736 Recognise SGR 4:3 for curly underline
+  - 735 Recognise subparameters in SGR 4:x to set off/single/double
+  - 734 Define some enum{} constants for pen.underline field values
+  - 733 Run unit tests on outfunc instead of buffering logic; truncation test
+is no longer valid now
+  - 732 Optional vterm_output_set_callback() to set an output func; will
+eventually replace buffer logic
+  - 731 Implement Query SGR by building a tmpbuffer then making a single
+vterm_push_output call
+  - 730 More efficient one-line implementation of DCS and ST rendering parts of
+_output_sprintf_dcs
+  - 729 Rewrite vterm_push_output_* functions to use a new tmpbuffer on main VT
+object, push all output via _output_bytes()
+  - 728 The F1 to F4 keys should send SS3 rather than CSI when unmodified
+  - 727 Expose cell colour index as API value (LP1805035)
+  - 726 Document REP sequence
+  - 725 Rename/number some more state-related tests
+  - 724 Renumber the 4x test series up to 6x to make plenty more space for
+state tests
+  - 723 Implement REP CSI (LP1805050)
+  - 722 Add --executable/-e flag to run-test.pl (LP1805034)
+  - 721 Ship src/*.inc files to destdir (thanks jamessan)
+  - 720 Add unit test for fullwidth emoji char
+  - 719 Initial attempt at better handling of double-width unicode characters
+  - 718 Fix implementation of query on bracketed paste mode (thanks jamessan)
+  - 717 Need to use 1U << 31 to keep C++ compilers happy (thanks jamessan)
+  - 716 Make sure to use CSI_* macros rather than hardcoding (1<<31) in
+unterm.c (thanks jamessan)
+  - 715 Add DECSM 1004 to documentation
+  - 714 Move 'reportfocus' to keep numerical ordering in vterm-ctrl.c
+  - 713 Merge lp:~jamessan/libvterm/focus-events
+  - 712 Move strbuffer into the .parser sub-struct
+  - 711 Internal rearrangement of string state handling in parser, to better
+fit upcoming new API
+  - 710 Now that parser 'text' callback should always make progress, no need to
+use the strbuffer for it
+  - 709 Bugfix to account for UTF-8 decoder still consuming initial bytes of
+a partial sequence
+  - 708 Improved handling of ESC parsing so it doesn't use the temporary
+strbuffer
+  - 707 Found another document about escape sequences
+  - 706 An improved CSI parser that does not use the temporary strbuffer but
+instead works entirely incrementally
+  - 705 Move parser-related state into its own sub-structure
+  - 704 Fix -Wpedant warnings from t/harness.c
+  - 703 Compile with -Wpedantic
+  - 702 Minor other syntax pedant fixes to bin/*.c files
+  - 701 Make all bitfields 'unsigned int'
+  - 700 Use an ifdef instead of commented code in parser.c's debugging
+  - 699 Ensure that all enums in header files lack a trailing comma, because
+some older C++ compilers won't like that
+  - 698 Remeber to 'return 

commit libvterm for openSUSE:Factory

2017-05-29 Thread root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2017-05-29 22:20:04

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new (New)


Package is "libvterm"

Mon May 29 22:20:04 2017 rev:4 rq:498871 version:0~bzr696

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2016-08-26 
23:18:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.libvterm.new/libvterm.changes   2017-05-29 
22:20:06.348125611 +0200
@@ -1,0 +2,27 @@
+Sun May 28 23:06:43 UTC 2017 - roni...@gmail.com
+
+- Run spec-cleaner.
+- Fix `libvterm.changes` indentation.
+
+---
+Sat May 27 09:18:26 UTC 2017 - bwiedem...@suse.com
+
+- Version bump to 0~bzr696.
+  Changelog:
+* Add S8C1T control support to vterm-ctrl
+* Implement querying of cursor shape in vterm-ctrl
+* Remember to document ST in doc/seqs.txt
+* Adjust linebreaking of 'break' statements to avoid gcc
+  warnings of misleading indentation
+* Implement DECRQSS on SGR when set to RGB8 palette colours
+* Reset the pen between independent tests of DECRQSS on SGR
+* Bugfix for disabling mouse mode
+* Ensure stdin's ICANON mode is restored even if vterm-ctrl
+  exits on error
+* Initialise mouse state at VTermState creation rather than as
+  a side-effect of DECSM 100{0,2,3} - fixes LP1640917
+* Pull VTermScreenCell.attrs out to its own named type
+* Merge lp:~jamessan/libvterm/reproducibility (#307773,
+  boo#1041090)
+
+---

Old:

  libvterm-0~bzr684.tar.xz

New:

  libvterm-0~bzr696.tar.xz



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.84bqj6/_old  2017-05-29 22:20:07.515960709 +0200
+++ /var/tmp/diff_new_pack.84bqj6/_new  2017-05-29 22:20:07.515960709 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libvterm
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define sover 0
 Name:   libvterm
-Version:0~bzr684
+Version:0~bzr696
 Release:0
 Summary:An abstract library implementation of a VT220/xterm/ECMA-48 
terminal emulator
 License:MIT
@@ -26,7 +26,7 @@
 Url:https://launchpad.net/libvterm
 Source: %{name}-%{version}.tar.xz
 BuildRequires:  libtool
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 
 %description
 An abstract C99 library which implements a VT220 or xterm-like terminal
@@ -78,7 +78,6 @@
 rm -vf %{buildroot}%{_libdir}/%{name}.a
 
 %post   -n %{name}%{sover} -p /sbin/ldconfig
-
 %postun -n %{name}%{sover} -p /sbin/ldconfig
 
 %files -n %{name}%{sover}

++ libvterm-0~bzr684.tar.xz -> libvterm-0~bzr696.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr684/Makefile 
new/libvterm-0~bzr696/Makefile
--- old/libvterm-0~bzr684/Makefile  2016-08-15 22:22:52.0 +0200
+++ new/libvterm-0~bzr696/Makefile  2017-03-29 22:08:19.0 +0200
@@ -23,18 +23,18 @@
   override LDFLAGS+=-pg
 endif
 
-CFILES=$(wildcard src/*.c)
-HFILES=$(wildcard include/*.h)
+CFILES=$(sort $(wildcard src/*.c))
+HFILES=$(sort $(wildcard include/*.h))
 OBJECTS=$(CFILES:.c=.lo)
 LIBRARY=libvterm.la
 
-BINFILES_SRC=$(wildcard bin/*.c)
+BINFILES_SRC=$(sort $(wildcard bin/*.c))
 BINFILES=$(BINFILES_SRC:.c=)
 
-TBLFILES=$(wildcard src/encoding/*.tbl)
+TBLFILES=$(sort $(wildcard src/encoding/*.tbl))
 INCFILES=$(TBLFILES:.tbl=.inc)
 
-HFILES_INT=$(wildcard src/*.h) $(HFILES)
+HFILES_INT=$(sort $(wildcard src/*.h)) $(HFILES)
 
 VERSION_MAJOR=0
 VERSION_MINOR=0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr684/bin/vterm-ctrl.c 
new/libvterm-0~bzr696/bin/vterm-ctrl.c
--- old/libvterm-0~bzr684/bin/vterm-ctrl.c  2016-08-15 22:22:52.0 
+0200
+++ new/libvterm-0~bzr696/bin/vterm-ctrl.c  2017-03-29 22:08:19.0 
+0200
@@ -44,11 +44,12 @@
 
 static char *helptext[] = {
   "reset",
+  "s8c1t [off|on]",
   "keypad [app|num]",
   "screen [off|on|query]",
   "cursor [off|on|query]",
   "curblink [off|on|query]",
-  "curshape [block|under|bar]",
+  "curshape [block|under|bar|query]",
   "mouse [off|click|clickdrag|motion]",
   "altscreen [off|on|query]",
   "bracketpaste [off|on|query]",
@@ -77,29 +78,34 @@
   return ret;
 }
 
-static char *read_csi()
+static void 

commit libvterm for openSUSE:Factory

2016-08-26 Thread h_root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2016-08-26 23:18:12

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new (New)


Package is "libvterm"

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2016-04-14 
13:08:56.0 +0200
+++ /work/SRC/openSUSE:Factory/.libvterm.new/libvterm.changes   2016-08-26 
23:18:17.0 +0200
@@ -1,0 +2,10 @@
+Thu Aug 25 15:53:26 UTC 2016 - roni...@gmail.com
+
+- Version bump to 0~bzr684.
+  Changelog:
+* Avoid "\e" because some C compilers don't like it
+* Don't use wchar_t in unicode.c as it might not be big enough
+* Remember to pass unicode codepoints in uint32_t rather than
+  int
+
+---

Old:

  libvterm-0~bzr681.tar.xz

New:

  libvterm-0~bzr684.tar.xz



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.n6Wwbz/_old  2016-08-26 23:18:18.0 +0200
+++ /var/tmp/diff_new_pack.n6Wwbz/_new  2016-08-26 23:18:18.0 +0200
@@ -18,7 +18,7 @@
 
 %define sover 0
 Name:   libvterm
-Version:0~bzr681
+Version:0~bzr684
 Release:0
 Summary:An abstract library implementation of a VT220/xterm/ECMA-48 
terminal emulator
 License:MIT

++ libvterm-0~bzr681.tar.xz -> libvterm-0~bzr684.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr681/src/keyboard.c 
new/libvterm-0~bzr684/src/keyboard.c
--- old/libvterm-0~bzr681/src/keyboard.c2016-04-10 00:17:10.0 
+0200
+++ new/libvterm-0~bzr684/src/keyboard.c2016-08-15 22:22:52.0 
+0200
@@ -48,7 +48,7 @@
   if(mod & VTERM_MOD_CTRL)
 c &= 0x1f;
 
-  vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? "\e" : "", c);
+  vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? ESC_S : "", c);
 }
 
 typedef struct {
@@ -73,7 +73,7 @@
   { KEYCODE_ENTER,   '\r'   }, // ENTER
   { KEYCODE_TAB, '\t'   }, // TAB
   { KEYCODE_LITERAL, '\x7f' }, // BACKSPACE == ASCII DEL
-  { KEYCODE_LITERAL, '\e'   }, // ESCAPE
+  { KEYCODE_LITERAL, '\x1b' }, // ESCAPE
 
   { KEYCODE_CSI_CURSOR, 'A' }, // UP
   { KEYCODE_CSI_CURSOR, 'B' }, // DOWN
@@ -173,7 +173,7 @@
 if(mod & (VTERM_MOD_SHIFT|VTERM_MOD_CTRL))
   vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", k.literal, mod+1);
 else
-  vterm_push_output_sprintf(vt, mod & VTERM_MOD_ALT ? "\e%c" : "%c", 
k.literal);
+  vterm_push_output_sprintf(vt, mod & VTERM_MOD_ALT ? ESC_S "%c" : "%c", 
k.literal);
 break;
 
   case KEYCODE_SS3: case_SS3:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr681/src/unicode.c 
new/libvterm-0~bzr684/src/unicode.c
--- old/libvterm-0~bzr681/src/unicode.c 2016-04-10 00:17:10.0 +0200
+++ new/libvterm-0~bzr684/src/unicode.c 2016-08-15 22:22:52.0 +0200
@@ -67,8 +67,6 @@
  * Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
  */
 
-#include 
-
 struct interval {
   int first;
   int last;
@@ -129,7 +127,7 @@
 
 
 /* auxiliary function for binary search in interval table */
-static int bisearch(wchar_t ucs, const struct interval *table, int max) {
+static int bisearch(uint32_t ucs, const struct interval *table, int max) {
   int min = 0;
   int mid;
 
@@ -177,12 +175,12 @@
  *  ISO 8859-1 and WGL4 characters, Unicode control characters,
  *  etc.) have a column width of 1.
  *
- * This implementation assumes that wchar_t characters are encoded
+ * This implementation assumes that uint32_t characters are encoded
  * in ISO 10646.
  */
 
 
-static int mk_wcwidth(wchar_t ucs)
+static int mk_wcwidth(uint32_t ucs)
 {
   /* test for 8-bit control characters */
   if (ucs == 0)
@@ -214,7 +212,7 @@
 }
 
 
-static int mk_wcswidth(const wchar_t *pwcs, size_t n)
+static int mk_wcswidth(const uint32_t *pwcs, size_t n)
 {
   int w, width = 0;
 
@@ -237,7 +235,7 @@
  * the traditional terminal character-width behaviour. It is not
  * otherwise recommended for general use.
  */
-static int mk_wcwidth_cjk(wchar_t ucs)
+static int mk_wcwidth_cjk(uint32_t ucs)
 {
   /* sorted list of non-overlapping intervals of East Asian Ambiguous
* characters, generated by "uniset +WIDTH-A -cat=Me -cat=Mn -cat=Cf c" */
@@ -305,7 +303,7 @@
 }
 
 
-static int mk_wcswidth_cjk(const wchar_t *pwcs, size_t n)
+static int mk_wcswidth_cjk(const uint32_t *pwcs, size_t n)
 {
   int w, width = 0;
 
@@ -321,12 +319,12 @@
 // 
 // ### The rest added by Paul Evans
 
-INTERNAL int vterm_unicode_width(int codepoint)

commit libvterm for openSUSE:Factory

2016-04-14 Thread h_root
Hello community,

here is the log from the commit of package libvterm for openSUSE:Factory 
checked in at 2016-04-14 13:08:55

Comparing /work/SRC/openSUSE:Factory/libvterm (Old)
 and  /work/SRC/openSUSE:Factory/.libvterm.new (New)


Package is "libvterm"

Changes:

--- /work/SRC/openSUSE:Factory/libvterm/libvterm.changes2016-01-28 
17:20:14.0 +0100
+++ /work/SRC/openSUSE:Factory/.libvterm.new/libvterm.changes   2016-04-14 
13:08:56.0 +0200
@@ -1,0 +2,9 @@
+Sat Apr  9 22:18:12 UTC 2016 - roni...@gmail.com
+
+- Version bump to 0~bzr681.
+  Changelog:
+* Bugfix(?) for SunOS (thanks DominoTree -
+  https://github.com/neovim/libvterm/pull/1/files)
+* (Alt-)Ctrl-Space should encode as (\e)\0
+
+---

Old:

  libvterm-0~bzr679.tar.xz

New:

  libvterm-0~bzr681.tar.xz



Other differences:
--
++ libvterm.spec ++
--- /var/tmp/diff_new_pack.i3vfeY/_old  2016-04-14 13:08:57.0 +0200
+++ /var/tmp/diff_new_pack.i3vfeY/_new  2016-04-14 13:08:57.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libvterm
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define sover 0
 Name:   libvterm
-Version:0~bzr679
+Version:0~bzr681
 Release:0
 Summary:An abstract library implementation of a VT220/xterm/ECMA-48 
terminal emulator
 License:MIT

++ _service ++
--- /var/tmp/diff_new_pack.i3vfeY/_old  2016-04-14 13:08:57.0 +0200
+++ /var/tmp/diff_new_pack.i3vfeY/_new  2016-04-14 13:08:57.0 +0200
@@ -1,11 +1,11 @@
 
-  
+  
 bzr
 https://launchpad.net/libvterm
 libvterm
 0~bzr%r
   
-  
+  
 *.tar
 xz
   

++ libvterm-0~bzr679.tar.xz -> libvterm-0~bzr681.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr679/Makefile 
new/libvterm-0~bzr681/Makefile
--- old/libvterm-0~bzr679/Makefile  2015-12-05 15:20:58.0 +0100
+++ new/libvterm-0~bzr681/Makefile  2016-04-10 00:17:10.0 +0200
@@ -10,6 +10,10 @@
 
 override CFLAGS +=-Wall -Iinclude -std=c99
 
+ifeq ($(shell uname),SunOS)
+  override CFLAGS +=-D__EXTENSIONS__ -D_XPG6 -D__XOPEN_OR_POSIX
+endif
+
 ifeq ($(DEBUG),1)
   override CFLAGS +=-ggdb -DDEBUG
 endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr679/src/keyboard.c 
new/libvterm-0~bzr681/src/keyboard.c
--- old/libvterm-0~bzr679/src/keyboard.c2015-12-05 15:20:58.0 
+0100
+++ new/libvterm-0~bzr681/src/keyboard.c2016-04-10 00:17:10.0 
+0200
@@ -30,6 +30,10 @@
 case '\\': case ']': case '^': case '_':
   needs_CSIu = 0;
   break;
+/* Shift-space needs CSIu */
+case ' ':
+  needs_CSIu = !!(mod & VTERM_MOD_SHIFT);
+  break;
 /* All other characters needs CSIu except for letters a-z */
 default:
   needs_CSIu = (c < 'a' || c > 'z');
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libvterm-0~bzr679/t/25state_input.test 
new/libvterm-0~bzr681/t/25state_input.test
--- old/libvterm-0~bzr679/t/25state_input.test  2015-12-05 15:20:58.0 
+0100
+++ new/libvterm-0~bzr681/t/25state_input.test  2016-04-10 00:17:10.0 
+0200
@@ -49,7 +49,7 @@
 INCHAR S 20
   output "\e[32;2u"
 INCHAR C 20
-  output "\e[32;5u"
+  output "\0"
 INCHAR SC 20
   output "\e[32;6u"
 INCHAR A 20
@@ -57,7 +57,7 @@
 INCHAR SA 20
   output "\e[32;4u"
 INCHAR CA 20
-  output "\e[32;7u"
+  output "\e\0"
 INCHAR SCA 20
   output "\e[32;8u"