[PATCH v2] Cygwin: console: Revise color setting codes in legacy console mode.

2020-01-31 Thread Takashi Yano
- With this patch, foreground color and background color are allowed to be set simultaneously by 24 bit color escape sequence such as ESC[38;2;0;0;255;48;2;128;128;0m in legacy console mode. --- winsup/cygwin/fhandler.h | 2 +- winsup/cygwin/fhandler_console.cc | 47 +

[PATCH] Cygwin: console: Revise color setting codes in legacy console mode.

2020-01-31 Thread Takashi Yano
- With this patch, foreground color and background color are allowed to be set simultaneously by escape sequence such as ESC[38;2;0;0;255;48;2;128;128;0m in legacy console mode. --- winsup/cygwin/fhandler_console.cc | 38 --- 1 file changed, 20 insertions(+), 18 del

Re: [PATCH] Cygwin: fstat_helper: always use handle in call to get_file_attribute

2020-01-31 Thread Corinna Vinschen
On Jan 30 12:01, Ken Brown wrote: > When fhandler_base::fstat_helper is called, the handle h returned by > get_stat_handle() should be pc.handle() and should be safe to use for > getting the file information. Previously, the call to > get_file_attribute() for FIFOs set the first argument to NULL i