2011-08-04 18:46:21 +00:00
|
|
|
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is libguac-client-ssh.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Michael Jumper.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2011
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2011-12-30 22:34:04 +00:00
|
|
|
* James Muehlner <dagger10k@users.sourceforge.net>
|
2011-08-04 18:46:21 +00:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2013-04-07 23:55:06 +00:00
|
|
|
#include <pthread.h>
|
2011-08-04 18:46:21 +00:00
|
|
|
|
|
|
|
#include <cairo/cairo.h>
|
|
|
|
#include <pango/pangocairo.h>
|
|
|
|
|
2011-11-26 23:35:45 +00:00
|
|
|
#include <guacamole/socket.h>
|
2011-08-04 18:46:21 +00:00
|
|
|
#include <guacamole/protocol.h>
|
|
|
|
#include <guacamole/client.h>
|
|
|
|
|
2013-04-25 18:54:00 +00:00
|
|
|
#include "types.h"
|
|
|
|
#include "buffer.h"
|
2013-04-25 18:55:50 +00:00
|
|
|
#include "display.h"
|
2012-12-09 08:35:37 +00:00
|
|
|
#include "terminal.h"
|
|
|
|
#include "terminal_handlers.h"
|
2011-08-04 18:46:21 +00:00
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
guac_terminal* guac_terminal_create(guac_client* client,
|
2012-10-23 08:38:10 +00:00
|
|
|
int width, int height) {
|
2011-08-04 18:46:21 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_char default_char = {
|
|
|
|
.value = ' ',
|
|
|
|
.attributes = {
|
|
|
|
.foreground = 7,
|
|
|
|
.background = 0,
|
|
|
|
.bold = false,
|
|
|
|
.reverse = false,
|
|
|
|
.underscore = false
|
|
|
|
}};
|
2013-03-20 05:48:43 +00:00
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
guac_terminal* term = malloc(sizeof(guac_terminal));
|
2011-08-04 18:46:21 +00:00
|
|
|
term->client = client;
|
|
|
|
|
2013-04-25 18:54:00 +00:00
|
|
|
/* Init buffer */
|
2013-04-26 09:29:30 +00:00
|
|
|
term->buffer = guac_terminal_buffer_alloc(1000, &default_char);
|
2013-04-25 18:54:00 +00:00
|
|
|
term->scroll_offset = 0;
|
2012-10-23 08:38:10 +00:00
|
|
|
|
2013-04-25 18:55:50 +00:00
|
|
|
/* Init display */
|
|
|
|
term->display = guac_terminal_display_alloc(client,
|
2013-04-26 08:53:19 +00:00
|
|
|
default_char.attributes.foreground,
|
|
|
|
default_char.attributes.background);
|
2012-10-23 08:38:10 +00:00
|
|
|
|
2013-04-25 18:54:00 +00:00
|
|
|
/* Init terminal state */
|
2013-04-26 08:53:19 +00:00
|
|
|
term->current_attributes = default_char.attributes;
|
|
|
|
term->default_char = default_char;
|
2012-10-23 08:38:10 +00:00
|
|
|
|
2011-08-04 18:46:21 +00:00
|
|
|
term->cursor_row = 0;
|
|
|
|
term->cursor_col = 0;
|
|
|
|
|
2013-04-26 21:14:19 +00:00
|
|
|
term->term_width = width / term->display->char_width;
|
|
|
|
term->term_height = height / term->display->char_height;
|
2012-12-09 08:35:37 +00:00
|
|
|
term->char_handler = guac_terminal_echo;
|
2011-08-04 18:46:21 +00:00
|
|
|
|
2011-08-06 05:59:42 +00:00
|
|
|
term->scroll_start = 0;
|
|
|
|
term->scroll_end = term->term_height - 1;
|
|
|
|
|
2013-04-15 08:22:05 +00:00
|
|
|
term->text_selected = false;
|
|
|
|
|
2013-04-26 21:14:19 +00:00
|
|
|
/* Size display */
|
|
|
|
guac_terminal_display_resize(term->display,
|
|
|
|
term->term_width, term->term_height);
|
|
|
|
|
2013-04-07 23:55:06 +00:00
|
|
|
/* Init terminal lock */
|
|
|
|
pthread_mutex_init(&(term->lock), NULL);
|
|
|
|
|
2011-08-04 18:46:21 +00:00
|
|
|
return term;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
void guac_terminal_free(guac_terminal* term) {
|
2011-12-30 22:34:04 +00:00
|
|
|
|
2013-04-25 18:55:50 +00:00
|
|
|
/* Free display */
|
|
|
|
guac_terminal_display_free(term->display);
|
2013-03-24 00:43:35 +00:00
|
|
|
|
2013-03-29 08:56:27 +00:00
|
|
|
/* Free buffer */
|
|
|
|
guac_terminal_buffer_free(term->buffer);
|
|
|
|
|
2011-08-04 18:46:21 +00:00
|
|
|
}
|
|
|
|
|
2013-03-24 23:56:17 +00:00
|
|
|
int guac_terminal_set(guac_terminal* term, int row, int col, char c) {
|
|
|
|
|
|
|
|
/* Build character with current attributes */
|
|
|
|
guac_terminal_char guac_char;
|
|
|
|
guac_char.value = c;
|
|
|
|
guac_char.attributes = term->current_attributes;
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_set_columns(term, row, col, col, &guac_char);
|
2013-03-29 08:56:27 +00:00
|
|
|
|
2013-03-24 23:56:17 +00:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-03-29 09:51:31 +00:00
|
|
|
int guac_terminal_toggle_reverse(guac_terminal* term, int row, int col) {
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_char* guac_char;
|
2013-04-05 20:12:18 +00:00
|
|
|
int scrolled_row = row + term->scroll_offset;
|
|
|
|
|
2013-03-29 09:51:31 +00:00
|
|
|
/* Get character from buffer */
|
2013-04-26 09:29:30 +00:00
|
|
|
guac_terminal_buffer_row* buffer_row = guac_terminal_buffer_get_row(term->buffer, row, col+1);
|
2013-03-29 09:51:31 +00:00
|
|
|
|
|
|
|
/* Toggle reverse */
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_char = &(buffer_row->characters[col]);
|
2013-03-29 09:51:31 +00:00
|
|
|
guac_char->attributes.reverse = !(guac_char->attributes.reverse);
|
|
|
|
|
2013-04-25 18:55:50 +00:00
|
|
|
/* Set display */
|
|
|
|
if (scrolled_row < term->display->height)
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_display_set_columns(term->display, scrolled_row, col, col, guac_char);
|
2013-03-29 09:51:31 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
int guac_terminal_write(guac_terminal* term, const char* c, int size) {
|
2011-08-04 18:46:21 +00:00
|
|
|
|
|
|
|
while (size > 0) {
|
2011-08-05 02:17:44 +00:00
|
|
|
term->char_handler(term, *(c++));
|
2011-08-04 18:46:21 +00:00
|
|
|
size--;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
int guac_terminal_scroll_up(guac_terminal* term,
|
2011-08-05 07:20:09 +00:00
|
|
|
int start_row, int end_row, int amount) {
|
2013-04-26 17:55:55 +00:00
|
|
|
|
2013-04-26 21:52:51 +00:00
|
|
|
/* If scrolling entire display, update scroll offset */
|
|
|
|
if (start_row == 0 && end_row == term->term_height - 1) {
|
|
|
|
|
|
|
|
/* Scroll up visibly */
|
|
|
|
guac_terminal_display_copy_rows(term->display, start_row + amount, end_row, -amount);
|
|
|
|
|
|
|
|
/* Advance by scroll amount */
|
|
|
|
term->buffer->top += amount;
|
|
|
|
term->buffer->length += amount;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Otherwise, just copy row data upwards */
|
|
|
|
else
|
|
|
|
guac_terminal_copy_rows(term, start_row + amount, end_row, -amount);
|
2013-04-26 17:55:55 +00:00
|
|
|
|
|
|
|
/* Clear new area */
|
|
|
|
guac_terminal_clear_range(term,
|
|
|
|
end_row - amount + 1, 0,
|
|
|
|
end_row, term->term_width - 1);
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
return 0;
|
2011-08-05 07:20:09 +00:00
|
|
|
}
|
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
int guac_terminal_scroll_down(guac_terminal* term,
|
2011-08-10 01:32:54 +00:00
|
|
|
int start_row, int end_row, int amount) {
|
2013-04-26 08:53:19 +00:00
|
|
|
/* STUB */
|
|
|
|
return 0;
|
|
|
|
}
|
2011-08-10 01:32:54 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
int guac_terminal_clear_columns(guac_terminal* term,
|
|
|
|
int row, int start_col, int end_col) {
|
|
|
|
|
|
|
|
/* Build space */
|
|
|
|
guac_terminal_char blank;
|
|
|
|
blank.value = ' ';
|
|
|
|
blank.attributes = term->current_attributes;
|
2011-08-10 01:32:54 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
/* Clear */
|
|
|
|
guac_terminal_set_columns(term,
|
|
|
|
row, start_col, end_col, &blank);
|
2011-08-10 01:32:54 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
return 0;
|
2011-08-10 01:32:54 +00:00
|
|
|
|
|
|
|
}
|
2011-08-05 07:20:09 +00:00
|
|
|
|
2012-12-09 08:35:37 +00:00
|
|
|
int guac_terminal_clear_range(guac_terminal* term,
|
2011-08-05 07:20:09 +00:00
|
|
|
int start_row, int start_col,
|
2013-03-29 09:51:31 +00:00
|
|
|
int end_row, int end_col) {
|
2011-08-05 07:20:09 +00:00
|
|
|
|
|
|
|
/* If not at far left, must clear sub-region to far right */
|
|
|
|
if (start_col > 0) {
|
|
|
|
|
|
|
|
/* Clear from start_col to far right */
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_clear_columns(term,
|
|
|
|
start_row, start_col, term->term_width - 1);
|
2011-08-05 07:20:09 +00:00
|
|
|
|
|
|
|
/* One less row to clear */
|
|
|
|
start_row++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* If not at far right, must clear sub-region to far left */
|
|
|
|
if (end_col < term->term_width - 1) {
|
|
|
|
|
|
|
|
/* Clear from far left to end_col */
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_clear_columns(term, end_row, 0, end_col);
|
2011-08-05 07:20:09 +00:00
|
|
|
|
|
|
|
/* One less row to clear */
|
|
|
|
end_row--;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Remaining region now guaranteed rectangular. Clear, if possible */
|
|
|
|
if (start_row <= end_row) {
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
int row;
|
|
|
|
for (row=start_row; row<=end_row; row++) {
|
|
|
|
|
|
|
|
/* Clear entire row */
|
|
|
|
guac_terminal_clear_columns(term, row, 0, term->term_width - 1);
|
|
|
|
|
|
|
|
}
|
2011-08-05 07:20:09 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-04-08 07:47:08 +00:00
|
|
|
void guac_terminal_scroll_display_down(guac_terminal* terminal,
|
|
|
|
int scroll_amount) {
|
2013-04-05 08:32:33 +00:00
|
|
|
|
2013-04-05 18:31:46 +00:00
|
|
|
int start_row, end_row;
|
|
|
|
int dest_row;
|
2013-04-05 08:32:33 +00:00
|
|
|
int row, column;
|
|
|
|
|
|
|
|
/* Limit scroll amount by size of scrollback buffer */
|
|
|
|
if (scroll_amount > terminal->scroll_offset)
|
|
|
|
scroll_amount = terminal->scroll_offset;
|
|
|
|
|
|
|
|
/* If not scrolling at all, don't bother trying */
|
|
|
|
if (scroll_amount == 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* Shift screen up */
|
|
|
|
if (terminal->term_height > scroll_amount)
|
2013-04-26 17:55:55 +00:00
|
|
|
guac_terminal_display_copy_rows(terminal->display,
|
|
|
|
scroll_amount, terminal->term_height - 1,
|
|
|
|
-scroll_amount);
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
/* Advance by scroll amount */
|
|
|
|
terminal->scroll_offset -= scroll_amount;
|
|
|
|
|
2013-04-05 18:31:46 +00:00
|
|
|
/* Get row range */
|
|
|
|
end_row = terminal->term_height - terminal->scroll_offset - 1;
|
|
|
|
start_row = end_row - scroll_amount + 1;
|
|
|
|
dest_row = terminal->term_height - scroll_amount;
|
|
|
|
|
2013-04-05 08:32:33 +00:00
|
|
|
/* Draw new rows from scrollback */
|
2013-04-05 18:31:46 +00:00
|
|
|
for (row=start_row; row<=end_row; row++) {
|
2013-04-05 08:32:33 +00:00
|
|
|
|
2013-04-25 19:10:01 +00:00
|
|
|
/* Get row from scrollback */
|
|
|
|
guac_terminal_buffer_row* buffer_row =
|
2013-04-26 09:29:30 +00:00
|
|
|
guac_terminal_buffer_get_row(terminal->buffer, row, 0);
|
2013-04-05 19:54:59 +00:00
|
|
|
|
2013-04-26 21:52:51 +00:00
|
|
|
/* Clear row */
|
|
|
|
guac_terminal_display_set_columns(terminal->display,
|
|
|
|
dest_row, 0, terminal->display->width, &(terminal->default_char));
|
|
|
|
|
2013-04-25 19:10:01 +00:00
|
|
|
/* Draw row */
|
|
|
|
guac_terminal_char* current = buffer_row->characters;
|
|
|
|
for (column=0; column<buffer_row->length; column++)
|
2013-04-26 17:55:55 +00:00
|
|
|
guac_terminal_display_set_columns(terminal->display,
|
|
|
|
dest_row, column, column, current++);
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
/* Next row */
|
2013-04-05 18:31:46 +00:00
|
|
|
dest_row++;
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* FIXME: Should flush somewhere more sensible */
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_display_flush(terminal->display);
|
2013-04-05 08:32:33 +00:00
|
|
|
guac_socket_flush(terminal->client->socket);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-04-08 07:47:08 +00:00
|
|
|
void guac_terminal_scroll_display_up(guac_terminal* terminal,
|
|
|
|
int scroll_amount) {
|
2013-04-05 08:32:33 +00:00
|
|
|
|
2013-04-05 18:31:46 +00:00
|
|
|
int start_row, end_row;
|
|
|
|
int dest_row;
|
2013-04-05 08:32:33 +00:00
|
|
|
int row, column;
|
|
|
|
|
|
|
|
|
|
|
|
/* Limit scroll amount by size of scrollback buffer */
|
2013-04-26 08:53:19 +00:00
|
|
|
if (terminal->scroll_offset + scroll_amount > terminal->buffer->length)
|
|
|
|
scroll_amount = terminal->buffer->length - terminal->scroll_offset;
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
/* If not scrolling at all, don't bother trying */
|
|
|
|
if (scroll_amount == 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* Shift screen down */
|
|
|
|
if (terminal->term_height > scroll_amount)
|
2013-04-26 17:55:55 +00:00
|
|
|
guac_terminal_display_copy_rows(terminal->display,
|
|
|
|
0, terminal->term_height - scroll_amount - 1,
|
|
|
|
scroll_amount);
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
/* Advance by scroll amount */
|
|
|
|
terminal->scroll_offset += scroll_amount;
|
|
|
|
|
2013-04-05 18:31:46 +00:00
|
|
|
/* Get row range */
|
|
|
|
start_row = -terminal->scroll_offset;
|
|
|
|
end_row = start_row + scroll_amount - 1;
|
|
|
|
dest_row = 0;
|
|
|
|
|
2013-04-05 08:32:33 +00:00
|
|
|
/* Draw new rows from scrollback */
|
2013-04-05 18:31:46 +00:00
|
|
|
for (row=start_row; row<=end_row; row++) {
|
2013-04-05 08:32:33 +00:00
|
|
|
|
2013-04-05 18:31:46 +00:00
|
|
|
/* Get row from scrollback */
|
2013-04-25 19:10:01 +00:00
|
|
|
guac_terminal_buffer_row* buffer_row =
|
2013-04-26 09:29:30 +00:00
|
|
|
guac_terminal_buffer_get_row(terminal->buffer, row, 0);
|
2013-04-05 08:32:33 +00:00
|
|
|
|
2013-04-26 21:52:51 +00:00
|
|
|
/* Clear row */
|
|
|
|
guac_terminal_display_set_columns(terminal->display,
|
|
|
|
dest_row, 0, terminal->display->width, &(terminal->default_char));
|
|
|
|
|
2013-04-05 08:32:33 +00:00
|
|
|
/* Draw row */
|
2013-04-25 19:10:01 +00:00
|
|
|
guac_terminal_char* current = buffer_row->characters;
|
|
|
|
for (column=0; column<buffer_row->length; column++)
|
2013-04-26 17:55:55 +00:00
|
|
|
guac_terminal_display_set_columns(terminal->display,
|
|
|
|
dest_row, column, column, current++);
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
/* Next row */
|
2013-04-05 18:31:46 +00:00
|
|
|
dest_row++;
|
2013-04-05 08:32:33 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* FIXME: Should flush somewhere more sensible */
|
2013-04-26 08:53:19 +00:00
|
|
|
guac_terminal_display_flush(terminal->display);
|
2013-04-05 08:32:33 +00:00
|
|
|
guac_socket_flush(terminal->client->socket);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-04-15 08:22:05 +00:00
|
|
|
void guac_terminal_select_start(guac_terminal* terminal, int row, int column) {
|
2013-04-26 08:53:19 +00:00
|
|
|
/* STUB */
|
2013-04-15 08:22:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void guac_terminal_select_update(guac_terminal* terminal, int row, int column) {
|
2013-04-26 08:53:19 +00:00
|
|
|
/* STUB */
|
2013-04-15 08:22:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void guac_terminal_select_end(guac_terminal* terminal) {
|
2013-04-26 08:53:19 +00:00
|
|
|
/* STUB */
|
|
|
|
}
|
2013-04-15 08:22:05 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
void guac_terminal_copy_columns(guac_terminal* terminal, int row,
|
|
|
|
int start_column, int end_column, int offset) {
|
|
|
|
/* STUB */
|
2013-04-26 17:55:55 +00:00
|
|
|
|
|
|
|
guac_terminal_display_copy_columns(terminal->display, row,
|
|
|
|
start_column, end_column, offset);
|
|
|
|
|
|
|
|
guac_terminal_buffer_copy_columns(terminal->buffer, row,
|
|
|
|
start_column, end_column, offset);
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
}
|
2013-04-15 08:22:05 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
void guac_terminal_copy_rows(guac_terminal* terminal,
|
|
|
|
int start_row, int end_row, int offset) {
|
|
|
|
/* STUB */
|
2013-04-26 17:55:55 +00:00
|
|
|
|
|
|
|
guac_terminal_display_copy_rows(terminal->display,
|
2013-04-26 08:53:19 +00:00
|
|
|
start_row, end_row, offset);
|
2013-04-26 17:55:55 +00:00
|
|
|
|
|
|
|
guac_terminal_buffer_copy_rows(terminal->buffer,
|
|
|
|
start_row, end_row, offset);
|
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
}
|
2013-04-15 08:22:05 +00:00
|
|
|
|
2013-04-26 08:53:19 +00:00
|
|
|
void guac_terminal_set_columns(guac_terminal* terminal, int row,
|
|
|
|
int start_column, int end_column, guac_terminal_char* character) {
|
|
|
|
/* STUB */
|
2013-04-26 09:29:30 +00:00
|
|
|
|
|
|
|
guac_terminal_display_set_columns(terminal->display, row,
|
|
|
|
start_column, end_column, character);
|
|
|
|
|
|
|
|
guac_terminal_buffer_set_columns(terminal->buffer, row,
|
|
|
|
start_column, end_column, character);
|
|
|
|
|
2013-04-15 08:22:05 +00:00
|
|
|
}
|
|
|
|
|