Windows specific functions
All these functions return Lwt_sys.Not_available
on Unix.
Returns the current ANSI codepage.
Returns the input codepage used by the console attached to the current process.
Sets the input codepage used by the console attached to the current process.
Returns the output codepage used by the console attached to the current process.
Sets the output codepage used by the console attached to the current process.
read_console_input fd
reads one input from the given file
descriptor.
#
size
| : LTerm_geom.size | ; | (* | The size of the console buffer. | *) |
#
cursor_position
| : LTerm_geom.coord | ; | (* | The line and column of the cursor. | *) |
#
attributes
| : text_attributes | ; | (* | Text attributes. | *) |
#
window
| : LTerm_geom.rect | ; | (* | The displayed windows in the console buffer. | *) |
#
maximum_window_size
| : LTerm_geom.size | ; | (* | The maximum window size for the current screen. | *) |
Type of informations about a console.
get_console_screen_buffer_info fd
returns the current
informations about the given console.
Sets the mode of the given console.
Returns the size and visible status of the cursor on the given console. The size is a percentage between 1 and 100.
set_console_cursor_info fd size visible
sets the size and
visible status of the cursor on the given console.
Move the cursor to the specified location in the screen buffer.
set_console_text_attribute fd attributes
write_console_output fd chars size coord rect
writes the given
matrix of characters with their attributes on the given console
at given position.
fill_console_output_character fd char count coord
writes
count
times char
starting at coord
on the given
console.