summaryrefslogtreecommitdiff
path: root/compat/mkdir.c
diff options
context:
space:
mode:
authorLibravatar Erik Faye-Lund <kusmabite@gmail.com>2012-12-04 09:10:41 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-12-04 08:03:08 -0800
commitafb43561b81b435216b5b8c59fdaa48255e662fb (patch)
tree912bf5955c89458b75fe80db236a96ab1d385ff2 /compat/mkdir.c
parentcompat/terminal: separate input and output handles (diff)
downloadtgif-afb43561b81b435216b5b8c59fdaa48255e662fb.tar.xz
mingw: reuse tty-version of git_terminal_prompt
The getpass-implementation we use on Windows isn't at all ideal; it works in raw-mode (as opposed to cooked mode), and as a result does not deal correcly with deletion, arrow-keys etc. Instead, use cooked mode to read a line at the time, allowing the C run-time to process the input properly. Since we set files to be opened in binary-mode by default on Windows, introduce a FORCE_TEXT macro that expands to the "t" modifier that forces the terminal to be opened in text-mode so we do not have to deal with CRLF issues. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mkdir.c')
0 files changed, 0 insertions, 0 deletions