Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

selection.h File Reference

#include <linux/vt_buffer.h>

Include dependency graph for selection.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define video_num_columns   (vc_cons[currcons].d->vc_cols)
#define video_num_lines   (vc_cons[currcons].d->vc_rows)
#define video_size_row   (vc_cons[currcons].d->vc_size_row)
#define can_do_color   (vc_cons[currcons].d->vc_can_do_color)

Functions

void clear_selection (void)
int set_selection (const unsigned long arg, struct tty_struct *tty, int user)
int paste_selection (struct tty_struct *tty)
int sel_loadlut (const unsigned long arg)
int mouse_reporting (void)
void mouse_report (struct tty_struct *tty, int butt, int mrx, int mry)
unsigned short * screen_pos (int currcons, int w_offset, int viewed)
u16 screen_glyph (int currcons, int offset)
void complement_pos (int currcons, int offset)
void invert_screen (int currcons, int offset, int count, int shift)
void getconsxy (int currcons, char *p)
void putconsxy (int currcons, char *p)
u16 vcs_scr_readw (int currcons, const u16 *org)
void vcs_scr_writew (int currcons, u16 val, u16 *org)

Variables

int sel_cons
int console_blanked
unsigned char color_table []
int default_red []
int default_grn []
int default_blu []


Define Documentation

#define can_do_color   (vc_cons[currcons].d->vc_can_do_color)
 

Definition at line 24 of file selection.h.

Referenced by __initfunc(), build_attr(), invert_screen(), setterm_command(), and visual_init().

#define video_num_columns   (vc_cons[currcons].d->vc_cols)
 

Definition at line 21 of file selection.h.

Referenced by __initfunc(), arch_decomp_setup(), complement_pos(), con_open(), csi_at(), csi_J(), csi_K(), csi_P(), csi_X(), delete_char(), do_con_trol(), do_con_write(), do_update_region(), gotoxy(), insert_char(), puts(), scrdown(), scrup(), set_selection(), vc_allocate(), vc_init(), vc_resize(), vcs_read(), vcs_size(), vcs_write(), and visual_init().

#define video_num_lines   (vc_cons[currcons].d->vc_rows)
 

Definition at line 22 of file selection.h.

Referenced by __initfunc(), arch_decomp_setup(), con_open(), csi_J(), csi_L(), csi_M(), do_con_trol(), gotoxy(), lf(), puts(), reset_terminal(), scrdown(), scrollback(), scrollfront(), scrup(), set_mode(), set_selection(), vc_allocate(), vc_init(), vc_resize(), vcs_read(), vcs_size(), and visual_init().

#define video_size_row   (vc_cons[currcons].d->vc_size_row)
 

Definition at line 23 of file selection.h.

Referenced by arch_decomp_setup(), gotoxy(), lf(), ri(), scrdown(), scrup(), set_origin(), set_selection(), vc_init(), vc_resize(), and visual_init().


Function Documentation

void clear_selection void   ) 
 

Definition at line 69 of file selection.c.

References highlight(), highlight_pointer(), sel_end, and sel_start.

Referenced by console_bh(), do_con_trol(), hide_cursor(), set_cursor(), and set_selection().

Here is the call graph for this function:

void complement_pos int  currcons,
int  offset
 

Definition at line 401 of file drivers/char/console.c.

References complement_mask, d, DO_UPDATE, NULL, p, scr_readw, scr_writew, screenpos(), sw, and video_num_columns.

Referenced by highlight_pointer().

Here is the call graph for this function:

void getconsxy int  currcons,
char *  p
 

Definition at line 2788 of file drivers/char/console.c.

References x, and y.

Referenced by vcs_read(), and vcs_write().

void invert_screen int  currcons,
int  offset,
int  count,
int  shift
 

Definition at line 366 of file drivers/char/console.c.

References a, can_do_color, cnt, d, DO_UPDATE, do_update_region(), hi_font_mask, p, screenpos(), sw, u16, and x100.

Referenced by highlight(), and set_mode().

Here is the call graph for this function:

void mouse_report struct tty_struct *  tty,
int  butt,
int  mrx,
int  mry
 

Definition at line 1138 of file drivers/char/console.c.

References buf, respond_string(), and sprintf().

Referenced by set_selection().

Here is the call graph for this function:

int mouse_reporting void   ) 
 

Definition at line 1148 of file drivers/char/console.c.

References fg_console, and report_mouse.

Referenced by set_selection(), and tioclinux().

int paste_selection struct tty_struct *  tty  ) 
 

Definition at line 295 of file selection.c.

References count, current, MIN, NULL, vt_struct::paste_wait, poke_blanked_console(), schedule(), sel_buffer, sel_buffer_lth, TASK_INTERRUPTIBLE, TASK_RUNNING, and test_bit.

Referenced by tioclinux().

Here is the call graph for this function:

void putconsxy int  currcons,
char *  p
 

Definition at line 2794 of file drivers/char/console.c.

References gotoxy(), and set_cursor().

Referenced by vcs_write().

Here is the call graph for this function:

u16 screen_glyph int  currcons,
int  offset
 

Definition at line 2772 of file drivers/char/console.c.

References hi_font_mask, scr_readw, screenpos(), u16, and w.

Referenced by sel_pos().

Here is the call graph for this function:

unsigned short* screen_pos int  currcons,
int  w_offset,
int  viewed
 

Definition at line 2783 of file drivers/char/console.c.

References screenpos().

Referenced by vcs_read(), and vcs_write().

Here is the call graph for this function:

int sel_loadlut const unsigned long  arg  ) 
 

Definition at line 97 of file selection.c.

References copy_from_user, EFAULT, inwordLut, and u32.

Referenced by tioclinux().

int set_selection const unsigned long  arg,
struct tty_struct *  tty,
int  user
 

Definition at line 119 of file selection.c.

References args, atedge(), bp, clear_selection(), EINVAL, ENOMEM, fg_console, get_user, highlight(), highlight_pointer(), i, inword(), isspace, KERN_WARNING, kfree(), kmalloc(), limit(), mouse_report(), mouse_reporting(), poke_blanked_console(), printk, sel_buffer, sel_buffer_lth, sel_cons, sel_end, sel_pos(), sel_start, tmp, unblank_screen(), verify_area(), VERIFY_READ, video_num_columns, video_num_lines, video_size_row, xe, and xs().

Referenced by tioclinux().

Here is the call graph for this function:

u16 vcs_scr_readw int  currcons,
const u16 org
 

Definition at line 2800 of file drivers/char/console.c.

References pos, scr_readw, and softcursor_original.

Referenced by vcs_read(), and vcs_write().

void vcs_scr_writew int  currcons,
u16  val,
u16 org
 

Definition at line 2807 of file drivers/char/console.c.

References add_softcursor(), pos, scr_writew, and softcursor_original.

Referenced by vcs_write().

Here is the call graph for this function:


Variable Documentation

unsigned char color_table[]
 

Definition at line 799 of file drivers/char/console.c.

int console_blanked
 

Definition at line 149 of file drivers/char/console.c.

Referenced by do_blank_screen(), fbcon_bmove(), fbcon_clear(), fbcon_putc(), fbcon_putcs(), fbcon_scroll(), fbcon_scrolldelta(), fbcon_set_origin(), fbcon_set_palette(), poke_blanked_console(), promcon_bmove(), promcon_clear(), promcon_putc(), promcon_putcs(), promcon_scroll(), set_cursor(), unblank_screen(), and vgacon_set_origin().

int default_blu[]
 

Definition at line 807 of file drivers/char/console.c.

Referenced by __initfunc(), aty128_init(), control_set_hardware(), matroxfb_set_var(), newport_init_cmap(), reset_palette(), set_get_cmap(), tgafb_set_par(), and vc_init().

int default_grn[]
 

Definition at line 805 of file drivers/char/console.c.

Referenced by __initfunc(), aty128_init(), control_set_hardware(), matroxfb_set_var(), newport_init_cmap(), reset_palette(), set_get_cmap(), tgafb_set_par(), and vc_init().

int default_red[]
 

Definition at line 803 of file drivers/char/console.c.

Referenced by __initfunc(), aty128_init(), control_set_hardware(), matroxfb_set_var(), newport_init_cmap(), reset_palette(), set_get_cmap(), tgafb_set_par(), and vc_init().

int sel_cons
 

Definition at line 39 of file selection.c.

Referenced by hide_cursor(), highlight(), highlight_pointer(), sel_pos(), set_cursor(), and set_selection().