��� ����� ��� ncurses_mvaddchnstr
(PHP 4 >= 4.2.0, PHP 5)
ncurses_mvaddchstr — Move position and add attributed string
Description int ncurses_mvaddchstr ( int y, int x, string s )
Warning | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
������� | �������� |
---|---|
A_NORMAL | ����������, ������������� ����� ���������� |
A_STANDOUT | �������� ����� ����� |
A_UNDERLINE | ������������� |
A_REVERSE | �������� ����������� |
A_BLINK | ������� |
A_DIM | ������� ��� ��������� ����� |
A_BOLD | ������ ����� |
A_ALTCHARSET | ������������� �������������� ���������� ������� |
A_INVIS | ��������� ����� |
A_PROTECT | ����� ������ |
A_CHARTEXT | ����� ��� ����������� �������� (chtype) |
A_COLOR | ����� ��� ����� |
COLOR_PAIR(n) | ��������� �������� ���� n |
PAIR_NUMBER(a) | ��������� �������� ����, ������� � �������� a |
��������� ��� ���� �������� «��������» � «������ �����» � ����� �������� ������� � ��������� ����� �������
[��� ���������](
��������� ����� ���� ��������� � ����� �� ��� � ������� �� ������� «����� � ����».
����� ������� ������������� ������ ���������� ���������, �������� �� ��� ���, � ���������, ��� ���������� ��������� �������� ��� COLOR_PAIRS �� ������ ����, ������� �� ����� �������.
��� ������������� �������� � ������ ���������� ������� start_color .
������� has_colors ��������� ������, ����� �� ������������ �����. ���� ��� ���������� FALSE , �� ������������ ����� ������.
��� �������� �������� ��� ������ ������� init_pair :
foreground � ���� �������; background � ���� ����. pair_number � ����� ��������� �������� ����. ������ ���� ����� ��������������� ����� �� 1 �� COLOR_PAIRS-1 (0 �������������� ��� ������������ �����������). ��� ��������� ����� ���������� ������� color_set , � ������� ����������� ����� ������ �������� ����.
��������
������ ������ ����� ��������� � ������� ���������� ��������, ������ ��� ��� ������ (������, ������������), �������� � �. �. ��� �������� �������������� ������ �������, ������ ��� ������� �������� �� ������������ �����������.
���� ��� ������� ������������� ���������: ��������� �� ��� ������� ���������� ������� ��� ��������� � ��� ����� ����.
������� ������� ��������������� ��� ������ ������� waddch(win, ch) ��� addch(ch) . ��� ���������� ������� � ��������� � �������������� ��������� ������ ���������� ���. ��������, A_UNDERLINE � ���������������� �������, ���������� �� ������������� �������. ��� ����, ����� ������� � ���� win ������ ‘X’ � �������������� ����� �������:
�������� ��������, ��� �������� ���� ��������� �� ����� ����������� ����, � ��� ����� � � �����. � �� �� ����� ������� «Hello, world!» �� �������, ��������� ��������� �� � ����, � �� ������, �� ������� �� ���������������� ���������� ��������� � ������� wattron .
��� ������ ������� �� stdscr ������������ ������� getch :
�� ��������� ��������� ������ ������������ �� ������. ��������� ����������� ����� �������� noecho .
����� ������� cbreak ��������� getch ��������� ����������� �� ������������ ������ ��������������� ����� ������� �������. � ��������� ������ ���������� ������ �������� � ��������� ������ ����� ����, ��� ����� ������ ������ ����� ������. ����� ������ ��������� � getch �����������, �� �������� FIFO, �� ��� ��� ���� ����� ����� �� ��������.
�� ���������, getch ������� ������� �������. ��� �������, ��������, ����� ����� ������������ ���������� ���������. �������� ��� ��������� ����� � ������� ������� nodelay(stdscr, TRUE) . ����� ��������� ������������ ��� �������� ������ � ������� ����������, ��� ��������� ����������� ������� ������������. ��������:
����� ������� keypad(stdstr, TRUE) , ��������� ������������ ������� ����������� ������, ����� ��� �������, Ctrl ��� Delete, � ����� �� ����������. � ���������� ������� ������������ ����� �����, ������� ����� �������, ���������� � ��������� �����-���� ��������.
� ������� ���� ��������� ���� ������:
��� ������� | �������� |
---|---|
KEY_DOWN | ������� �� ��������� |
KEY_UP | |
KEY_LEFT | |
KEY_RIGHT | |
KEY_HOME | Home |
KEY_BACKSPACE | Backspace |
KEY_F(n) | �������������� ������� � 0 = 63 |
KEY_DC | Delete |
KEY_IC | Insert |
KEY_ENTER | Enter |
���������� � ��������� ������� ������ ����������� ���:
������ �������� �� ���� ����������� ��������
������ ����� ����������� ������ � ������������ ������� � �������� �������:
� ��������� ������ ������ ‘X’ ������������ �� ������ ��������� �� ���������:
������
- ����� �., ������ �. ������ ���������������� � Linux. � ���.: ���-���������, 2009, ����� 6. � �. 253�301. Ncurses Programming Guide by by X. Li. ��� ���� ������� �����������.NCURSES Programming HOWTO, Pradeep Padala. ���, ��� �����. *����������� ������������ ��� Linux, ������� �. ��������. ���������� �� �������.
������� �����
�����������
������� ������
������������ ������������� � ���, ��� � ��� �������: ���� ������, �� ������, ���������� �������������� �������, ���� ��� �������������, ������������ � ���������� ����������. �� � �� ����� �������.
��� ����� ��� ncurses_mvaddchnstr
(PHP 4 >= 4.2.0, PHP 5)
ncurses_mvaddchnstr — Move position and add attributed string with specified length
Description int ncurses_mvaddchnstr ( int y, int x, string s, int n )
Внимание | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Внимание | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5i | ������� �� ����� ��� �� ������ |
am | �������������� �������, ��� �������� �������������� �������������� ������ |
bs | Crtl-H ������������ backspace |
bw | backspace �� ����� ������� ��������� ������ �� ������ ������� ���������� |
da | ������� ����������� ��� ������� ������� |
db | ������� ����������� ��� ������� ������� |
eo | ������ ������� ������ �� ������� ������� |
es | esc-������������������ � ����������� ������� �������� � ������ ��������� |
gn | ������� ���������� |
hc | ��� �������� ������� ����� (hardcopy terminal) |
HC | ������ ����� �����, ����� �� �� �� ��������� ����� |
hs | ������������ ����� ������� |
hz | �������� �� ����� ���������� ������ (tilde characters) |
in | �������� ��������� ���� ������ �������� �� ������ ����� |
km | �������� ����� ���� ������� |
mi | ����� ������� ��� ������� |
ms | ����� ������������ ������ / ������������� ��� ������� |
NP | ��� ��������-������������ |
NR | ti �� �������� teos �������� ����� �������� ������ |
ul | �������� ������������, �� ������ �������� �� ����� |
xb | ����, ��������� ���������������, F1 �������� ESCAPE, F2 �������� ^C |
xn | ���� ����� ����� / ���������� ����� |
xo | �������� ���������� xon/xoff �������� |
xs | �����, ������������ ������ �����������, ����� ������� |
xt | ���� �������������� ����, �������� ��������� � �������� ����� ��������� |
�������� ��������
co | ����� �������� |
dB | ������������ �� ����������� ��� �������� �� ���������� ������� ����� |
dC | ������������ �� ����������� ��� �������� ������� �� ���������� ������� ����� |
dF | ������������ �� ����������� ��� ���������� �������� �� ���������� ������� ����� |
dN | ������������ �� ����������� ��� ����� ����� �� ���������� ������� ����� |
dT | ������������ �� ����������� ��� ��������� �� ���������� ������� ����� |
dV | ������������ �� ����������� ��� ������������ ��������� �� ���������� ������� ����� |
it | ������ ����� ��������� ��������� |
lh | ������ ������ ����� |
lm | ����� ������ |
lw | ������ |
li | ����� ����� |
Nl | ����� ������ ����� |
pb | ���������� �������, ����� ��������� ������������ |
sg | ���� ������ ��������� |
ug | ���� ������ ������������� |
vt | ����� ������������ ��������� |
ws | ������ ����� �������, ���� ��� ������� �� ������ ������ |
��������� ��������
!1 | ������� ���������� � ������� �������� | |||||||||
!2 | ������� ������������ � ������� �������� | |||||||||
!3 | ������� undo � ������� �������� | |||||||||
#1 | ������� ������ � ������� �������� | |||||||||
#2 | ������� home � ������� �������� | |||||||||
#3 | ������� ����� � ������� �������� | |||||||||
#4 | ������� ������ — ����� � ������� �������� | |||||||||
%0 | ������� redo | |||||||||
%1 | ������� ������ | |||||||||
%2 | ������� ������� | |||||||||
%3 | ������� ��������� | |||||||||
%4 | ������� ����������� | |||||||||
%5 | ������� ���������� ������� | |||||||||
%6 | ������� �������� | |||||||||
%7 | ������� ����� | |||||||||
%8 | ������� ����������� ������� | |||||||||
%9 | ������� ������ | |||||||||
%a | ������� ��������� � ������� �������� | |||||||||
%b | ������� ����������� � ������� �������� | |||||||||
%c | ������� ���������� ������� � ������� �������� | |||||||||
%d | ������� ����� � ������� �������� | |||||||||
%e | ������� ����������� ������� � ������� �������� | |||||||||
%f | ������� ������ � ������� �������� | |||||||||
%g | ������� redo � ������� �������� | |||||||||
%h | ������� ������������ � ������� �������� | |||||||||
%i | ������� ������-������ � ������� �������� | |||||||||
%j | ������� ����������� � ������� �������� | |||||||||
&0 | ������� cancel � ������� �������� | |||||||||
&1 | ������� ������ | |||||||||
&2 | ������� ���������� | |||||||||
&3 | ������� ������������ | |||||||||
&4 | ������� ����������� | |||||||||
&5 | ������� ����������� | |||||||||
&6 | ������� ���������� | |||||||||
&7 | ������� ������������ | |||||||||
&8 | ������� undo | |||||||||
&9 | ������� ������ � ������� �������� | |||||||||
*0 | ������� ������ � ������� �������� | |||||||||
*1 | ������� ������� � ������� �������� | |||||||||
*2 | ������� ����������� � ������� �������� | |||||||||
*3 | ������� �������� � ������� �������� | |||||||||
*4 | ������� �������� ������� � ������� �������� | |||||||||
*5 | ������� �������� ������ � ������� �������� | |||||||||
*6 | ������� ��������� | |||||||||
*7 | ������� ����� � ������� �������� | |||||||||
*8 | ������� ������� ����� � ������� �������� | |||||||||
*9 | ������� ������ � ������� �������� | |||||||||
������� ������1 ������� ������ | ||||||||||
2 | ������� cancel | |||||||||
3 | ������� �������� | |||||||||
4 | ������� ������� | |||||||||
5 | ������� ����������� | |||||||||
6 | ������� �������� | |||||||||
7 | ������� ����� | |||||||||
8 | ������� �����/������� | |||||||||
9 | ������� ������ | |||||||||
al | ������� ������� ����� ����� | |||||||||
AL | ������� ������� %1 ����� | |||||||||
ac | ���� ����� ��������, ������������ � ������ ������� �������� | |||||||||
ae | ����� ��������� �������� �� �������������� ������� | |||||||||
as | ������ ����� �������� � �������������� ������� | |||||||||
bc | backspace, ���� �� ^H | |||||||||
bl | ������ ������ | |||||||||
bt | ������� � ����������� ����� ��������� | |||||||||
cb | ������� �� ������ ����� �� ������� | |||||||||
cc | �������� ��������� ������ | |||||||||
cd | ������� �� ����� ������ | |||||||||
ce | ������� �� ����� ����� | |||||||||
ch | ����������� ������� ������������� �� ������� %1 | |||||||||
cl | ������� ������, ������ ���������� � ������ | |||||||||
cm | ������ ������������ �� ������ %1 � ������� %2 (�� ������) | |||||||||
CM | ������ ������������ �� ����� %1 � ������� %2 (� ������) | |||||||||
cr | ������� ������� | |||||||||
cs | ������� ��������� �� ����� %1 �� ����� %2 | |||||||||
ct | ������� ��������� | |||||||||
cv | ������������ �������� ������� �� ����� %1 | |||||||||
dc | �������� 1 ������� | |||||||||
DC | �������� %1 �������� | |||||||||
dl | �������� 1 ����� | |||||||||
DL | �������� %1 ����� | |||||||||
dm | ������ ������ �������� | |||||||||
do | ������ �� 1 ����� ���� | |||||||||
DO | ������ �� %1 ����� ���� | |||||||||
ds | ������ ����� ������� | |||||||||
eA | ������������� �������������� ���������� ������� | |||||||||
ec | �������� %1 �������� ������� � ������� ������� | |||||||||
ed | ����� ������ �������� | |||||||||
ei | ����� ������ ������� | |||||||||
ff | ������ ������������ ������ �� ���������� ������� ����� | |||||||||
fs | ������� ������� �� ��� ������� ����� ��������� �� ����� ������� | |||||||||
F1 | ������ ������� �������������� �������� F11 | |||||||||
. | . | |||||||||
F9 | ������ ������� �������������� �������� F19 | |||||||||
FA | ������ ������� �������������� �������� F20 | |||||||||
. | . | |||||||||
FZ | ������ ������� �������������� �������� F45 | |||||||||
Fa | ������ ������� �������������� �������� F46 | |||||||||
. | . | |||||||||
Fr | ������ ������� �������������� �������� F63 | |||||||||
hd | ����������� ������� �� ���-����� ���� | |||||||||
ho | ������ � ������ | |||||||||
hu | ����������� ������� �� ���-����� ����� | |||||||||
i1 | ������������� ������ 1 � ������ ������ | |||||||||
i3 | ������������� ������ 3 � ������ ������ | |||||||||
is | ������������� ������ 2 � ������ ������ | |||||||||
ic | ������� 1 ������� | |||||||||
IC | ������� %1 �������� | |||||||||
if | ���� ������������� | |||||||||
im | ������ ������ ������� | |||||||||
ip | ������� ������� � ����������� ����������� �������� ����� ������� | |||||||||
iP | ��������� ������������� | |||||||||
K1 | ������� ����� ������� �� keypad | |||||||||
K2 | ����������� ������� �� keypad | |||||||||
K3 | ������� ������ ������� �� keypad | |||||||||
K4 | ������ ����� ������� �� keypad | |||||||||
K5 | ������ ������ ������� �� keypad | |||||||||
k0 | �������������� ������� 0 | |||||||||
. | . | |||||||||
k9 | �������������� ������� 9 | |||||||||
k; | �������������� ������� 10 | |||||||||
ka | ������� ������� ���� ��������� | |||||||||
kA | ������� ������� ����� | |||||||||
kb | ������� backspace | |||||||||
kB | ������� �������� � ����������� ����� ��������� | |||||||||
kC | ������� ������� ������ | |||||||||
kd | ������� down | |||||||||
kD | ������� �������� ������� ��� �������� | |||||||||
ke | ���������� keypad | |||||||||
kE | ������� ������� �� ����� ����� | |||||||||
kh | ������� ������ — home | |||||||||
kH | ������� ������ home + down | |||||||||
kI | ������� ������� / ������� ������ ������� | |||||||||
kl | ������� ������ — left | |||||||||
kL | ������� �������� ����� | |||||||||
kM | M������� ������ �� ������ ������� | |||||||||
kN | ������� ��������� �������� | |||||||||
kP | ������� ���������� �������� | |||||||||
kr | ������� ������ — right | |||||||||
kR | ������� ��������� �����/����� | |||||||||
ks | ��������� keypad | |||||||||
kS | ������� ������� �� ����� ������ | |||||||||
kt | ������� ������� ������ ��������� | |||||||||
kT | ������� ��������� ��������� �� ���� ����� | |||||||||
ku | ������� ������ — up | |||||||||
l0 | ����� ��� ������� �������������� �������, ���� �� f0 | |||||||||
l1 | ����� ��� ������ �������������� �������, ���� �� f1 | |||||||||
l2 | ����� ��� ������ �������������� �������, ���� �� f2 | |||||||||
. | ||||||||||
la | ����� ��� ������� �������������� �������, ���� �� f10 | |||||||||
le | ������ ����� �� 1 ������ | |||||||||
ll | ����������� ������� � ������ ����� ���� | |||||||||
LE | ������ ����� �� %1 �������� | |||||||||
LF | ���������� ������ ����� | |||||||||
LO | ��������� ������ ����� | |||||||||
mb | ������ �������� | |||||||||
MC | ������� ������ ������ | |||||||||
md | ������ ������ �������� �������� | |||||||||
me | ����� ���� ������� ���� so, us, mb, md, mr | |||||||||
mh | ������ ���������� ������ | |||||||||
mk | ������ ������� ������ (������� �� �����) | |||||||||
ML | ��������� ����� ������ ������� | |||||||||
mm | ���� ��������� � ��������� | |||||||||
mo | ����� ��������� �� ���������� | |||||||||
mp | ��������� ����������� �������� | |||||||||
mr | ������ ������ ��������� (reverse mode) | |||||||||
MR | ��������� ������ ������ ������� | |||||||||
nd | ������ �� 1 ������ ����� | |||||||||
nw | ������� �������� ������� | |||||||||
pc | ������-����������� | |||||||||
pf | ���������� �������� | |||||||||
pk | ����������� ������� %1 ��� ������� ������ %2, ���� ������ ������������� | |||||||||
pl | ����������� ������� %1 ��� ���������� ������ %2 � ��������� ������ | |||||||||
pn | ����������� ������ ����� %1 ��� ����������� ������ %2 | |||||||||
po | ����������� �������� | |||||||||
pO | ����������� �������� ��� %1 ( ���� ��������������� TRUE, �� ������ ��������� � ���� �������� ���������� ���������� ������. ��� ����� �������� �������������� ���������, ������� �������� �� ��������� — FALSE. (���� �� �����������.)
���� bf ����� TRUE, �� ��������� ����� wrefresh(win) ������� ����� � ��������� ��� ���������� (Ctrl+L � ��������� vi). * int leaveok(win, bf) �� ��������� ncurses ������ ������ ���, ��� �� ��� ��� ��������� ���������� ����. ���������, �� ������������ ������, ����� ���������� leaveok(. ) TRUE � ���������� �����, ����������� �������� �������. ����� ����, ncurses ���������� ������� ������ ��������� ���������. ���������� ��������� �� ����� ������. ����� nl() ����������� ������� ������� � ������������; nonl() ��������� ��������. � ��������� ������ ncurses ����� �������� ����������� �������. ���������� ncurses 0Et cetera > ��������������������������, ����������, ������ �������� segmentation fault ��-�� ������ (3) � ������ ������� add_wch �� ������� ����������� (��� ����� ����������: �� ������ ������), ���� � man ��� ����������� � ���������, ��� ���� ���������� , ���� �� �������� ���� � man: int add_wch( const cchar_t *wch ); void exit_curs(int i) /*(2)*/ w = newwin( 20, 20, 1, 1); /*(3)*/ wattrset( w, A_ALTCHARSET | A_STANDOUT ); /*(4)*/ waddstr( w, �string�); ��� ����� ������. ������������� ���� ���: gcc $ ��� � ������ bsd: gcc $ � ������� ����� ���������� gr, �������� gr.c � ������ � ������������ ���: cc gr.c -o gr -lcurses -lm ����� ��� �������� �� gcc gr.c -o gr -lncurses �� ��� ������ �� ��������. ���� ��� �� ������ ���������� ��� ������ �� ����� ������. (� ���� Linux Mandrake10) � �� BSD ���� ��������� ��� �� ��������: �� ���� �������� �� ������� ������ �� add_wch, ���� � man �� ������. � � ����. � ***** Mandrake ��� �� ��������� ������ ������� ���������� (eg. ���������� ��������� ������������). ������� �������� mandrake � ��������� ���������� �����������. ��� �������� ����� ���� � �������� -devel ������, ���� ncurses-devel � �.�. � ���������� �� ���. � ���� ��������� ��� ������� (�� �����), �.�. ��� �� ������ ����.
� �� �� ���� ������ Mandrake. ���������� �����������. �������, � ������ �� ������. ����� ���� ���� ����������� man ������. � ���� �� RH 7.3 � OS X �� ���� �������: ���� �� ����� ��� ��������� ������� ��� ������ � wide ��������� (������� add_wch) ��� �� �� �����������. ������������ ��������� �� ������������� ��������� ��������� ��� � ���������. �����, ��� ��� ������������ *.h � ���������� (otool on OS X and nm; objdump;file on Linux) ������ ������������� ��� man. add_wch � ������ ���. � ������ ������� ������ ������ ��� �������, � ��� �����������. ������ ���������� ������ ��� ��������� ������. ���� ���� �������� ����� ����������� � �������. Routine Name Index The following table lists each curses routine and the name of the man- ual page on which it is described. Routines flagged with `*’ are ncurses-specific, not described by XPG4 or present in SVr4. add_wch ����� * �� ��������, ������, �� ������������� ��� :\ > gcc -o test -lcurses test.c test.c: In function `main�: test.c:5: error: `w’ undeclared (first use in this function) test.c:5: error: (Each undeclared identifier is reported only once test.c:5: error: for each function it appears in.) ��������, ��� �������� ������-������ �������� void exit_curs(int i) /*(2)*/ w = newwin( 20, 20, 1, 1); /*(3)*/ wattrset( w, A_ALTCHARSET | A_STANDOUT ); /*(4)*/ waddstr( w, �string�); /var/tmp//ccbHBF62.o: In function `main�: /var/tmp//ccbHBF62.o(.text+0?70): undefined reference to `add_wch’ �������� � ������, ��� ������� � ������ �� ����������� �������� �� �� addstr. ����� ��������. 2sas: � ���� � ����� ����� �� �������, ������ � ����� ����� ������� �� Mandrake, �������� (?) �����������, ��� �� ����������� libncurses-dev. ���. ������� ������� cebka, � ��� ���� � �� ������� ��������, � ����� ��������� ���������� ���������� w, WINDOW*w. ������ ���� ����� � ������� �� ���������, ��� ��� ���������� ��� ����������. cebeka, � ���� ��� ���� ���������, ����� �� ��������� add_wch �� addstr? � ���� �������� segmentation fault ��-�� ������ (3). � ������� (4), � ������� ������� ��������� ���� WINDOW ������ ������ �� ������. � � ��� ���������� ����� �������� (3)? ������ ���������� ���� ������� (add_wch(5)) : ��� ������� ������� ���� ����������� �� � ������� Linux, BSD, �.�. � 1992-1994 ��� ������� ���� ���� � ���������� curses, � � ncurses � �������� ������. ����� �������� � ���� �� ����� ������ ����������_ ����������� �� ���������������� �� �� � Unix�, � ������� ���������� ����� ����� ���������� ��������, � ��� ����� � ������ �� curses. ���� ���������� �� ���������, �� �������� ����� ����� � �����. void exit_curs(int i) /*(2)*/ w = newwin( 20, 20, 1, 1); /*(3)*/ wattrset( w, A_ALTCHARSET | A_STANDOUT ); ��� ����� ��� ncurses_mvaddchnstrncurses_mvaddchnstr — ���������� ������� � ��������� ��������������� ������ ����������������� �����. ��������int ncurses_mvaddchnstr (int y, int x, string s, int n)
| |||||||||
|
���������, ������� ��������� �� ���� ���������, ������� ������������� ������ ��������
LXVII. ������� ���������� ������� ��������� Ncurses
��������������! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
��� ���������� �������� �����������������. ��������� ����� ����������, ����� ��� ������� � ��, ��� �����������������, ����� ���������� � ����������� ������� ��� ��� ��������������. �� ������������� � ������ ������������ ��� ���������� ������ ��� ���� ���������������. ncurses (new curses/����� �����) ��� ��������� ����������� �������� ������ � System V Rel 4.0 (� ����). ��� ���������� ������ terminfo, ������������ ����������, �����, ������������� ���������/highlights, ����������� �������� ����� � ������ �������. Ncurses ������� ��� ��������� ��������: Digital Unix (aka OSF1) ��� ���������� ���������� � header-����� ncurses. ��������� ��������� ������ � ftp://ftp.gnu.org/pub/gnu/ncurses/ ��� � ������� ������� GNU. ����� ��� ������� ��������, �� ������ �������������� CGI-������ PHP � ������ —with-ncurses . ��� ������ ncurses-������� ���������� NCURSES_ERR. ������� 1. ��������� ������ ncurses
������� 2. ��������� ������ ncurses
������� 3. mouse-���������
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
� 2006-2012 ���-������ ������� ������ �������������
����� �����
������ ����� � ����������� ���������� ����� ������, «Delphi. ������ ��������». ����� ��� � � «Delphi. ������ ��������», � ������ ������� �������� ����������� ��������� ��� �����, ��������� �������� ���������, ������� �������, ��������� �������� ����������, ���������� ���������� � ����� Windows XP. � ���������, ����� ����� ����� ����� ������� ��� ���������� �������� SMS, FTP-������, ������� ����������, CGI-�������� � ������ ������. ������� ������ ������ � ��������� �������� Windows � INI-�������, � ����� ��������� ������ ������� ���������������� �� ��������� ������ � ����������� ������� Windows API. ��� ���������� ��������� �������� ������ ������ �������� ����������� ������� ����� ����.
����� ������������� ��� �� ���, ��� ��� ����� ���� �������� ���������� � Delphi, ��� � �� ���������� �������������. ��� ���������� ������������� Delphi � ����� ����� ��������� ���������� � ��������� ���������� ����� ���������������� Object Pascal.
����������� �������� �������� ��������������� � �� �� ���� ������ �������� ��������. ��� ������ ������� ��� ���, ���������� ���, �������� ������������ �������� ����������, ����������� ����������� ���� ����������� �������� ���� � �������� ��������� ���� ��������������.
��� ����� �� � ���, ��� ���������� �� �����. ��� ����� � ���, ��� �������� �������� ������ �� �������� �����, � ����� ������ ������������, ������� � �������, ������� �������� ������ ���� ������.
���� �� ���������� ��� �������, ���������� �������� ��� ����� � ��� �� ��� ���. ����� �������� ��� �����, ������� ���� � ���� �� �������� ��� ����������� �� ��������, ��������������� ��� ����� ����.
��� ����� ��� ncurses_mvaddchnstr
ncurses_mvaddchnstr — Move position and add attrributed string with specified length
Description int ncurses_mvaddchnstr ( int y, int x, string s, int n)
Warning |