Ruby/Справочник/Windows::Console
Класс Windows::ConsoleПравить
(нет описания...)
Константы
AddConsoleAlias, AllocConsole, AttachConsole, BACKGROUND_BLUE, BACKGROUND_GREEN, BACKGROUND_INTENSITY, BACKGROUND_RED, COMMON_LVB_GRID_HORIZONTAL, COMMON_LVB_GRID_LVERTICAL, COMMON_LVB_GRID_RVERTICAL, COMMON_LVB_LEADING_BYTE, COMMON_LVB_REVERSE_VIDEO, COMMON_LVB_SBCSDBCS, COMMON_LVB_TRAILING_BYTE, COMMON_LVB_UNDERSCORE, CONSOLE_FULLSCREEN, CONSOLE_FULLSCREEN_HARDWARE, CONSOLE_OVERSTRIKE, CTRL_BREAK_EVENT, CTRL_C_EVENT, CTRL_LOGOFF_EVENT, CTRL_SHUTDOWN_EVENT, CreateConsoleScreenBuffer, ENABLE_ECHO_INPUT, ENABLE_INSERT_MODE, ENABLE_LINE_INPUT, ENABLE_MOUSE_INPUT, ENABLE_PROCESSED_INPUT, ENABLE_QUICK_EDIT_MODE, ENABLE_WINDOW_INPUT, ENABLE_WRAP_AT_EOL_OUTPUT, FOREGROUND_BLUE, FOREGROUND_GREEN, FOREGROUND_INTENSITY, FOREGROUND_RED, FillConsoleOutputAttribute, FillConsoleOutputCharacter, FlushConsoleInputBuffer, FreeConsole, GenerateConsoleCtrlEvent, GetConsoleAlias, GetConsoleAliasExes, GetConsoleAliasExesLength, GetConsoleAliases, GetConsoleAliasesLength, GetConsoleCP, GetConsoleCursorInfo, GetConsoleDisplayMode, GetConsoleFontSize, GetConsoleMode, GetConsoleOutputCP, GetConsoleProcessList, GetConsoleScreenBufferInfo, GetConsoleSelectionInfo, GetConsoleTitle, GetConsoleWindow, GetCurrentConsoleFont, GetLargestConsoleWindowSize, GetNumberOfConsoleInputEvents, GetNumberOfConsoleMouseButtons, GetStdHandle, PeekConsoleInput, ReadConsole, ReadConsoleInput, ReadConsoleOutput, ReadConsoleOutputAttribute, ReadConsoleOutputCharacter, STD_ERROR_HANDLE, STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, ScrollConsoleScreenBuffer, SetConsoleActiveScreenBuffer, SetConsoleCP, SetConsoleCommandHistoryMode, SetConsoleCtrlHandler, SetConsoleCursorInfo, SetConsoleCursorPosition, SetConsoleDisplayMode, SetConsoleMode, SetConsoleOutputCP, SetConsoleScreenBufferSize, SetConsoleTextAttribute, SetConsoleTitle, SetConsoleWindowInfo, SetStdHandle, WriteConsole, WriteConsoleInput, WriteConsoleOutput, WriteConsoleOutputAttribute, WriteConsoleOutputCharacter
Методы объекта
AddConsoleAlias, AllocConsole, AttachConsole, CreateConsoleScreenBuffer, FillConsoleOutputAttribute, FlushConsoleInputBuffer, FreeConsole, GenerateConsoleCtrlEvent, GetConsoleAliasExesLength, GetConsoleAliasExes, GetConsoleAliasesLength, GetConsoleAliases, GetConsoleCP, GetConsoleCursorInfo, GetConsoleDisplayMode, GetConsoleFontSize, GetConsoleMode, GetConsoleOutputCP, GetConsoleProcessList, GetConsoleScreenBufferInfo, GetConsoleSelectionInfo, GetConsoleTitle, GetConsoleWindow, GetCurrentConsoleFont, GetLargestConsoleWindowSize, GetNumberOfConsoleInputEvents, GetNumberOfConsoleMouseButtons, GetStdHandle, PeekConsoleInput, ReadConsoleInput, ReadConsoleOutputAttribute, ReadConsoleOutputCharacter, ReadConsoleOutput, ReadConsole, ScrollConsoleScreenBuffer, SetConsoleActiveScreenBuffer, SetConsoleCP, SetConsoleCommandHistoryMode, SetConsoleCtrlHandler, SetConsoleCursorInfo, SetConsoleCursorPosition, SetConsoleDisplayMode, SetConsoleHistoryInfo, SetConsoleMode, SetConsoleOutputCP, SetConsoleScreenBufferSize, SetConsoleTextAttribute, SetConsoleTitle, SetConsoleWindowInfo, SetStdHandle, WriteConsoleInput, WriteConsoleOutputAttribute, WriteConsoleOutputCharacter, WriteConsoleOutput, WriteConsole
Windows::Console#AddConsoleAliasПравить
AddConsoleAlias(source, target, exe)
(нет описания...)
Windows::Console#AllocConsoleПравить
AllocConsole()
(нет описания...)
Windows::Console#AttachConsoleПравить
AttachConsole(pid)
(нет описания...)
Windows::Console#CreateConsoleScreenBufferПравить
CreateConsoleScreenBuffer(access, mode, sec, flags, data)
(нет описания...)
Windows::Console#FillConsoleOutputAttributeПравить
FillConsoleOutputAttribute(handle, attribute, length, coord, num)
(нет описания...)
Windows::Console#FlushConsoleInputBufferПравить
FlushConsoleInputBuffer(handle)
(нет описания...)
Windows::Console#FreeConsoleПравить
FreeConsole()
(нет описания...)
Windows::Console#GenerateConsoleCtrlEventПравить
GenerateConsoleCtrlEvent(ctrl_event, process_group_id)
(нет описания...)
Windows::Console#GetConsoleAliasExesПравить
GetConsoleAliasExes(buffer, buffer_length)
(нет описания...)
Windows::Console#GetConsoleAliasExesLengthПравить
GetConsoleAliasExesLength()
(нет описания...)
Windows::Console#GetConsoleAliasesПравить
GetConsoleAliases(buffer, buffer_length, exe_name)
(нет описания...)
Windows::Console#GetConsoleAliasesLengthПравить
GetConsoleAliasesLength(exe_name)
(нет описания...)
Windows::Console#GetConsoleCPПравить
GetConsoleCP()
(нет описания...)
Windows::Console#GetConsoleCursorInfoПравить
GetConsoleCursorInfo(handle, cursor_info_ptr)
(нет описания...)
Windows::Console#GetConsoleDisplayModeПравить
GetConsoleDisplayMode(flags)
The docs say this returns a BOOL, but really it's a DWORD
Windows::Console#GetConsoleFontSizeПравить
GetConsoleFontSize(handle, font)
(нет описания...)
Windows::Console#GetConsoleModeПравить
GetConsoleMode(handle, mode)
(нет описания...)
Windows::Console#GetConsoleOutputCPПравить
GetConsoleOutputCP()
(нет описания...)
Windows::Console#GetConsoleProcessListПравить
GetConsoleProcessList(proc_list, proc_count)
(нет описания...)
Windows::Console#GetConsoleScreenBufferInfoПравить
GetConsoleScreenBufferInfo(handle, buf_info)
(нет описания...)
Windows::Console#GetConsoleSelectionInfoПравить
GetConsoleSelectionInfo(info_struct)
(нет описания...)
Windows::Console#GetConsoleTitleПравить
GetConsoleTitle(title, size)
(нет описания...)
Windows::Console#GetConsoleWindowПравить
GetConsoleWindow()
(нет описания...)
Windows::Console#GetCurrentConsoleFontПравить
GetCurrentConsoleFont(handle, max_window, current_font_struct)
(нет описания...)
Windows::Console#GetLargestConsoleWindowSizeПравить
GetLargestConsoleWindowSize(handle)
(нет описания...)
Windows::Console#GetNumberOfConsoleInputEventsПравить
GetNumberOfConsoleInputEvents(handle, num_events)
(нет описания...)
Windows::Console#GetNumberOfConsoleMouseButtonsПравить
GetNumberOfConsoleMouseButtons(num_mouse_buttons)
(нет описания...)
Windows::Console#GetStdHandleПравить
GetStdHandle(std_handle)
(нет описания...)
Windows::Console#PeekConsoleInputПравить
PeekConsoleInput(handle, buffer, length, num_events)
(нет описания...)
Windows::Console#ReadConsoleПравить
ReadConsole(handle, buffer, num_to_read, num_read, res = 0)
(нет описания...)
Windows::Console#ReadConsoleInputПравить
ReadConsoleInput(handle, buffer, length, num_read)
(нет описания...) работа
Windows::Console#ReadConsoleOutputAttributeПравить
ReadConsoleOutputAttribute(handle, attrib, len, coord, num_read)
(нет описания...)
Windows::Console#ReadConsoleOutputCharacterПравить
ReadConsoleOutputCharacter(handle, char, length, coord, num_read)
(нет описания...)
Windows::Console#ScrollConsoleScreenBufferПравить
ScrollConsoleScreenBuffer(handle, scroll, clip, coord, fill)
(нет описания...)
Windows::Console#SetConsoleActiveScreenBufferПравить
SetConsoleActiveScreenBuffer(handle)
(нет описания...)
Windows::Console#SetConsoleCPПравить
SetConsoleCP(code_page_id)
(нет описания...)
Windows::Console#SetConsoleCommandHistoryModeПравить
SetConsoleCommandHistoryMode(flags)
(нет описания...)
Windows::Console#SetConsoleCtrlHandlerПравить
SetConsoleCtrlHandler(handler, add)
(нет описания...)
Windows::Console#SetConsoleCursorInfoПравить
SetConsoleCursorInfo(handle, cursor)
(нет описания...)
Windows::Console#SetConsoleCursorPositionПравить
SetConsoleCursorPosition(handle, coord)
Установка позиции курсора на экране консоли. Пример:
- include <stdlib.h>
- include <stdio.h>
- include <windows.h>
int main() {
void* handl = GetStdHandle(STD_OUTPUT_HANDLE); // Создаем ссылку на выходной поток COORD pos; // Координаты точки (используется специальная структура) pos.X = 10;// Установка координат х pos.Y = 5;// Установка координат у SetConsoleCursorPosition(handl, pos); // Установка позиции курсора printf("Hello, world\n\n"); // Вывод на экран текста, начиная с заданной позиции system("PAUSE"); return 0;
}
Windows::Console#SetConsoleDisplayModeПравить
SetConsoleDisplayMode(handle, flags, coord)
(нет описания...)
Windows::Console#SetConsoleHistoryInfoПравить
SetConsoleHistoryInfo(info)
(нет описания...)
Windows::Console#SetConsoleModeПравить
SetConsoleMode(handle, mode)
(нет описания...)
Windows::Console#SetConsoleOutputCPПравить
SetConsoleOutputCP(code_page_id)
(нет описания...)
Windows::Console#SetConsoleScreenBufferSizeПравить
SetConsoleScreenBufferSize(handle, size)
(нет описания...)
Windows::Console#SetConsoleTextAttributeПравить
SetConsoleTextAttribute(handle, attribute)
(нет описания...)
Windows::Console#SetConsoleTitleПравить
SetConsoleTitle(title)
(нет описания...)
Windows::Console#SetConsoleWindowInfoПравить
SetConsoleWindowInfo(handle, absolute, window)
(нет описания...)
Windows::Console#SetStdHandleПравить
SetStdHandle(std_handle, handle)
(нет описания...)
Windows::Console#WriteConsoleПравить
WriteConsole(handle, buffer, num_to_write, num_written, res = 0)
(нет описания...)
Windows::Console#WriteConsoleInputПравить
WriteConsoleInput(handle, buffer, length, num_events)
(нет описания...)
Windows::Console#WriteConsoleOutputПравить
WriteConsoleOutput(handle, buffer, buf_size, coord, region)
(нет описания...)
Windows::Console#WriteConsoleOutputAttributeПравить
WriteConsoleOutputAttribute(handle, attrib, length, coord, num)
(нет описания...)
Windows::Console#WriteConsoleOutputCharacterПравить
WriteConsoleOutputCharacter(handle, char, length, coord, num)
(нет описания...)