Changeset e87e18f in mainline
- Timestamp:
- 2006-06-02T18:19:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d6cc453
- Parents:
- a9bd960c
- Location:
- console
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
console/console.c
ra9bd960c re87e18f 48 48 #define NAME "CONSOLE" 49 49 50 /** Index of currently used virtual console. 51 */ 50 52 int active_console = 0; 51 53 54 /** Information about framebuffer 55 */ 52 56 struct { 53 57 int phone; /**< Framebuffer phone */ … … 56 60 } fb_info; 57 61 62 58 63 typedef struct { 59 keybuffer_t keybuffer; 60 FIFO_CREATE_STATIC(keyrequests, ipc_callid_t , MAX_KEYREQUESTS_BUFFERED); 61 int keyrequest_counter; 62 int client_phone; 63 int used; 64 screenbuffer_t screenbuffer; 64 keybuffer_t keybuffer; /**< Buffer for incoming keys. */ 65 FIFO_CREATE_STATIC(keyrequests, ipc_callid_t , MAX_KEYREQUESTS_BUFFERED); /**< Buffer for unsatisfied request for keys. */ 66 int keyrequest_counter; /**< Number of requests in buffer. */ 67 int client_phone; /**< Phone to connected client. */ 68 int used; /**< 1 if this virtual console is connected to some client.*/ 69 screenbuffer_t screenbuffer; /**< Screenbuffer for saving screen contents and related settings. */ 65 70 } connection_t; 66 71 67 68 69 connection_t connections[CONSOLE_COUNT]; 70 keyfield_t *interbuffer = NULL; 71 72 connection_t connections[CONSOLE_COUNT]; /**< Array of data for virtual consoles */ 73 keyfield_t *interbuffer = NULL; /**< Pointer to memory shared with framebufer used for faster virt. console switching */ 74 75 76 /** Find unused virtual console. 77 * 78 */ 72 79 static int find_free_connection() 73 80 { … … 82 89 } 83 90 84 91 /** Find index of virtual console used by client with given phone. 92 * 93 */ 85 94 static int find_connection(int client_phone) 86 95 { … … 152 161 153 162 154 /* Handler for keyboard */163 /** Handler for keyboard */ 155 164 static void keyboard_events(ipc_callid_t iid, ipc_call_t *icall) 156 165 { -
console/screenbuffer.c
ra9bd960c re87e18f 47 47 /** Initilize screenbuffer. Allocate space for screen content in accordance to given size. 48 48 * @param scr initialized screenbuffer 49 * @param size_x 50 * @param size_y 49 * @param size_x width in characters 50 * @param size_y height in characters 51 * @return pointer to screenbuffer (same as scr parameter) or NULL 51 52 */ 52 53 screenbuffer_t *screenbuffer_init(screenbuffer_t *scr, int size_x, int size_y) … … 66 67 } 67 68 69 /** Clear screenbuffer. 70 * @param scr screenbuffer 71 */ 68 72 void screenbuffer_clear(screenbuffer_t *scr) 69 73 { … … 80 84 } 81 85 82 /** Clear one buffer line 86 /** Clear one buffer line. 83 87 * @param scr 84 88 * @param line One buffer line (not a screen line!) … … 94 98 } 95 99 100 /** Copy content buffer from screenbuffer to given memory. 101 * @param scr source screenbuffer 102 * @param dest destination 103 */ 96 104 void screenbuffer_copy_buffer(screenbuffer_t *scr, keyfield_t *dest) 97 105 { … … 103 111 } 104 112 113 /** Set new cursor position in screenbuffer. 114 * @param scr 115 * @param x 116 * @param y 117 */ 105 118 void screenbuffer_goto(screenbuffer_t *scr, unsigned int x, unsigned int y) 106 119 { … … 109 122 } 110 123 124 /** Set new style. 125 * @param scr 126 * @param fg_color 127 * @param bg_color 128 */ 111 129 void screenbuffer_set_style(screenbuffer_t *scr, unsigned int fg_color, unsigned int bg_color) 112 130 {
Note:
See TracChangeset
for help on using the changeset viewer.