platform: running bash in mintty.exe. The color escape codes work fine when you force them via the --color
argv / CLI option, but that's undesirable.
When I look at the reported ENV, SESSIONNAME
pops out: checking for that one might solve the issue.
> console.log(process)
process {
title: ' ',
version: 'v8.1.2',
moduleLoadList:
[ 'Binding contextify',
'Binding natives',
'Binding config',
'NativeModule events',
'Binding async_wrap',
'Binding icu',
'NativeModule util',
'Binding uv',
'NativeModule buffer',
'Binding buffer',
'Binding util',
'NativeModule internal/util',
'NativeModule internal/errors',
'Binding constants',
'NativeModule internal/buffer',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule internal/linkedlist',
'NativeModule async_hooks',
'NativeModule assert',
'NativeModule internal/process',
'NativeModule internal/process/warning',
'NativeModule internal/process/next_tick',
'NativeModule internal/process/promises',
'NativeModule internal/process/stdio',
'NativeModule internal/url',
'NativeModule internal/querystring',
'NativeModule querystring',
'Binding url',
'NativeModule tty',
'NativeModule net',
'NativeModule stream',
'NativeModule internal/streams/legacy',
'NativeModule _stream_readable',
'NativeModule internal/streams/BufferList',
'NativeModule internal/streams/destroy',
'NativeModule _stream_writable',
'NativeModule _stream_duplex',
'NativeModule _stream_transform',
'NativeModule _stream_passthrough',
'NativeModule internal/net',
'Binding cares_wrap',
'Binding tty_wrap',
'Binding tcp_wrap',
'Binding pipe_wrap',
'Binding stream_wrap',
'NativeModule internal/repl',
'NativeModule readline',
'NativeModule internal/readline',
'NativeModule repl',
'NativeModule internal/module',
'NativeModule vm',
'NativeModule path',
'NativeModule fs',
'Binding fs',
'Binding fs_event_wrap',
'NativeModule internal/fs',
'NativeModule console',
'Binding signal_wrap',
'NativeModule module',
'NativeModule domain',
'NativeModule os',
'Binding os',
'NativeModule string_decoder',
'Binding inspector' ],
versions:
{ http_parser: '2.7.0',
node: '8.1.2',
v8: '5.8.283.41',
uv: '1.12.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
openssl: '1.0.2l',
icu: '59.1',
unicode: '9.0',
cldr: '31.0.1',
tz: '2017b' },
arch: 'x64',
platform: 'win32',
release:
{ name: 'node',
sourceUrl: 'https://nodejs.org/download/release/v8.1.2/node-v8.1.2.tar.gz',
headersUrl: 'https://nodejs.org/download/release/v8.1.2/node-v8.1.2-headers.tar.gz',
libUrl: 'https://nodejs.org/download/release/v8.1.2/win-x64/node.lib' },
argv: [ 'C:\\Program Files\\nodejs\\node.exe' ],
execArgv: [],
env:
{ ACLOCAL_PATH: '/mingw64/share/aclocal:/usr/share/aclocal',
ALLUSERSPROFILE: 'C:\\ProgramData',
APPDATA: 'C:\\Users\\Ger\\AppData\\Roaming',
CLASS_PATH: '.',
COMMONPROGRAMFILES: 'C:\\Program Files\\Common Files',
'CommonProgramFiles(x86)': 'C:\\Program Files (x86)\\Common Files',
CommonProgramW6432: 'C:\\Program Files\\Common Files',
COMSPEC: 'C:\\Windows\\system32\\cmd.exe',
CONFIG_SITE: '/mingw64/etc/config.site',
DISPLAY: 'needs-to-be-defined',
FPS_BROWSER_APP_PROFILE_STRING: 'Internet Explorer',
FPS_BROWSER_USER_PROFILE_STRING: 'Default',
HOME: 'C:\\Users\\Ger',
HOMEDRIVE: 'C:',
HOMEPATH: '\\Users\\Ger',
INFOPATH: '/usr/local/info:/usr/share/info:/usr/info:/share/info',
JAVA_HOME: 'C:\\Program Files\\Java\\jdk1.8.0_121',
LANG: 'en_US.UTF-8',
LOCALAPPDATA: 'C:\\Users\\Ger\\AppData\\Local',
MANPATH: '/mingw64/share/man:/usr/local/man:/usr/share/man:/usr/man:/share/man',
MINGW_CHOST: 'x86_64-w64-mingw32',
MINGW_PACKAGE_PREFIX: 'mingw-w64-x86_64',
MINGW_PREFIX: '/mingw64',
MSYSCON: 'mintty.exe',
MSYSTEM: 'MINGW64',
MSYSTEM_CARCH: 'x86_64',
MSYSTEM_CHOST: 'x86_64-w64-mingw32',
MSYSTEM_PREFIX: '/mingw64',
NUMBER_OF_PROCESSORS: '8',
NVM_HOME: 'C:\\Users\\Ger\\AppData\\Roaming\\nvm',
NVM_SYMLINK: 'C:\\Program Files\\nodejs',
ORIGINAL_PATH: 'C:\\Program Files (x86)\\STMicroelectronics\\st_toolset\\asm;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\
Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Skype\\Phone;C:\\Users\\Ger\\AppData
\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Calibre2;C:\\Ruby23\\bin;C:\\Program Files\\Java\\jdk1.8.0_121\\
bin;C:\\Users\\Ger\\bin\\java_tools\\bin;C:\\Users\\Ger\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Ger\\AppData\\Roaming\\npm;C:\\Users\\Ger\\AppData\\R
oaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\SDCC\\bin',
ORIGINAL_TEMP: '/tmp',
ORIGINAL_TMP: '/tmp',
OS: 'Windows_NT',
PATH: 'C:\\Users\\Ger\\bin;C:\\git-sdk-64\\mingw64\\bin;C:\\git-sdk-64\\usr\\local\\bin;C:\\git-sdk-64\\usr\\bin;C:\\git-sdk-64\\usr\\bin;C:\\Program Files
(x86)\\STMicroelectronics\\st_toolset\\asm;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\S
ystem32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Skype\\Phone;C:\\Users\\Ger\\AppData\\Roaming\\nvm;C:\\Program Files\\node
js;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Calibre2;C:\\Ruby23\\bin;C:\\Program Files\\Java\\jdk1.8.0_121\\bin;C:\\Users\\Ger\\bin\\java_tools\\b
in;C:\\Users\\Ger\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Ger\\AppData\\Roaming\\npm;C:\\Users\\Ger\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;
C:\\Program Files\\SDCC\\bin;C:\\git-sdk-64\\usr\\bin\\site_perl;C:\\git-sdk-64\\usr\\bin\\vendor_perl;C:\\git-sdk-64\\usr\\bin\\core_perl',
PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
PKG_CONFIG_PATH: '/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig',
PROCESSOR_ARCHITECTURE: 'AMD64',
PROCESSOR_IDENTIFIER: 'Intel64 Family 6 Model 60 Stepping 3, GenuineIntel',
PROCESSOR_LEVEL: '6',
PROCESSOR_REVISION: '3c03',
ProgramData: 'C:\\ProgramData',
PROGRAMFILES: 'C:\\Program Files',
'ProgramFiles(x86)': 'C:\\Program Files (x86)',
ProgramW6432: 'C:\\Program Files',
PS1: '\\[\\033]0;$TITLEPREFIX:${PWD//[^[:ascii:]]/?}\\007\\]\\n\\[\\033[32m\\]\\u@\\h \\[\\033[35m\\]$MSYSTEM \\[\\033[33m\\]\\w\\[\\033[36m\\]`__git_ps1`\
\[\\033[0m\\]\\n$ ',
PSModulePath: 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules',
PUBLIC: 'C:\\Users\\Public',
SESSIONNAME: 'Console',
SHELL: 'C:\\git-sdk-64\\usr\\bin\\bash.exe',
SHLVL: '1',
SSH_ASKPASS: '/mingw64/libexec/git-core/git-gui--askpass',
SYSTEMDRIVE: 'C:',
SYSTEMROOT: 'C:\\Windows',
TEMP: 'C:\\Users\\Ger\\AppData\\Local\\Temp',
TMP: 'C:\\Users\\Ger\\AppData\\Local\\Temp',
TMPDIR: 'C:\\Users\\Ger\\AppData\\Local\\Temp',
TZ: 'Europe/Amsterdam',
USERNAME: 'Ger',
USERPROFILE: 'C:\\Users\\Ger',
WINDIR: 'C:\\Windows',
_: '/usr/bin/winpty' },
pid: 86288,
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: true,
tls_alpn: true,
tls_sni: true,
tls_ocsp: true,
tls: true },
_needImmediateCallback: false,
execPath: 'C:\\Program Files\\nodejs\\node.exe',
debugPort: 9229,
_startProfilerIdleNotifier: [Function: _startProfilerIdleNotifier],
_stopProfilerIdleNotifier: [Function: _stopProfilerIdleNotifier],
_getActiveRequests: [Function: _getActiveRequests],
_getActiveHandles: [Function: _getActiveHandles],
reallyExit: [Function: reallyExit],
abort: [Function: abort],
chdir: [Function: chdir],
cwd: [Function: cwd],
umask: [Function: umask],
_kill: [Function: _kill],
_debugProcess: [Function: _debugProcess],
_debugPause: [Function: _debugPause],
_debugEnd: [Function: _debugEnd],
hrtime: [Function: hrtime],
cpuUsage: [Function: cpuUsage],
dlopen: [Function: dlopen],
uptime: [Function: uptime],
memoryUsage: [Function: memoryUsage],
binding: [Function: binding],
_linkedBinding: [Function: _linkedBinding],
_events:
{ warning: [Function],
newListener: [Function],
removeListener: [Function],
SIGWINCH: [ [Function], [Function] ] },
_rawDebug: [Function],
_eventsCount: 4,
domain: [Getter/Setter],
_maxListeners: undefined,
_fatalException: [Function],
_exiting: false,
assert: [Function],
config:
{ target_defaults:
{ cflags: [],
default_configuration: 'Release',
defines: [],
include_dirs: [],
libraries: [] },
variables:
{ asan: 0,
coverage: false,
debug_devtools: 'node',
force_dynamic_crt: 0,
host_arch: 'x64',
icu_data_file: 'icudt59l.dat',
icu_data_in: '..\\..\\deps/icu-small\\source/data/in\\icudt59l.dat',
icu_endianness: 'l',
icu_gyp_path: 'tools/icu/icu-generic.gyp',
icu_locales: 'en,root',
icu_path: 'deps/icu-small',
icu_small: true,
icu_ver_major: '59',
node_byteorder: 'little',
node_enable_d8: false,
node_enable_v8_vtunejit: false,
node_install_npm: true,
node_module_version: 57,
node_no_browser_globals: false,
node_prefix: '/usr/local',
node_release_urlbase: 'https://nodejs.org/download/release/',
node_shared: false,
node_shared_cares: false,
node_shared_http_parser: false,
node_shared_libuv: false,
node_shared_openssl: false,
node_shared_zlib: false,
node_tag: '',
node_use_bundled_v8: true,
node_use_dtrace: false,
node_use_etw: true,
node_use_lttng: false,
node_use_openssl: true,
node_use_perfctr: true,
node_use_v8_platform: true,
node_without_node_options: false,
openssl_fips: '',
openssl_no_asm: 0,
shlib_suffix: 'so.57',
target_arch: 'x64',
v8_enable_gdbjit: 0,
v8_enable_i18n_support: 1,
v8_enable_inspector: 1,
v8_no_strict_aliasing: 1,
v8_optimized_debug: 0,
v8_promise_internal_field_count: 1,
v8_random_seed: 0,
v8_use_snapshot: true,
want_separate_host_toolset: 0,
want_separate_host_toolset_mkpeephole: 0 } },
emitWarning: [Function],
nextTick: [Function: nextTick],
_tickCallback: [Function: _tickDomainCallback],
_tickDomainCallback: [Function: _tickDomainCallback],
stdout: [Getter],
stderr: [Getter],
stdin: [Getter],
openStdin: [Function],
exit: [Function],
kill: [Function],
argv0: 'node.exe' }
undefined
>