You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

print_nadv.c 614B

12345678910111213141516171819202122232425262728
  1. #include <curses.h>
  2. #include "mucurses.h"
  3. #include "cursor.h"
  4. /** @file
  5. *
  6. * MuCurses printing functions (no cursor advance)
  7. *
  8. */
  9. FILE_LICENCE ( GPL2_OR_LATER );
  10. /**
  11. * Add string of single-byte characters and renditions to a window
  12. *
  13. * @v *win window to be rendered in
  14. * @v *chstr pointer to first chtype in "string"
  15. * @v n max number of chars from chstr to render
  16. * @ret rc return status code
  17. */
  18. int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) {
  19. struct cursor_pos pos;
  20. _store_curs_pos( win, &pos );
  21. _wputchstr( win, chstr, NOWRAP, n );
  22. _restore_curs_pos( win, &pos );
  23. return OK;
  24. }