mucurses.c revision a734c64bff58bda2fa48c2795453e092167b0ff7
#include <curses.h>
#include "mucurses.h"
/** @file
*
* MuCurses core functions
*
*/
.ori_y = 0,
.ori_x = 0,
.curs_y = 0,
.curs_x = 0,
.scr = &_ansi_screen,
};
/*
* Primitives
*/
/**
* Update cursor position
*
* @v *win window in which to update position
*/
}
/**
* Write a single character rendition to a window
*
* @v *win window in which to write
* @v ch character rendition to write
* @v wrap wrap "switch"
*/
/* make sure we set the screen cursor to the right position
first! */
/* specification says we should really scroll,
but we have no buffer to scroll with, so we
can only overwrite back at the beginning of
the window */
} else {
}
}
}
/**
* Write a single character to a window
*
* @v *win window in which to write
* @v c character rendition to write
* @v wrap wrap "switch"
*/
}
/**
* Retreat the cursor back one position (useful for a whole host of
* ops)
*
* @v *win window in which to retreat
*/
} else {
}
}
/**
* Write a chtype string to a window
*
* @v *win window in which to write
* @v *chstr chtype string
* @v wrap wrap "switch"
* @v n write at most n chtypes
*/
}
}
/**
* Write a standard c-style string to a window
*
* @v *win window in which to write
* @v *str string
* @v wrap wrap "switch"
* @v n write at most n chars from *str
*/
}
}
/**
* Move a window's cursor to the specified position
*
* @v *win window to be operated on
* @v y Y position
* @v x X position
* @ret rc return status code
*/
/* chech for out-of-bounds errors */
return ERR;
}
return OK;
}