李通洲
4f0dd51761
TerminalShell: fix bash version detection on Windows
...
Currently we use `env -i /path/to/bash --norc --noprofile -c printf "%s" "$BASH_VERSION"` to detect bash version.
This is problematic on Windows because there is no `env` in $PATH ( there is env in $PATH of msys2 but not in $PATH of Windows )
With this modification the detection is also faster because 1 process is created only
2022-10-14 22:58:56 +08:00
李通洲
4f67ed2b77
TerminalShell: add some pretty names
2022-10-14 19:16:55 +08:00
李通洲
3f4926cbd5
TerminalShell: detect platform specific terminal on correct system only
2022-10-14 19:16:55 +08:00
李通洲
af93157a76
TerminalShell: handle nested shell
2022-10-14 19:16:55 +08:00
李通洲
220a7d24bc
TerminalShell: detect first shell we found only.
...
Previously we always detect login shell as current shell, which seems duplicate with userShell
2022-10-14 18:33:11 +08:00
李通洲
4bd6f2da89
TerminalShell: add lock ( Windows )
2022-10-14 18:33:11 +08:00
李通洲
1b7a2c2ed5
MSYS2: remove support
...
MSYS2 version was built for smooth transition from POSIX api to Win32 api. It has almost identical output as Windows native version, except requiring msys runtime dll and being a bit slower.
2022-10-14 18:33:11 +08:00
李通洲
11ad7a8a3d
TerminalShell: unify shell version detection code
2022-10-14 18:33:11 +08:00
李通洲
3cc6611614
Windows: support native Windows
2022-10-13 23:49:09 +08:00
李通洲
1b594d9ed1
Thread: add common thread abstraction layer, and make threading optional
2022-10-12 21:59:21 +08:00
李通洲
8c127a175c
TerminalShell: try detecting more shells
2022-10-12 00:19:31 +08:00
李通洲
424fbfc9c9
TerminalShell: actually support macOS
2022-10-11 19:44:43 +08:00
Linus Dierheimer
d54f14a14c
ffStrbufLastIndexC: account for empty strings
...
#285
2022-10-11 12:37:54 +02:00
李通洲
0381d88e2d
TerminalShell: detect cmd ( Windows )
2022-10-09 22:29:00 +08:00
李通洲
6a9fd7a84d
TerminalShell: silence compiler warnings
2022-10-09 21:12:27 +08:00
李通洲
6e190c6f7c
Fix some mistakes
2022-10-09 17:47:30 +08:00
李通洲
034f444fca
Terminal / Shell: fix name printing
2022-10-09 16:51:53 +08:00
李通洲
5114051725
TerminalShell: fix nested shells detection, add more error checks
2022-10-09 15:37:15 +08:00
李通洲
89850535ae
Windows: replace __CYGWIN__ with __MSYS__
2022-10-09 15:37:14 +08:00
李通洲
09a2f96cf0
TerminalShell: add support for Windows
2022-10-09 15:37:14 +08:00