Martchus
b3ebe5ce38
Fix typos found via `codespell --skip .git -w`
11 months ago
Martchus
1ac1104535
Add workaround for Windows-specific console problems
...
* Allow disabling the hack for creating a console for
a GUI application via `ENABLE_CONSOLE=0` to workaround
downsides of this hack (pipes not working, possibly
spawns an additional console)
* Set the console's character set to UTF-8 by default
because this actually seems to work now and
non-ASCII characters are displayed correctly. There
is still an opt-out via `ENABLE_CP_UTF8=0`.
* Note that with mintty it just works anyways so using
that terminal emulator is still the best workaround.
1 year ago
Martchus
b48b2f5c06
Have everything in one top-level namespace
3 years ago
Steven Penny
e07782ae16
commandlineutils.cpp: correct rows and columns
...
From here:
http://docs.microsoft.com/windows/console/coord-str
- X is columns
- Y is rows
currently that is reversed with the codebase
5 years ago
Martchus
6e80640db5
Add method to determine terminal size
5 years ago
Martchus
37a84d64f1
Fix warnings about use of NULL in startConsole()
...
Can't fix warnings about old-style casts because those
macros are defined in windows headers.
5 years ago
Martchus
db46948f2f
Apply clang-format
5 years ago
Martchus
59e20b1043
Apply clang-format
5 years ago
Martchus
89e79275e0
Ensure the console prompt is shown when app terminates
5 years ago
Martchus
5dac8fc76b
Improve startConsole()
...
* Also try to allocate new console
* Don't set buffer info (seems to have not
effect anyways)
5 years ago
Martchus
9a395a45d3
Fix convertArgsToUtf8()
5 years ago
Martchus
737f73e71a
Make forcing UTF-8 codepage optional
6 years ago
Martchus
59a8dfe833
Convert args to UTF-8 under Windows
6 years ago
Martchus
89cb027786
Ensure console output is UTF-8 under Windows
6 years ago
Martchus
03094a1f61
Add support for bash completion
6 years ago
Martchus
4d6bf67188
fixed includes
7 years ago
Martchus
ae494cc425
added platform condition
7 years ago
Martchus
79faa46da0
added method to activate stdout/stderr for GUI app on Windows
7 years ago
Martchus
f335c262b2
added commandline utilities
7 years ago