回复 7# zzz19760225
Tc2.0界面:
windows 7版:- chcp 437
- if "%1"=="" (
- for %%a in ( FontSize:00100008
- FontFamily:00000030
- WindowSize:003d0050
- ScreenColors:0000000f
- CodePage:000001b5
- ScreenBufferSize:003d0050
- ) do for /f "tokens=1,2 delims=:" %%b in ("%%a") do (
- >nul reg add HKCU\Console\DosBatch_Edit /v %%b /t reg_dword /d 0x%%c /f
- )
- start "DosBatch_Edit" "%ComSpec%" /c "%~s0" 1&goto:eof
-
- ) else ( >nul reg delete HKCU\Console\DosBatch_Edit /f )
-
- @Echo Off
- Mode Con: Cols=80 Lines=25
- Title Turbo C
- Color 70
- Chcp 936 > Nul
- @Goto :Title
-
- :Title
- Colour 124
- Set /p Title=# ≡ <Nul
- Call :TitleBar F ile
- Call :TitleBar E dit
- Call :TitleBar S earch
- Call :TitleBar R un
- Call :TitleBar C ompile
- Call :TitleBar D ebug
- Call :TitleBar P roject
- Call :TitleBar O ptions
- Set /p Title=# <Nul
- Call :TitleBar W indow
- Call :TitleBar H elp
- @Goto :Main
-
- :Main
- Colour 31
- Set /p Main=╔<Nul
- For /l %%i in (1,1,16) Do (
- Set /p Main=═<Nul
- )
- Colour 112
- Set /p Main=# UNTITLED <Nul
- Colour 31
- For /l %%i in (1,1,13) Do (
- Set /p Main=═<Nul
- )
- Set /p Main=1=[↑]╗<Nul
- For /l %%i in (1,1,14) Do (
- Call :MainBar
- )
- Colour 31
- Set /p Main=║<Nul
- Colour 31
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 31
- Set /p Main=↓<Nul
- Set /p Main=╚<Nul
- For /l %%i in (1,1,38) Do (
- Set /p Main=═<Nul
- )
- Set /p Main=╝<Nul
- Colour 49
- Set /p Main=╔<Nul
- For /l %%i in (1,1,16) Do (
- Set /p Main=═<Nul
- )
- Colour 62
- Set /p Main=# Message <Nul
- Colour 49
- For /l %%i in (1,1,16) Do (
- Set /p Main=═<Nul
- )
- Set /p Main=╗<Nul
- For /l %%i in (1,1,4) Do (
- Call :MessageBar
- )
- Set /p Main=╚<Nul
- For /l %%i in (1,1,38) Do (
- Set /p Main=═<Nul
- )
- Set /p Main=╝<Nul
- Colour 116
- Set /p Main=# F1<Nul
- Colour 112
- Set /p Main=# Help ^| Accept the settings in this dialog box.<Nul
- Colour 0
- Pause > Nul
- @Exit /b 0
- @Pause > Nul
-
- :TitleBar <FirstString> <String>
- Colour 124
- Set /p Title=%1<Nul
- Colour 112
- Set /p Title=%2 <Nul
- @Goto :Eof
-
- :MainBar
- Colour 31
- Set /p MainBar=║<Nul
- Colour 23
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 119
- Set /p MainBar=■<Nul
- @Goto :Eof
-
- :MessageBar
- Colour 49
- Set /p MainBar=║<Nul
- Colour 49
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 49
- Set /p MainBar=║<Nul
- @Goto :Eof
复制代码 Windows 10 版:- chcp 437
- if "%1"=="" (
- for %%a in ( FontSize:00100008
- FontFamily:00000030
- WindowSize:003d0050
- ScreenColors:0000000f
- CodePage:000001b5
- ScreenBufferSize:003d0050
- ) do for /f "tokens=1,2 delims=:" %%b in ("%%a") do (
- >nul reg add HKCU\Console\DosBatch_Edit /v %%b /t reg_dword /d 0x%%c /f
- )
- start "DosBatch_Edit" "%ComSpec%" /c "%~s0" 1&goto:eof
-
- ) else ( >nul reg delete HKCU\Console\DosBatch_Edit /f )
-
- @Echo Off
- Mode Con: Cols=80 Lines=25
- Title Turbo C
- Color 70
- Chcp 936 > Nul
- @Goto :Title
-
- :Title
- Colour 124
- Set /p Title=# ≡ <Nul
- Call :TitleBar F ile
- Call :TitleBar E dit
- Call :TitleBar S earch
- Call :TitleBar R un
- Call :TitleBar C ompile
- Call :TitleBar D ebug
- Call :TitleBar P roject
- Call :TitleBar O ptions
- Set /p Title=# <Nul
- Call :TitleBar W indow
- Call :TitleBar H elp
- @Goto :Main
-
- :Main
- Colour 31
- Set /p Main=+<Nul
- For /l %%i in (1,1,16) Do (
- Set /p Main=—<Nul
- )
- Colour 112
- Set /p Main=# UNTITLED <Nul
- Colour 31
- For /l %%i in (1,1,13) Do (
- Set /p Main=—<Nul
- )
- Set /p Main=1-[↑]+<Nul
- For /l %%i in (1,1,14) Do (
- Call :MainBar
- )
- Colour 31
- Set /p Main=丨<Nul
- Colour 31
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 31
- Set /p Main=↓<Nul
- Set /p Main=+<Nul
- For /l %%i in (1,1,38) Do (
- Set /p Main=—<Nul
- )
- Set /p Main=+<Nul
- Colour 49
- Set /p Main=+<Nul
- For /l %%i in (1,1,16) Do (
- Set /p Main=—<Nul
- )
- Colour 62
- Set /p Main=# Message <Nul
- Colour 49
- For /l %%i in (1,1,16) Do (
- Set /p Main=—<Nul
- )
- Set /p Main=+<Nul
- For /l %%i in (1,1,4) Do (
- Call :MessageBar
- )
- Set /p Main=+<Nul
- For /l %%i in (1,1,38) Do (
- Set /p Main=—<Nul
- )
- Set /p Main=+<Nul
- Colour 116
- Set /p Main=# F1<Nul
- Colour 112
- Set /p Main=# Help ^| Accept the settings in this dialog box.<Nul
- Colour 0
- Pause > Nul
- @Exit /b 0
- @Pause > Nul
-
- :TitleBar <FirstString> <String>
- Colour 124
- Set /p Title=%1<Nul
- Colour 112
- Set /p Title=%2 <Nul
- @Goto :Eof
-
- :MainBar
- Colour 31
- Set /p MainBar=丨<Nul
- Colour 23
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 119
- Set /p MainBar=■<Nul
- @Goto :Eof
-
- :MessageBar
- Colour 49
- Set /p MainBar=丨<Nul
- Colour 49
- For /l %%i in (1,1,38) Do (
- Set /p Main=# <Nul
- )
- Colour 49
- Set /p MainBar=丨<Nul
- @Goto :Eof
复制代码
|