Committed forgotten mallocmock.c

Oops :x
put alias stuff into it's own file
Missing include may cause problems

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Build will fail on preprocessor error in comm.sh
comm.h now depends on term.h
add recognition of truecolor escape

More info:
https://github.com/robertknight/konsole/blob/master/user-doc/README.moreColors
according to this document there are also CMY and CMYK colour spaces,
also there is note that separator should be colon, but for simplicity we
use semicolon

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
add truecolor support to output

it assumes truecolor escapes code
tested on xterm and st

* xterm seems to produce "broken" output, probably due to mapping
truecolor back to 256 colors

* st works nicely

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
copy&paste mistake: b should've been f

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
other escaped use \033 instead of \E

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
--std=c11 does not permit typeof; using __typeof__ for tests

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
Added tests for wmbc_mergewmb and corrected expansion bug

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
Removed length check from MakeWinMsgEv

The only remaining check (since now the buffer is dynamically expandable) is
for a seemingly arbitrary length. This removes the need for the `l'
variable; another variable gone.

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
Added WINESC_WIN_NUM

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
Removed fallthrough to %n for unknown winmsg escapes

I'm not sure why this was originally the case, but it does not make sense to
me that any undefined escape should implicitly mean %n; instead, any
undefined escapes will do nothing and output nothing (and consequently not
set the condition flag).

(It looks like the fallthrough may have been added in 80a04457 as part of a
larger commit, so the rationale isn't necessarily clear; I do not much feel
like researching it at this point, so I will discus it with amade.)

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
%n refactored into WinNum handler; all escapes now have handlers

Signed-off-by: Mike Gerwitz <mike@mikegerwitz.com>
Added include for missing stdbool.h in tests/macros.h
Use size_t for len

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Add 'truecolor [on|off]' as it cannot be correctly detected

https://lists.gnu.org/archive/html/bug-ncurses/2013-10/msg00007.html

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
fix for multijob build

make sure that comm.sh script generates comm.h header before doing
anything else

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Provide stubs for conditional checks

Also rename to see faster what is what

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>