syscons.h (4a9b63a454e2162d1105fc10af468d05b1d71330) | syscons.h (aa3d547d095ff07fdc39ffc5ae4c371844b504ab) |
---|---|
1/*- 2 * Copyright (c) 1995-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 303 unchanged lines hidden (view full) --- 312 int mouse_oldpos; /* mouse old buffer position */ 313 short mouse_xpos; /* mouse x coordinate */ 314 short mouse_ypos; /* mouse y coordinate */ 315 short mouse_oldxpos; /* mouse previous x coordinate */ 316 short mouse_oldypos; /* mouse previous y coordinate */ 317 short mouse_buttons; /* mouse buttons */ 318 int mouse_cut_start; /* mouse cut start pos */ 319 int mouse_cut_end; /* mouse cut end pos */ | 1/*- 2 * Copyright (c) 1995-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 303 unchanged lines hidden (view full) --- 312 int mouse_oldpos; /* mouse old buffer position */ 313 short mouse_xpos; /* mouse x coordinate */ 314 short mouse_ypos; /* mouse y coordinate */ 315 short mouse_oldxpos; /* mouse previous x coordinate */ 316 short mouse_oldypos; /* mouse previous y coordinate */ 317 short mouse_buttons; /* mouse buttons */ 318 int mouse_cut_start; /* mouse cut start pos */ 319 int mouse_cut_end; /* mouse cut end pos */ |
320 int mouse_level; /* xterm mouse protocol */ | |
321 struct proc *mouse_proc; /* proc* of controlling proc */ 322 pid_t mouse_pid; /* pid of controlling proc */ 323 int mouse_signal; /* signal # to report with */ 324 325 u_short bell_duration; 326 u_short bell_pitch; 327 328 u_char border; /* border color */ --- 50 unchanged lines hidden (view full) --- 379#define SC_TE_HARD_RESET 0 380#define SC_TE_SOFT_RESET 1 381typedef void sc_term_default_attr_t(scr_stat *scp, int norm, int rev); 382typedef void sc_term_clear_t(scr_stat *scp); 383typedef void sc_term_notify_t(scr_stat *scp, int event); 384#define SC_TE_NOTIFY_VTSWITCH_IN 0 385#define SC_TE_NOTIFY_VTSWITCH_OUT 1 386typedef int sc_term_input_t(scr_stat *scp, int c, struct tty *tp); | 320 struct proc *mouse_proc; /* proc* of controlling proc */ 321 pid_t mouse_pid; /* pid of controlling proc */ 322 int mouse_signal; /* signal # to report with */ 323 324 u_short bell_duration; 325 u_short bell_pitch; 326 327 u_char border; /* border color */ --- 50 unchanged lines hidden (view full) --- 378#define SC_TE_HARD_RESET 0 379#define SC_TE_SOFT_RESET 1 380typedef void sc_term_default_attr_t(scr_stat *scp, int norm, int rev); 381typedef void sc_term_clear_t(scr_stat *scp); 382typedef void sc_term_notify_t(scr_stat *scp, int event); 383#define SC_TE_NOTIFY_VTSWITCH_IN 0 384#define SC_TE_NOTIFY_VTSWITCH_OUT 1 385typedef int sc_term_input_t(scr_stat *scp, int c, struct tty *tp); |
387typedef const char *sc_term_fkeystr_t(scr_stat *scp, int c); | |
388 389typedef struct sc_term_sw { 390 LIST_ENTRY(sc_term_sw) link; 391 char *te_name; /* name of the emulator */ 392 char *te_desc; /* description */ 393 char *te_renderer; /* matching renderer */ 394 size_t te_size; /* size of internal buffer */ 395 int te_refcount; /* reference counter */ 396 sc_term_init_t *te_init; 397 sc_term_term_t *te_term; 398 sc_term_puts_t *te_puts; 399 sc_term_ioctl_t *te_ioctl; 400 sc_term_reset_t *te_reset; 401 sc_term_default_attr_t *te_default_attr; 402 sc_term_clear_t *te_clear; 403 sc_term_notify_t *te_notify; 404 sc_term_input_t *te_input; | 386 387typedef struct sc_term_sw { 388 LIST_ENTRY(sc_term_sw) link; 389 char *te_name; /* name of the emulator */ 390 char *te_desc; /* description */ 391 char *te_renderer; /* matching renderer */ 392 size_t te_size; /* size of internal buffer */ 393 int te_refcount; /* reference counter */ 394 sc_term_init_t *te_init; 395 sc_term_term_t *te_term; 396 sc_term_puts_t *te_puts; 397 sc_term_ioctl_t *te_ioctl; 398 sc_term_reset_t *te_reset; 399 sc_term_default_attr_t *te_default_attr; 400 sc_term_clear_t *te_clear; 401 sc_term_notify_t *te_notify; 402 sc_term_input_t *te_input; |
405 sc_term_fkeystr_t *te_fkeystr; | |
406} sc_term_sw_t; 407 408#define SCTERM_MODULE(name, sw) \ 409 DATA_SET(scterm_set, sw); \ 410 static int \ 411 scterm_##name##_event(module_t mod, int type, void *data) \ 412 { \ 413 switch (type) { \ --- 151 unchanged lines hidden (view full) --- 565void sc_set_cursor_image(scr_stat *scp); 566void sc_change_cursor_shape(scr_stat *scp, int flags, 567 int base, int height); 568int sc_clean_up(scr_stat *scp); 569int sc_switch_scr(sc_softc_t *sc, u_int next_scr); 570void sc_alloc_scr_buffer(scr_stat *scp, int wait, int discard); 571int sc_init_emulator(scr_stat *scp, char *name); 572void sc_paste(scr_stat *scp, const u_char *p, int count); | 403} sc_term_sw_t; 404 405#define SCTERM_MODULE(name, sw) \ 406 DATA_SET(scterm_set, sw); \ 407 static int \ 408 scterm_##name##_event(module_t mod, int type, void *data) \ 409 { \ 410 switch (type) { \ --- 151 unchanged lines hidden (view full) --- 562void sc_set_cursor_image(scr_stat *scp); 563void sc_change_cursor_shape(scr_stat *scp, int flags, 564 int base, int height); 565int sc_clean_up(scr_stat *scp); 566int sc_switch_scr(sc_softc_t *sc, u_int next_scr); 567void sc_alloc_scr_buffer(scr_stat *scp, int wait, int discard); 568int sc_init_emulator(scr_stat *scp, char *name); 569void sc_paste(scr_stat *scp, const u_char *p, int count); |
573void sc_respond(scr_stat *scp, const u_char *p, 574 int count, int wakeup); | 570void sc_respond(scr_stat *scp, const u_char *p, int count); |
575void sc_bell(scr_stat *scp, int pitch, int duration); 576 577/* schistory.c */ 578#ifndef SC_NO_HISTORY 579int sc_alloc_history_buffer(scr_stat *scp, int lines, 580 int prev_ysize, int wait); 581void sc_free_history_buffer(scr_stat *scp, int prev_ysize); 582void sc_hist_save(scr_stat *scp); --- 99 unchanged lines hidden --- | 571void sc_bell(scr_stat *scp, int pitch, int duration); 572 573/* schistory.c */ 574#ifndef SC_NO_HISTORY 575int sc_alloc_history_buffer(scr_stat *scp, int lines, 576 int prev_ysize, int wait); 577void sc_free_history_buffer(scr_stat *scp, int prev_ysize); 578void sc_hist_save(scr_stat *scp); --- 99 unchanged lines hidden --- |