Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
581 bytes
|
Line | |
---|
1 | #include <curses.h> |
---|
2 | #include "mucurses.h" |
---|
3 | #include "cursor.h" |
---|
4 | |
---|
5 | /** @file |
---|
6 | * |
---|
7 | * MuCurses printing functions (no cursor advance) |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | /** |
---|
12 | * Add string of single-byte characters and renditions to a window |
---|
13 | * |
---|
14 | * @v *win window to be rendered in |
---|
15 | * @v *chstr pointer to first chtype in "string" |
---|
16 | * @v n max number of chars from chstr to render |
---|
17 | * @ret rc return status code |
---|
18 | */ |
---|
19 | int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) { |
---|
20 | struct cursor_pos pos; |
---|
21 | |
---|
22 | _store_curs_pos( win, &pos ); |
---|
23 | _wputchstr( win, chstr, NOWRAP, n ); |
---|
24 | _restore_curs_pos( win, &pos ); |
---|
25 | return OK; |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.