@echo on &@color F3 &@cls ? &&@title %~n0 (%*)

@call %COMMANDER_PATH%\usr\sci\dev\aLieN\js\alib\batch\alib
@rem @call "%~dp0%py_p" %* &&@TITLE %~n0 (%*) &@echo --- %~n0 (%*)

::!--- args
if not '%1'=='' echo cmd.arg1 = [%1]
if not '%2'=='' echo cmd.arg2 = [%2]
if not '%3'=='' echo cmd.arg3 = [%3]

::!--- misc
@rem @del /a /f /q /s "debug\*.o" > nul 2>&1

::!--- same line (experimental)
@rem @setlocal ENABLEDELAYEDEXPANSION&&:: for same line assignments, ...
@rem cmd /v /c "set foo=bar&& echo !foo!"
@rem set "mu=test" && call echo %^mu% && call echo %mu%
@rem setlocal ENABLEDELAYEDEXPANSION
@rem set "mu=test" && call echo %^mu% && call echo %mu%
@rem echo %path%|%windir%\System32\find /i "%SystemRoot%\System32" >nul||@path %SystemRoot%\System32;%SystemRoot%\System32\wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0;%path%
@rem set "p=%SystemRoot%\System32\wbem;" &&@echo %path%|%windir%\System32\find /i "!p!">nul||@setx /m path !p!;%path%&&echo Added: !p!

::!--- function
@rem @CALL :func_ali a, b, ret
@rem @ECHO %ret%
@rem @goto :EOF &:: all functions below this
@rem :func_ali
@rem   @ECHO 1: %~1, 2: %~2
@rem   @SET %~3=return_val
@rem @EXIT /B 0

::!--- keep original dt
@rem for /f %%i in ('stat -c "%%Y" %1') do set original_dt=%%i
@rem touch -d @%original_dt% %1

::! prompt $e[xx;yy;zzm
::! where xx = attribute code, yy = foreground color code, and zz = background color code.
::!  0: Turn Off Attributes
::!  1: High Intensity
::!  2: Normal Intensity
::!  4: Underline (mono only)
::!  5: Blink
::!  7: Reverse Video
::!  8: Invisible
::! 30: Black
::! 31: Red
::! 32: Green
::! 33: Yellow
::! 34: Blue
::! 35: Magenta
::! 36: Cyan
::! 37: White
::! 40: Black
::! 41: Red
::! 42: Green
::! 43: Yellow
::! 44: Blue
::! 45: Magenta
::! 46: Cyan
::! 47: White
@rem prompt $e[1;31;44m$p$g$e[1;33;44m &:: bright red C:\> prompt and bright yellow text on a blue background.
@rem prompt $e[5;37GOm$e[5;31mIU$e[0;33m$p$g
@rem prompt $e[1;5;37m  *$_$e[0;32;40m 1$_ $e[1;31;42m u $_$e[33;42m x o $e[30;40m$e[K$_ _$_$e[31m MERRY$_CHRISTMAS!$_$e[37m$p$g
@rem prompt $e[1;32;40m Z$_$e[33;43m $e[40m$e[K$_$e[43m $___ $e[37;40m$e[37;40m$e[K$_ BOO!$_$_$e[35m $p$g$e[37m
@rem prompt $e[44;37;5m$e[16C$e[0;44;1;31m$_111$e[36m111$e[31m111$e[3 5m11 1\]$_$e[32;5mx x x x x x x$e[0;1;44;37m$e[1A$p$g
