Commit Graph

4 Commits

Author SHA1 Message Date
Johannes Schindelin
d9215c962b winansi: fix compile warnings
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2009-05-07 14:46:48 +02:00
Johannes Schindelin
aa3abfc985 Work around a regression in Windows 7, causing erase_in_line() to crash sometimes
The function FillConsoleOutputCharacterA() was pretty content in XP to take a NULL
pointer if we did not want to store the number of written columns.  In Windows 7,
it crashes, but only when called from within Git Bash, not from within cmd.exe.
Go figure.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2009-04-21 10:42:12 +02:00
Johannes Schindelin
3db39264cd winansi: support ESC [ K (erase in line)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-03-20 11:54:57 +01:00
Peter Harris
14c8eef4e0 Add ANSI control code emulation for the Windows console
This adds only the minimum necessary to keep git pull/merge's diffstat from
wrapping. Notably absent is support for the K (erase) operation, and support
for POSIX write.

Signed-off-by: Peter Harris <git@peter.is-a-geek.org>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
2008-07-10 08:59:52 +02:00