From b9ff400d3331ccd3be0aad49cbdadf2cb23a68e2 Mon Sep 17 00:00:00 2001 From: james <> Date: Wed, 27 Feb 2008 01:32:41 +0000 Subject: *** empty log message *** --- src/ptty.c | 7 +++++-- src/vt102.c | 20 ++++++++++++-------- src/vt102_charset.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 src/vt102_charset.h (limited to 'src') diff --git a/src/ptty.c b/src/ptty.c index b8e77b1..b2e5d0f 100644 --- a/src/ptty.c +++ b/src/ptty.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.13 2008/02/27 01:31:38 james + * *** empty log message *** + * * Revision 1.12 2008/02/27 01:31:14 james * *** empty log message *** * @@ -140,7 +143,7 @@ ptty_write (TTY * _t, void *buf, int len) } TTY * -ptty_open (char *path, char *argv[],int width) +ptty_open (char *path, char *argv[], int width) { PTTY *t; pid_t child; @@ -153,7 +156,7 @@ ptty_open (char *path, char *argv[],int width) client_termios (&ctermios); winsize.ws_row = VT102_ROWS; - winsize.ws_col = width ? width:VT102_COLS_80; + winsize.ws_col = width ? width : VT102_COLS_80; child = forkpty (&fd, name, &ctermios, &winsize); diff --git a/src/vt102.c b/src/vt102.c index a879999..52f7fb9 100644 --- a/src/vt102.c +++ b/src/vt102.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.46 2008/02/27 01:31:38 james + * *** empty log message *** + * * Revision 1.45 2008/02/27 01:31:14 james * *** empty log message *** * @@ -2032,14 +2035,15 @@ vt102_new (int width) vt102_reset (v); - if (width) { - v->current_width =width; - v->crt.width = v->current_width; - v->screen_end.x = v->current_width - 1; - v->top_margin = v->screen_start; - v->bottom_margin = v->screen_end; - vt102_cursor_home (v); - } + if (width) + { + v->current_width = width; + v->crt.width = v->current_width; + v->screen_end.x = v->current_width - 1; + v->top_margin = v->screen_start; + v->bottom_margin = v->screen_end; + vt102_cursor_home (v); + } return v; } diff --git a/src/vt102_charset.h b/src/vt102_charset.h new file mode 100644 index 0000000..a1130fa --- /dev/null +++ b/src/vt102_charset.h @@ -0,0 +1,30 @@ +/* + * vt102_charset.h: + * + * Copyright (c) 2008 James McKenzie , + * All rights reserved. + * + */ + +/* + * $Id$ + */ + +/* + * $Log$ + * Revision 1.1 2008/02/27 01:32:41 james + * *** empty log message *** + * + */ + +#ifndef __VT102_CHARSET_H__ +#define __VT102_CHARSET_H__ + +#define VT102_CHARSET_SIZE 128 + +#define VT102_CSID_US 0 +#define VT102_CSID_UK 1 +#define VT102_CSID_GL 2 +#define VT102_CSID_VT52 3 + +#endif /* __VT102_CHARSET_H__ */ -- cgit v1.2.3