blob: 2caf690d74a5340b5e42ff89b1788f29595f97ec [file] [log] [blame]
/* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Fuchsia port by Adam Barth
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
*/
#include "vim.h"
#include <magenta/device/console.h>
/*
* Get the current window size in Rows and Columns.
*/
int
mch_get_shellsize(void)
{
ioctl_console_dimensions_t dims;
ssize_t r = ioctl_console_get_dimensions(0, &dims);
if (r != sizeof(dims)) {
return -1;
}
Columns = dims.width;
Rows = dims.height;
return OK;
}
void
mch_settmode(int tmode)
{
// TODO(abarth): Implement.
}
void
get_stty(void)
{
// TODO(abarth): Implement.
}