Linux inspired cli calendar program brought to life on Windows with Python
Requirement: any Windows version
-
Open preferred console application.
-
Copy, paste and run the following:
cmd /v /c "IF EXIST %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe (set /p userinp=File already exists. Do you want to overwrite it? ^(y/n^) & IF /I !userinp! == y curl -kL -o %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe https://github.com/digitalguy99/pythoncalendar/releases/download/v4.0.3/cal.exe) ELSE curl -kL -o %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\cal.exe https://github.com/digitalguy99/pythoncalendar/releases/download/v4.0.3/cal.exe"
-
Restart your console.
-
If you are facing any problem, check the Troubleshooting section.
Copy, paste and run the following:
cmd /c "for /f "delims=" %i in ('where cal') do del "%i""
usage: cal [-h] [-y YEAR] [-m MONTH]
options:
-h, --help show this help message and exit
-y YEAR, --year YEAR
-m MONTH, --month MONTH
or simply:
cal -y <yyyy> -m <month full name or number>
-
Displaying calendar of current date
$ cal
-
Displaying 1997 full year calendar
$ cal -y 1997
-
Displaying March calendar of current year
$ cal -m March
-
Displaying calendar of March 1997
$ cal -m March -y 1997
-
Run the installation command.
-
Type
y
and press enter when prompted the following:Do you want to overwrite it? (y/n)
-
Restart your console.
If you are seeing some garbled characters on the calendar, try pasting and running the following:
cmd /c "reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1 /f"
Then restart your console application.
© 2024 digitalguy99. This project is licensed under the terms of the MIT license.