Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
Macro ConsoleHandle()
|
||||
GetStdHandle_( #STD_OUTPUT_HANDLE )
|
||||
EndMacro
|
||||
|
||||
Procedure ConsoleWidth()
|
||||
Protected CBI.CONSOLE_SCREEN_BUFFER_INFO
|
||||
Protected hConsole = ConsoleHandle()
|
||||
GetConsoleScreenBufferInfo_( hConsole, @CBI )
|
||||
ProcedureReturn CBI\srWindow\right - CBI\srWindow\left + 1
|
||||
EndProcedure
|
||||
|
||||
Procedure ConsoleHeight()
|
||||
Protected CBI.CONSOLE_SCREEN_BUFFER_INFO
|
||||
Protected hConsole = ConsoleHandle()
|
||||
GetConsoleScreenBufferInfo_( hConsole, @CBI )
|
||||
ProcedureReturn CBI\srWindow\bottom - CBI\srWindow\top + 1
|
||||
EndProcedure
|
||||
|
||||
If OpenConsole()
|
||||
x$=Str(ConsoleWidth())
|
||||
y$=Str(ConsoleHeight())
|
||||
PrintN("This window is "+x$+"x"+y$+ " chars.")
|
||||
;
|
||||
Print(#CRLF$+"Press ENTER to exit"):Input()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue