You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SKETCH.BAT is simply the environment in which %$CALENDAR% is displayed.
Calendar.bat is the function + @calender.click(macro)
cmdwiz.bat is a small collection of batch made macros to use cmdwiz a little more easily.
stdlib is provided for the esc character.
for /l %%iin (0,1,5) doset"barBuffer=!barBuffer!!barBuffer!"
25
+
26
+
rem init calendar details set date
27
+
set"totalDaysInMonth.list="01 January 31""02 February 28""03 March 31""04 April 30""05 May 31""06 June 30""07 July 31""08 August 31""09 September 30""10 October 31""11 November 30""12 December 31""
28
+
set"weekDays=Sun Mon Tue Wed Thu Fri Sat"
29
+
30
+
for%%ain (Mon.5DE23C Tue.30C5FF Wed.FBF719 Thu.FF793B Fri.FA3BF0) do (
31
+
set /a "dayColors+=1"
32
+
for /f "tokens=1,2 delims=."%%1 in ("%%a") do (
33
+
set"dayDay[!dayColors!]=%%~1"
34
+
set"hex=%%~2"
35
+
set /a "r=0x!hex:~0,2!","g=0x!hex:~2,2!","b=0x!hex:~4,2!"
set /a "i=date.offset", "date.offset*=4", "date.monthLoop=date.daysInMonth - date.daysLeft"
87
+
set"$calendar==%\e%7%\e%[38;5;15;48;5;16m%\e%[4m%\e%7Days left: !date.daysleft!%\e%8%\e%[14C%\e%(0x%\e%(B Pick a date:%\e%[0m%\e%8%\e%[B%\e%7 S %dayColor[1]% M %dayColor[2]% T %dayColor[3]% W %dayColor[4]% T %dayColor[5]% F %\e%[0m S %\e%8%\e%[B"
0 commit comments