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 581B

1234567891011121314151617181920212223242526
  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. /**
  10. * Add string of single-byte characters and renditions to a window
  11. *
  12. * @v *win window to be rendered in
  13. * @v *chstr pointer to first chtype in "string"
  14. * @v n max number of chars from chstr to render
  15. * @ret rc return status code
  16. */
  17. int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) {
  18. struct cursor_pos pos;
  19. _store_curs_pos( win, &pos );
  20. _wputchstr( win, chstr, NOWRAP, n );
  21. _restore_curs_pos( win, &pos );
  22. return OK;
  23. }