Ruby
1.9.3p551(2014-11-13revision48407)
|
Go to the source code of this file.
Data Structures | |
struct | rawmode_arg_t |
Macros | |
#define | SET_LAST_ERROR (0) |
#define | InitVM(ext) {void InitVM_##ext(void);InitVM_##ext();} |
#define | GetReadFD(fptr) ((fptr)->fd) |
#define | GetWriteFD(fptr) get_write_fd(fptr) |
#define | FD_PER_IO 2 |
#define | CONSOLE_DEVICE_FOR_READING CONSOLE_DEVICE |
Typedefs | |
typedef OpenFile | rb_io_t |
Variables | |
static ID | id_getc |
static ID | id_console |
#define CONSOLE_DEVICE_FOR_READING CONSOLE_DEVICE |
Referenced by console_dev().
#define GetReadFD | ( | fptr | ) | ((fptr)->fd) |
Definition at line 214 of file console.c.
Referenced by console_dev(), console_echo_p(), console_iflush(), console_ioflush(), console_set_cooked(), console_set_echo(), console_set_raw(), and ttymode().
#define GetWriteFD | ( | fptr | ) | get_write_fd(fptr) |
Definition at line 229 of file console.c.
Referenced by console_ioflush(), console_oflush(), and ttymode().
Definition at line 89 of file console.c.
Referenced by Init_console().
Definition at line 349 of file console.c.
References NULL, rb_yield(), set_cookedmode(), and ttymode().
Referenced by InitVM_console().
Definition at line 654 of file console.c.
References args, CONSOLE_DEVICE_FOR_READING, FMODE_SYNC, GetOpenFile, GetReadFD, ID2SYM, INT2FIX, INT2NUM(), rb_io_t::mode, out, rb_io_t::pathv, Qnil, rb_cFile, rb_cIO, rb_class_new_instance(), rb_const_defined(), rb_const_get(), rb_const_set(), rb_io_close(), rb_mod_remove_const(), rb_obj_freeze(), rb_str_new2(), rb_update_max_fd(), RFILE, T_FILE, rb_io_t::tied_io_for_writing, and TYPE.
Referenced by InitVM_console().
Definition at line 455 of file console.c.
References echo_p(), GetOpenFile, GetReadFD, Qfalse, Qtrue, rb_sys_fail(), and t.
Referenced by InitVM_console().
Definition at line 394 of file console.c.
References getc_call(), opts, rawmode_opt(), set_rawmode(), and ttymode().
Referenced by InitVM_console().
Definition at line 579 of file console.c.
References GetOpenFile, GetReadFD, io, and rb_sys_fail().
Referenced by InitVM_console().
Definition at line 623 of file console.c.
References GetOpenFile, GetReadFD, GetWriteFD, io, and rb_sys_fail().
Referenced by InitVM_console().
Definition at line 413 of file console.c.
References NULL, rb_yield(), set_noecho(), and ttymode().
Referenced by InitVM_console().
Definition at line 601 of file console.c.
References GetOpenFile, GetWriteFD, io, and rb_sys_fail().
Referenced by InitVM_console().
Definition at line 304 of file console.c.
References opts, rawmode_opt(), rb_yield(), set_rawmode(), and ttymode().
Referenced by InitVM_console().
Definition at line 365 of file console.c.
References GetOpenFile, GetReadFD, io, NULL, rb_sys_fail(), set_cookedmode(), and t.
Referenced by InitVM_console().
Definition at line 429 of file console.c.
References GetOpenFile, GetReadFD, io, NULL, rb_sys_fail(), RTEST, set_echo(), set_noecho(), and t.
Referenced by InitVM_console().
Definition at line 321 of file console.c.
References GetOpenFile, GetReadFD, io, opts, rawmode_opt(), rb_sys_fail(), set_rawmode(), and t.
Referenced by InitVM_console().
|
static |
Definition at line 190 of file console.c.
Referenced by console_echo_p().
Definition at line 221 of file console.c.
References rb_io_t::fd, GetOpenFile, and rb_io_t::tied_io_for_writing.
Definition at line 742 of file console.c.
References console_cooked(), console_dev(), console_echo_p(), console_getch(), console_iflush(), console_ioflush(), console_noecho(), console_oflush(), console_raw(), console_set_cooked(), console_set_echo(), console_set_raw(), io_getch(), rb_cIO, rb_define_method(), rb_define_module_under(), and rb_define_singleton_method().
Definition at line 725 of file console.c.
References rb_funcall2(), and rb_intern.
Referenced by InitVM_console().
|
static |
Definition at line 100 of file console.c.
References ID2SYM, INT2FIX, NIL_P, NULL, NUM2INT, opts, rb_funcall3(), rb_hash_aref(), rb_intern, rb_scan_args(), rawmode_arg_t::vmin, and rawmode_arg_t::vtime.
Referenced by console_getch(), console_raw(), and console_set_raw().
Definition at line 151 of file console.c.
Referenced by console_cooked(), and console_set_cooked().
Definition at line 178 of file console.c.
Referenced by console_set_echo().
Definition at line 166 of file console.c.
Referenced by console_noecho(), and console_set_echo().
Definition at line 124 of file console.c.
References arg, r, rawmode_arg_t::vmin, and rawmode_arg_t::vtime.
Referenced by console_getch(), console_raw(), and console_set_raw().
|
static |
Definition at line 235 of file console.c.
References errno, FD_PER_IO, func, GetOpenFile, GetReadFD, GetWriteFD, Qnil, rb_jump_tag(), rb_protect(), rb_sys_fail(), result, set_ttymode(), and status.
Referenced by console_cooked(), console_getch(), console_noecho(), and console_raw().