📄 printw.3cur
字号:
.TH printw 3cur .SH Nameprintw, mvprintw, mvwprintw, wprintw \- formatted write to a window.SH Syntax.br.B#include <cursesX.h>.PP.br.Bint printw(fmt [, arg] ...).br.Bchar \(**fmt;.PP.Bint wprintw(win, fmt [, arg] ...).br.BWINDOW \(**win;.br.Bchar \(**fmt;.PP.Bint mvprintw(y, x, fmt [, arg] ...).br.Bint y, x;.br.Bchar \(**fmt;.PP.Bint mvwprintw(win, y, x, fmt [, arg] ...).br.BWINDOW \(**win;.br.Bint y, x;.br.Bchar \(**fmt;.SH Description.NXR "printw subroutine".NXR "wprintw subroutine".NXR "mvprintw subroutine".NXR "mvwprintw subroutine".NXA "printf subroutine" "printw subroutine"The.PN printwroutineadds a string to the default window starting at the current cursor position.This routine causes the string that would normally be output by .PN printf to be output by .PN addstr ..PPThe routine.PN wprintwadds a string to the specified window starting at the current cursor position.This routine causes the stringthat would normally be output by .PN printf to be output by .PN waddstr ..PPThe routine.PN mvprintwadds a string to the default window starting at the specified cursor position.This routine causes the stringthat would normally be output by .PN printf to be output by .PN addstr ..PPThe routine.PN mvwprintwadds a string to the specified window starting at the specified cursor position.This routine causes the stringthat would normally be output by .PN printf to be output by .PN waddstr ..PPAll these routines are analogous to .PN printf .It is advisable to use the field width options of .PN printf to avoid leaving unwanted characters on the screen from earlier calls..SH Return ValuesThe.PN printw ,.PN mvprintw ,.PN mvwprintw ,and.PN wprintwfunctions return OK on success and ERR on error..SH See Alsoaddstr(3cur), waddstr(3cur), printf(3s)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -