Rev 1497 | Rev 1504 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1497 | Rev 1499 | ||
---|---|---|---|
Line 137... | Line 137... | ||
137 | ipc_call_async(fb_info.phone, FB_SCROLL, 1, NULL, NULL); |
137 | ipc_call_async(fb_info.phone, FB_SCROLL, 1, NULL, NULL); |
138 | } |
138 | } |
139 | 139 | ||
140 | scr->position_x = scr->position_x % scr->size_x; |
140 | scr->position_x = scr->position_x % scr->size_x; |
141 | scr->position_y = scr->position_y % scr->size_y; |
141 | scr->position_y = scr->position_y % scr->size_y; |
- | 142 | ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, scr->position_y, scr->position_x, NULL, NULL); |
|
142 | 143 | ||
143 | } |
144 | } |
144 | 145 | ||
145 | 146 | ||
146 | /* Handler for keyboard */ |
147 | /* Handler for keyboard */ |
Line 170... | Line 171... | ||
170 | 171 | ||
171 | conn = &connections[active_console]; |
172 | conn = &connections[active_console]; |
172 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
173 | // if ((c >= KBD_KEY_F1) && (c < KBD_KEY_F1 + CONSOLE_COUNT)) { |
173 | if ((c >= '1') && (c < '1' + CONSOLE_COUNT)) { |
174 | if ((c >= '1') && (c < '1' + CONSOLE_COUNT)) { |
174 | /*FIXME: draw another console content from buffer */ |
175 | /*FIXME: draw another console content from buffer */ |
175 | if (c - KBD_KEY_F1 == active_console) |
176 | if (c - '1' == active_console) |
176 | break; |
177 | break; |
177 | active_console = c - '1'; |
178 | active_console = c - '1'; |
178 | conn = &connections[active_console]; |
179 | conn = &connections[active_console]; |
179 | 180 | ||
180 | ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 0, NULL, NULL); |
181 | ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 0, NULL, NULL); |
Line 184... | Line 185... | ||
184 | for (j = 0; j < conn->screenbuffer.size_y; j++) { |
185 | for (j = 0; j < conn->screenbuffer.size_y; j++) { |
185 | d = get_field_at(&(conn->screenbuffer),i, j)->character; |
186 | d = get_field_at(&(conn->screenbuffer),i, j)->character; |
186 | if (d && d != ' ') |
187 | if (d && d != ' ') |
187 | ipc_call_async_3(fb_info.phone, FB_PUTCHAR, d, j, i, NULL, NULL); |
188 | ipc_call_async_3(fb_info.phone, FB_PUTCHAR, d, j, i, NULL, NULL); |
188 | } |
189 | } |
- | 190 | ||
189 | ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL); |
191 | ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL); |
190 | ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL, NULL); |
192 | ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL, NULL); |
191 | 193 | ||
192 | break; |
194 | break; |
193 | } |
195 | } |