Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Functions
console.c File Reference
#include "ruby.h"
#include "ruby/io.h"

Go to the source code of this file.

Data Structures

struct  rawmode_arg_t
 

Macros

#define rb_funcallv   rb_funcall2
 
#define SET_LAST_ERROR   (0)
 
#define rb_sym2str(sym)   rb_id2str(SYM2ID(sym))
 
#define GetReadFD(fptr)   ((fptr)->fd)
 
#define GetWriteFD(fptr)   get_write_fd(fptr)
 
#define FD_PER_IO   2
 
#define console_goto   rb_f_notimplement
 
#define console_cursor_pos   rb_f_notimplement
 
#define console_cursor_set   rb_f_notimplement
 
#define console_key_pressed_p   rb_f_notimplement
 
#define CONSOLE_DEVICE_FOR_READING   CONSOLE_DEVICE
 

Functions

void Init_console (void)
 
void InitVM_console (void)
 

Macro Definition Documentation

◆ console_cursor_pos

#define console_cursor_pos   rb_f_notimplement

Definition at line 759 of file console.c.

◆ console_cursor_set

#define console_cursor_set   rb_f_notimplement

Definition at line 760 of file console.c.

◆ CONSOLE_DEVICE_FOR_READING

#define CONSOLE_DEVICE_FOR_READING   CONSOLE_DEVICE

◆ console_goto

#define console_goto   rb_f_notimplement

Definition at line 758 of file console.c.

◆ console_key_pressed_p

#define console_key_pressed_p   rb_f_notimplement

Definition at line 761 of file console.c.

◆ FD_PER_IO

#define FD_PER_IO   2

Definition at line 242 of file console.c.

◆ GetReadFD

#define GetReadFD (   fptr)    ((fptr)->fd)

Definition at line 229 of file console.c.

◆ GetWriteFD

#define GetWriteFD (   fptr)    get_write_fd(fptr)

Definition at line 240 of file console.c.

◆ rb_funcallv

#define rb_funcallv   rb_funcall2

◆ rb_sym2str

#define rb_sym2str (   sym)    rb_id2str(SYM2ID(sym))

◆ SET_LAST_ERROR

#define SET_LAST_ERROR   (0)

Definition at line 79 of file console.c.

Function Documentation

◆ Init_console()

void Init_console ( void  )

Definition at line 951 of file console.c.

References InitVM, and rb_intern.

◆ InitVM_console()

void InitVM_console ( void  )

Definition at line 969 of file console.c.

References rb_cIO, and rb_define_method().