/* vi:set ts=8 sts=4 sw=4:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the Vim source code.
*/
#include "vim.h"
/*
* os_riscos.c
*
* Thomas Leonard <tal197@ecs.soton.ac.uk>
*/
const char *__dynamic_da_name = "Vim heap"; /* Enable and name our dynamic area */
int ro_line_mode = TRUE; /* For Ex mode we much echo chars to the screen ourselves */
int windowed; /* Flag - are we running inside a text window? */
int WinLeft, WinTop; /* We might be started inside a text window */
int ScrollTop; /* Make cursor movements relative to ScrollTop. */
int old_escape_state = -1;
int old_cursor_state = -1;
#define rgb(r,g,b) ((b<<24) + (g<<16) + (r<<8))
#define NORMAL_FG 0x00000000
#define NORMAL_BG 0xffffffff
/* Convert a DOS colour number to an RGB palette entry.
* Mappings from X11 rgb/txt file.
*/
static int
map_colour(dos)
int dos; /* Standard DOS colour number. */
{
switch (dos)
{
case 0: return 0; /* Black */
case 1: return rgb(0,0,139); /* DarkBlue */
case 2: return rgb(0,100,0); /* DarkGreen */
case 3: return rgb(0,139,139); /* DarkCyan */
case 4: return rgb(139,0,0); /* DarkRed */
case 5: return rgb(139,0,139); /* DarkMagenta */
case 6: return rgb(165,42,42); /* Brown, DarkYellow */
case 7: return rgb(211,211,211); /* LightGray, LightGrey, Gray, Grey */
case 8: return rgb(169,169,169); /* DarkGray, DarkGrey */
case 9: return rgb(173,216,230); /* Blue, LightBlue */
case 10: return rgb(144,238,144); /* Green, LightGreen */
case 11: return rgb(224,255,255); /* Cyan, LightCyan */
case 12: return rgb(255,0,0); /* Red, LightRed */
case 13: return rgb(255,0,255); /* Magenta, LightMagenta */
case 14: return rgb(255,255,0); /* Yellow, LightYellow */
case 15: return rgb(255,255,255); /* White */
}
return rgb(100,100,100);
}
static void
text_fg(fg)
int fg; /* Foregound colour in the form &BBGGRR00 */
{
xswi(ColourTrans_SetTextColour, fg, 0, 0, 0);
}<