Was bedeutet das 'bool bf'?
-
Ich sitze immer noch an meinem ersten Programm unter Verwendung von ncurses. Das klappt auch schon recht gut, so dass es jetzt an die Feinheiten gehen kann. Dazu 'studiere' ich z. B. gerade die 'man keypad' und schon tut sich die naechste Bildungsluecke auf:
SYNOPSIS #include <curses.h> int cbreak(void); int nocbreak(void); int echo(void); int noecho(void); int halfdelay(int tenths); int intrflush(WINDOW *win, bool bf); int keypad(WINDOW *win, bool bf); int meta(WINDOW *win, bool bf); int nodelay(WINDOW *win, bool bf); int raw(void); int noraw(void); void noqiflush(void); void qiflush(void);
Mag mir jemand verraten, was diese 'bf' hinter bool bedeutet?
Guenther
-
Die Funktionen übernehmen jeweils einen bool(ean) Parameter, der die Bezeichnung 'bf' bekommt. Was diese Parameter bewirken, steht in der Beschreibung man: keypad:
man keypad schrieb:
The keypad option enables the keypad of the user's termi-
nal. If enabled (bf is TRUE), the user can press a func-
tion key (such as an arrow key) and wgetch returns a sin-
gle value representing the function key, as in KEY_LEFT.
If disabled (bf is FALSE), curses does not treat function
keys specially and the program has to interpret the escape
sequences itself. If the keypad in the terminal can be
turned on (made to transmit) and off (made to work
locally), turning on this option causes the terminal key-
pad to be turned on when wgetch is called. The default
value for keypad is false.(wofür 'bf' steht, wissen nur die Erfinder)
-
D A N K E!!!