version 1.9, 2010/06/11 16:58:20 |
version 1.12, 2010/06/25 19:50:23 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 60 static void ps_end(struct termp *); |
|
Line 60 static void ps_end(struct termp *); |
|
static void ps_advance(struct termp *, size_t); |
static void ps_advance(struct termp *, size_t); |
static void ps_endline(struct termp *); |
static void ps_endline(struct termp *); |
static void ps_fclose(struct termp *); |
static void ps_fclose(struct termp *); |
|
static size_t ps_width(const struct termp *, char); |
static void ps_pclose(struct termp *); |
static void ps_pclose(struct termp *); |
static void ps_pletter(struct termp *, char); |
static void ps_pletter(struct termp *, char); |
static void ps_printf(struct termp *, const char *, ...); |
static void ps_printf(struct termp *, const char *, ...); |
|
|
if (NULL == (p = term_alloc(TERMENC_ASCII))) |
if (NULL == (p = term_alloc(TERMENC_ASCII))) |
return(NULL); |
return(NULL); |
|
|
|
p->defrmargin = 78; |
|
p->tabwidth = 5; |
|
|
p->type = TERMTYPE_PS; |
p->type = TERMTYPE_PS; |
p->letter = ps_letter; |
p->letter = ps_letter; |
p->begin = ps_begin; |
p->begin = ps_begin; |
p->end = ps_end; |
p->end = ps_end; |
p->advance = ps_advance; |
p->advance = ps_advance; |
p->endline = ps_endline; |
p->endline = ps_endline; |
|
p->width = ps_width; |
return(p); |
return(p); |
} |
} |
|
|
Line 425 ps_setfont(struct termp *p, enum termfont f) |
|
Line 430 ps_setfont(struct termp *p, enum termfont f) |
|
p->engine.ps.lastf = f; |
p->engine.ps.lastf = f; |
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static size_t |
|
ps_width(const struct termp *p, char c) |
|
{ |
|
|
|
return(1); |
|
} |