From c86f0c7a71e7ade3e38b325c186a9cf374e0411e Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 30 May 1995 08:16:23 +0000 Subject: Remove trailing whitespace. --- sys/i386/isa/pcvt/pcvt_out.c | 380 +++++++++++++++++++++---------------------- 1 file changed, 190 insertions(+), 190 deletions(-) (limited to 'sys/i386/isa/pcvt/pcvt_out.c') diff --git a/sys/i386/isa/pcvt/pcvt_out.c b/sys/i386/isa/pcvt/pcvt_out.c index d11fd0f..cce878b 100644 --- a/sys/i386/isa/pcvt/pcvt_out.c +++ b/sys/i386/isa/pcvt/pcvt_out.c @@ -86,50 +86,50 @@ u_short attrib, ch; if ((ch >= 0x20) && (ch <= 0x7f)) /* use GL if ch >= 0x20 */ { if(!svsp->ss) /* single shift G2/G3 -> GL ? */ - { - *video = attrib | svsp->GL[ch-0x20]; - } - else - { - *video = attrib | svsp->Gs[ch-0x20]; - svsp->ss = 0; - } - } - else - { - svsp->ss = 0; - + { + *video = attrib | svsp->GL[ch-0x20]; + } + else + { + *video = attrib | svsp->Gs[ch-0x20]; + svsp->ss = 0; + } + } + else + { + svsp->ss = 0; + if(ch >= 0x80) /* display controls C1 */ - { + { if(ch >= 0xA0) /* use GR if ch >= 0xA0 */ - { - *video = attrib | svsp->GR[ch-0xA0]; - } - else - { + { + *video = attrib | svsp->GR[ch-0xA0]; + } + else + { if(vgacs[svsp->vga_charset].secondloaded) - { + { *video = attrib | ((ch-0x60) | CSH); - } - else /* use normal ibm charset for + } + else /* use normal ibm charset for control display */ - { - *video = attrib | ch; - } - } - } + { + *video = attrib | ch; + } + } + } else /* display controls C0 */ - { - if(vgacs[svsp->vga_charset].secondloaded) - { - *video = attrib | (ch | CSH); - } + { + if(vgacs[svsp->vga_charset].secondloaded) + { + *video = attrib | (ch | CSH); + } else /* use normal ibm charset for control display*/ - { - *video = attrib | ch; - } - } - } + { + *video = attrib | ch; + } + } + } } /*---------------------------------------------------------------------------* @@ -144,7 +144,7 @@ sput (u_char *s, U_char kernel, int len, int page) if(page >= PCVT_NSCREENS) /* failsafe */ page = 0; - + svsp = &vs[page]; /* pointer to current screen state */ if(do_initialization) /* first time called ? */ @@ -173,7 +173,7 @@ sput (u_char *s, U_char kernel, int len, int page) if((ch <= 0x1f) && (svsp->transparent == 0)) { - + /* always process control-chars in the range 0x00..0x1f !!! */ if(svsp->dis_fnc) @@ -191,7 +191,7 @@ sput (u_char *s, U_char kernel, int len, int page) bcopy((svsp->Crtat + svsp->cur_offset), (svsp->Crtat + svsp->cur_offset) + 1, (((svsp->maxcol)-1) - svsp->col)*CHR); - + write_char(svsp, attrib, ch); vt_selattr(svsp); @@ -216,10 +216,10 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->col++; svsp->lastchar = 0; } - } + } else { - switch(ch) + switch(ch) { case 0x00: /* NUL */ case 0x01: /* SOH */ @@ -229,12 +229,12 @@ sput (u_char *s, U_char kernel, int len, int page) case 0x05: /* ENQ */ case 0x06: /* ACK */ break; - + case 0x07: /* BEL */ if(svsp->bell_on) sysbeep(PCVT_SYSBEEPF/1500, hz/4); break; - + case 0x08: /* BS */ if(svsp->col > 0) { @@ -242,7 +242,7 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->col--; } break; - + case 0x09: /* TAB */ while(svsp->col < ((svsp->maxcol)-1)) { @@ -252,7 +252,7 @@ sput (u_char *s, U_char kernel, int len, int page) break; } break; - + case 0x0a: /* LF */ case 0x0b: /* VT */ case 0x0c: /* FF */ @@ -270,20 +270,20 @@ sput (u_char *s, U_char kernel, int len, int page) } check_scroll(svsp); break; - + case 0x0d: /* CR */ svsp->cur_offset -= svsp->col; svsp->col = 0; break; - + case 0x0e: /* SO */ svsp->GL = svsp->G1; break; - + case 0x0f: /* SI */ svsp->GL = svsp->G0; break; - + case 0x10: /* DLE */ case 0x11: /* DC1/XON */ case 0x12: /* DC2 */ @@ -291,27 +291,27 @@ sput (u_char *s, U_char kernel, int len, int page) case 0x14: /* DC4 */ case 0x15: /* NAK */ case 0x16: /* SYN */ - case 0x17: /* ETB */ + case 0x17: /* ETB */ break; - + case 0x18: /* CAN */ svsp->state = STATE_INIT; clr_parms(svsp); break; - + case 0x19: /* EM */ break; - + case 0x1a: /* SUB */ svsp->state = STATE_INIT; clr_parms(svsp); break; - + case 0x1b: /* ESC */ svsp->state = STATE_ESC; clr_parms(svsp); break; - + case 0x1c: /* FS */ case 0x1d: /* GS */ case 0x1e: /* RS */ @@ -322,9 +322,9 @@ sput (u_char *s, U_char kernel, int len, int page) } else { - + /* char range 0x20...0xff processing depends on current state */ - + switch(svsp->state) { case STATE_INIT: @@ -340,11 +340,11 @@ sput (u_char *s, U_char kernel, int len, int page) if(svsp->irm) bcopy ((svsp->Crtat + svsp->cur_offset), - (svsp->Crtat + (svsp->Crtat + svsp->cur_offset) + 1, (((svsp->maxcol)-1) - svsp->col) * CHR); - + write_char(svsp, attrib, ch); vt_selattr(svsp); @@ -368,11 +368,11 @@ sput (u_char *s, U_char kernel, int len, int page) case ' ': /* ESC sp family */ svsp->state = STATE_BLANK; break; - + case '#': /* ESC # family */ svsp->state = STATE_HASH; break; - + case '&': /* ESC & family (HP) */ if(svsp->vt_pure_mode == M_HPVT) @@ -386,87 +386,87 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->state = STATE_INIT; break; - + case '(': /* ESC ( family */ svsp->state = STATE_BROPN; break; - + case ')': /* ESC ) family */ svsp->state = STATE_BRCLO; break; - + case '*': /* ESC * family */ svsp->state = STATE_STAR; break; - + case '+': /* ESC + family */ svsp->state = STATE_PLUS; break; - + case '-': /* ESC - family */ svsp->state = STATE_MINUS; break; - + case '.': /* ESC . family */ svsp->state = STATE_DOT; break; - + case '/': /* ESC / family */ svsp->state = STATE_SLASH; break; - + case '7': /* SAVE CURSOR */ vt_sc(svsp); svsp->state = STATE_INIT; break; - + case '8': /* RESTORE CURSOR */ vt_rc(svsp); if (!kernel) attrib = svsp->c_attr; svsp->state = STATE_INIT; break; - + case '=': /* keypad application mode */ #if !PCVT_INHIBIT_NUMLOCK vt_keyappl(svsp); #endif svsp->state = STATE_INIT; break; - + case '>': /* keypad numeric mode */ #if !PCVT_INHIBIT_NUMLOCK vt_keynum(svsp); #endif svsp->state = STATE_INIT; break; - + case 'D': /* INDEX */ vt_ind(svsp); svsp->state = STATE_INIT; break; - + case 'E': /* NEXT LINE */ vt_nel(svsp); svsp->state = STATE_INIT; break; - + case 'H': /* set TAB at current col */ svsp->tab_stops[svsp->col] = 1; svsp->state = STATE_INIT; break; - + case 'M': /* REVERSE INDEX */ vt_ri(svsp); svsp->state = STATE_INIT; break; - + case 'N': /* SINGLE SHIFT G2 */ svsp->Gs = svsp->G2; svsp->ss = 1; svsp->state = STATE_INIT; break; - + case 'O': /* SINGLE SHIFT G3 */ svsp->Gs = svsp->G3; svsp->ss = 1; @@ -482,23 +482,23 @@ sput (u_char *s, U_char kernel, int len, int page) vt_da(svsp); svsp->state = STATE_INIT; break; - + case '[': /* CSI detected */ clr_parms(svsp); svsp->state = STATE_CSI; break; - + case '\\': /* String Terminator */ svsp->state = STATE_INIT; break; - + case 'c': /* hard reset */ vt_ris(svsp); if (!kernel) attrib = svsp->c_attr; svsp->state = STATE_INIT; break; - + #if PCVT_SETCOLOR case 'd': /* set color sgr */ if(color) @@ -520,33 +520,33 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->GL = svsp->G2; svsp->state = STATE_INIT; break; - + case 'o': /* Lock Shift G3 -> GL */ svsp->GL = svsp->G3; svsp->state = STATE_INIT; break; - + case '}': /* Lock Shift G2 -> GR */ svsp->GR = svsp->G2; svsp->state = STATE_INIT; break; - + case '|': /* Lock Shift G3 -> GR */ svsp->GR = svsp->G3; svsp->state = STATE_INIT; break; - + case '~': /* Lock Shift G1 -> GR */ svsp->GR = svsp->G1; svsp->state = STATE_INIT; break; - + default: svsp->state = STATE_INIT; break; } break; - + case STATE_BLANK: /* ESC space [FG], which are */ svsp->state = STATE_INIT; /* currently ignored*/ break; @@ -560,18 +560,18 @@ sput (u_char *s, U_char kernel, int len, int page) case '6': /*double width sngle height*/ svsp->state = STATE_INIT; break; - + case '8': /* fill sceen with 'E's */ vt_aln(svsp); svsp->state = STATE_INIT; break; - + default: /* anything else */ svsp->state = STATE_INIT; break; } break; - + case STATE_BROPN: /* designate G0 */ case STATE_BRCLO: /* designate G1 */ case STATE_STAR: /* designate G2 */ @@ -609,18 +609,18 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->parms[svsp->parmi] += (ch -'0'); break; - + case ';': /* next parameter */ - svsp->parmi = + svsp->parmi = (svsp->parmi+1 < MAXPARMS) ? svsp->parmi+1 : svsp->parmi; break; - + case 'h': /* set mode */ vt_set_dec_priv_qm(svsp); svsp->state = STATE_INIT; break; - + case 'l': /* reset mode */ vt_reset_dec_priv_qm(svsp); svsp->state = STATE_INIT; @@ -647,7 +647,7 @@ sput (u_char *s, U_char kernel, int len, int page) } break; - + case STATE_CSI: switch(ch) { @@ -665,156 +665,156 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->parms[svsp->parmi] += (ch -'0'); break; - + case ';': /* next parameter */ - svsp->parmi = + svsp->parmi = (svsp->parmi+1 < MAXPARMS) ? svsp->parmi+1 : svsp->parmi; break; - + case '?': /* ESC [ ? family */ svsp->state = STATE_CSIQM; break; - + case '@': /* insert char */ vt_ic(svsp); svsp->state = STATE_INIT; break; - + case '"': /* select char attribute */ svsp->state = STATE_SCA; break; - + case '\'': /* for DECELR/DECSLE */ /* XXX */ /* another state needed -hm */ break; - + case '!': /* soft terminal reset */ svsp->state = STATE_STR; break; - + case 'A': /* cursor up */ vt_cuu(svsp); svsp->state = STATE_INIT; break; - + case 'B': /* cursor down */ vt_cud(svsp); svsp->state = STATE_INIT; break; - + case 'C': /* cursor forward */ vt_cuf(svsp); svsp->state = STATE_INIT; break; - + case 'D': /* cursor backward */ vt_cub(svsp); svsp->state = STATE_INIT; break; - + case 'H': /* direct cursor addressing*/ vt_curadr(svsp); svsp->state = STATE_INIT; break; - + case 'J': /* erase screen */ vt_clreos(svsp); svsp->state = STATE_INIT; break; - + case 'K': /* erase line */ vt_clreol(svsp); svsp->state = STATE_INIT; break; - + case 'L': /* insert line */ vt_il(svsp); svsp->state = STATE_INIT; break; - + case 'M': /* delete line */ vt_dl(svsp); svsp->state = STATE_INIT; break; - + case 'P': /* delete character */ vt_dch(svsp); svsp->state = STATE_INIT; break; - + case 'S': /* scroll up */ vt_su(svsp); svsp->state = STATE_INIT; break; - + case 'T': /* scroll down */ vt_sd(svsp); svsp->state = STATE_INIT; break; - + case 'X': /* erase character */ vt_ech(svsp); svsp->state = STATE_INIT; break; case 'c': /* device attributes */ - vt_da(svsp); + vt_da(svsp); svsp->state = STATE_INIT; break; - + case 'f': /* direct cursor addressing*/ vt_curadr(svsp); svsp->state = STATE_INIT; break; - + case 'g': /* clear tabs */ vt_clrtab(svsp); svsp->state = STATE_INIT; break; - + case 'h': /* set mode(s) */ vt_set_ansi(svsp); svsp->state = STATE_INIT; break; - + case 'i': /* media copy */ vt_mc(svsp); svsp->state = STATE_INIT; break; - + case 'l': /* reset mode(s) */ vt_reset_ansi(svsp); svsp->state = STATE_INIT; break; - + case 'm': /* select graphic rendition*/ vt_sgr(svsp); if (!kernel) attrib = svsp->c_attr; svsp->state = STATE_INIT; break; - + case 'n': /* reports */ vt_dsr(svsp); svsp->state = STATE_INIT; break; - + case 'r': /* set scrolling region */ vt_stbm(svsp); svsp->state = STATE_INIT; break; - + case 'x': /*request/report parameters*/ vt_reqtparm(svsp); svsp->state = STATE_INIT; break; - + case 'y': /* invoke selftest(s) */ vt_tst(svsp); svsp->state = STATE_INIT; break; - + case 'z': /* DECELR, ignored */ case '{': /* DECSLE, ignored */ svsp->state = STATE_INIT; @@ -841,7 +841,7 @@ sput (u_char *s, U_char kernel, int len, int page) vt_sca(svsp); svsp->state = STATE_INIT; break; - + default: svsp->state = STATE_INIT; break; @@ -874,11 +874,11 @@ sput (u_char *s, U_char kernel, int len, int page) svsp->row = svsp->cur_offset / svsp->maxcol; /* current row update */ /* take care of last character on line behaviour */ - + if(svsp->lastchar && (svsp->col < ((svsp->maxcol)-1))) svsp->lastchar = 0; } - + if(svsp == vsp) /* on current displayed page ? */ cursor_pos_valid = 1; /* position is valid now */ } @@ -891,7 +891,7 @@ vt_coldinit(void) { extern u_short csd_ascii[]; /* pcvt_tbl.h */ extern u_short csd_supplemental[]; - + u_short volatile *cp = Crtat + (CGA_BUF-MONO_BUF)/CHR; u_short was; int nscr, charset; @@ -902,19 +902,19 @@ vt_coldinit(void) do_initialization = 0; /* reset init necessary flag */ /* get the equipment byte from the RTC chip */ - + equipment = ((rtcin(RTC_EQUIPMENT)) >> 4) & 0x03; - + switch(equipment) { case EQ_EGAVGA: /* set memory start to CGA == B8000 */ - + Crtat = Crtat + (CGA_BUF-MONO_BUF)/CHR; - + /* find out, what monitor is connected */ - + was = *cp; *cp = (u_short) 0xA55A; if (*cp != 0xA55A) @@ -952,9 +952,9 @@ vt_coldinit(void) { mda2egaorvga(); Crtat = SaveCrtat; /* mono start */ - } + } } - + /* decouple ega/vga charsets and intensity */ set_2ndcharset(); @@ -972,13 +972,13 @@ vt_coldinit(void) case EQ_80MONO: addr_6845 = MONO_BASE; adaptor_type = MDA_ADAPTOR; - color = 0; - totalfonts = 0; + color = 0; + totalfonts = 0; break; } /* establish default colors */ - + if(color) { kern_attr = (COLOR_KERNEL_FG | COLOR_KERNEL_BG) << 8; @@ -990,11 +990,11 @@ vt_coldinit(void) if(adaptor_type == MDA_ADAPTOR) user_attr = sgr_tab_imono[0] << 8; else - user_attr = sgr_tab_mono[0] << 8; + user_attr = sgr_tab_mono[0] << 8; } totalscreens = 1; /* for now until malloced */ - + for(nscr = 0, svsp = vs; nscr < PCVT_NSCREENS; nscr++, svsp++) { svsp->Crtat = Crtat; /* all same until malloc'ed */ @@ -1179,13 +1179,13 @@ vt_coldinit(void) * values. This avoid problems with * LCD displays that apparently happen * to use font matrices up to 19 - * scan lines and 475 scan lines + * scan lines and 475 scan lines * total in order to make use of the * whole screen area */ outb(addr_6845, CRTC_VDE); - vgacs[charset].scr_scanlines = + vgacs[charset].scr_scanlines = inb(addr_6845 + 1); outb(addr_6845, CRTC_MAXROW); vgacs[charset].char_scanlines = @@ -1213,19 +1213,19 @@ vt_coldinit(void) vgacs[0].loaded = 1; /* The BIOS loaded this at boot */ /* set cursor for first screen */ - + outb(addr_6845,CRTC_CURSTART); /* cursor start reg */ - outb(addr_6845+1,vs[0].cursor_start); + outb(addr_6845+1,vs[0].cursor_start); outb(addr_6845,CRTC_CUREND); /* cursor end reg */ outb(addr_6845+1,vs[0].cursor_end); /* this is to satisfy ddb */ - + if(!keyboard_is_initialized) kbd_code_init1(); /* update keyboard led's */ - + update_led(); } @@ -1267,7 +1267,7 @@ vt_coldmalloc(void) screen_max_size = MAXROW_VGA * MAXCOL_VGA * CHR; } - + for(nscr = 0; nscr < PCVT_NSCREENS; nscr++) { if((vs[nscr].Memory = @@ -1299,32 +1299,32 @@ check_scroll(struct video_state *svsp) if(!svsp->abs_write) { /* we write within scroll region */ - - if(svsp->cur_offset >= ((svsp->scrr_end + 1) * svsp->maxcol)) + + if(svsp->cur_offset >= ((svsp->scrr_end + 1) * svsp->maxcol)) { /* the following piece of code has to be protected */ /* from trying to switch to another virtual screen */ /* while being in there ... */ - + critical_scroll = 1; /* flag protect ON */ - + roll_up(svsp, 1); /* rolling up .. */ - + svsp->cur_offset -= svsp->maxcol;/* update position */ - + if(switch_page != -1) /* someone wanted to switch ? */ { vgapage(switch_page); /* yes, then switch ! */ switch_page = -1; /* reset switch flag */ } - + critical_scroll = 0; /* flag protect OFF */ } } else { /* clip, if outside of screen */ - + if (svsp->cur_offset >= svsp->screen_rows * svsp->maxcol) svsp->cur_offset -= svsp->maxcol; } @@ -1338,7 +1338,7 @@ writefkl(int num, u_char *string, struct video_state *svsp) { if((num < 0) || (num > 7)) /* range ok ? */ return; - + strncpy(svsp->ufkl[num], string, 16); /* save string in static array */ if(svsp->which_fkl == USR_FKL) @@ -1353,7 +1353,7 @@ swritefkl(int num, u_char *string, struct video_state *svsp) { if((num < 0) || (num > 7)) /* range ok ? */ return; - + strncpy(svsp->sfkl[num], string, 16); /* save string in static array */ if(svsp->which_fkl == SYS_FKL) @@ -1367,9 +1367,9 @@ static void wrfkl(int num, u_char *string, struct video_state *svsp) { register u_short *p; - register u_short *p1; + register u_short *p1; register int cnt = 0; - + if(!svsp->labels_on || (svsp->vt_pure_mode == M_PUREVT)) return; @@ -1390,9 +1390,9 @@ wrfkl(int num, u_char *string, struct video_state *svsp) else /* labels 5 .. 8 */ p += ((num * (LABEL_LEN + 6)) + LABEL_MID + 11); - } + } p1 = p + svsp->maxcol; /* second label line */ - + while((*string != '\0') && (cnt < 8)) { *p = ((0x70 << 8) + (*string & 0xff)); @@ -1430,15 +1430,15 @@ fkl_off(struct video_state *svsp) { register u_short *p; register int num; - register int size; - + register int size; + svsp->labels_on = 0; if((vgacs[svsp->vga_charset].screen_size==SIZ_28ROWS) && svsp->force24) size = 4; else size = 3; - + p = (svsp->Crtat + (svsp->screen_rows * svsp->maxcol)); for(num = 0; num < (size * svsp->maxcol); num++) @@ -1467,7 +1467,7 @@ set_emulation_mode(struct video_state *svsp, int mode) { if(svsp->vt_pure_mode == mode) return; - + clr_parms(svsp); /* escape parameter init */ svsp->state = STATE_INIT; /* initial state */ svsp->scrr_beg = 0; /* start of scrolling region */ @@ -1518,12 +1518,12 @@ set_emulation_mode(struct video_state *svsp, int mode) svsp->scrr_len = svsp->screen_rows; svsp->scrr_end = svsp->scrr_len - 1; - } + } #if PCVT_SIGWINCH if (svsp->vs_tty && svsp->vs_tty->t_pgrp) pgsignal(svsp->vs_tty->t_pgrp, SIGWINCH, 1); -#endif /* PCVT_SIGWINCH */ +#endif /* PCVT_SIGWINCH */ } @@ -1554,7 +1554,7 @@ init_sfkl(struct video_state *svsp) /* 1234567812345678 */ swritefkl(0,(u_char *)"132 COLUMNS ",svsp); else - swritefkl(0,(u_char *)" ",svsp); + swritefkl(0,(u_char *)" ",svsp); /* 1234567812345678 */ swritefkl(1,(u_char *)"SOFT-RSTTERMINAL",svsp); @@ -1562,7 +1562,7 @@ init_sfkl(struct video_state *svsp) if(svsp->force24) swritefkl(2,(u_char *)"FORCE24 ENABLE *",svsp); else - swritefkl(2,(u_char *)"FORCE24 ENABLE ",svsp); + swritefkl(2,(u_char *)"FORCE24 ENABLE ",svsp); #if PCVT_SHOWKEYS /* 1234567812345678 */ if(svsp == &vs[0]) @@ -1577,7 +1577,7 @@ init_sfkl(struct video_state *svsp) if(svsp->bell_on) swritefkl(4,(u_char *)"BELL ENABLE *",svsp); else - swritefkl(4,(u_char *)"BELL ENABLE ",svsp); + swritefkl(4,(u_char *)"BELL ENABLE ",svsp); if(svsp->sevenbit) swritefkl(5,(u_char *)"8-BIT ENABLE ",svsp); @@ -1585,11 +1585,11 @@ init_sfkl(struct video_state *svsp) swritefkl(5,(u_char *)"8-BIT ENABLE *",svsp); swritefkl(6,(u_char *)"DISPLAY FUNCTNS ",svsp); - + swritefkl(7,(u_char *)"AUTOWRAPENABLE *",svsp); - /* 1234567812345678 */ + /* 1234567812345678 */ } - + /*---------------------------------------------------------------------------* * switch display to user function key labels *---------------------------------------------------------------------------*/ @@ -1625,11 +1625,11 @@ toggl_24l(struct video_state *svsp) if(svsp->force24) { svsp->force24 = 0; - swritefkl(2,(u_char *)"FORCE24 ENABLE ",svsp); + swritefkl(2,(u_char *)"FORCE24 ENABLE ",svsp); } else { - svsp->force24 = 1; + svsp->force24 = 1; swritefkl(2,(u_char *)"FORCE24 ENABLE *",svsp); } set_screen_size(svsp, vgacs[(svsp->vga_charset)].screen_size); @@ -1772,7 +1772,7 @@ vt_col(struct video_state *svsp, int cols) { if(vga_col(svsp, cols) == 0) return(0); - + if(cols == SCR_COL80) swritefkl(0,(u_char *)"132 COLUMNS ",svsp); else @@ -1781,7 +1781,7 @@ vt_col(struct video_state *svsp, int cols) fillw(user_attr | ' ', svsp->Crtat, svsp->maxcol * svsp->screen_rowsize); - + clr_parms(svsp); /* escape parameter init */ svsp->state = STATE_INIT; /* initial state */ svsp->col = 0; /* init row */ @@ -1815,7 +1815,7 @@ vt_col(struct video_state *svsp, int cols) } return(1); -} +} /*---------------------------------------------------------------------------* * update HP stuff on screen @@ -1917,7 +1917,7 @@ hp_entry(U_char ch, struct video_state *svsp) break; } break; - + case SHP_AND_F: if((ch >= '0') && (ch <= '8')) { @@ -1959,7 +1959,7 @@ hp_entry(U_char ch, struct video_state *svsp) } break; - case SHP_AND_Fak1: + case SHP_AND_Fak1: if(ch == 'k') svsp->hp_state = SHP_AND_Fakd; else @@ -1968,7 +1968,7 @@ hp_entry(U_char ch, struct video_state *svsp) svsp->state = STATE_INIT; } break; - + case SHP_AND_Fakd: if(svsp->l_len > 16) { @@ -2033,7 +2033,7 @@ hp_entry(U_char ch, struct video_state *svsp) else svsp->i++; break; - + case SHP_AND_FakdLls: svsp->s_buf[svsp->i] = ch; if(svsp->i >= svsp->s_len-1) @@ -2108,7 +2108,7 @@ hp_entry(U_char ch, struct video_state *svsp) svsp->m_len *= 10; svsp->m_len += (ch -'0'); break; - + case 'L': svsp->hp_state = SHP_AND_JL; svsp->i = 0; @@ -2136,7 +2136,7 @@ hp_entry(U_char ch, struct video_state *svsp) /* display status line */ /* needs to be implemented */ /* see 2392 man, 3-14 */ - + } else svsp->i++; @@ -2150,7 +2150,7 @@ hp_entry(U_char ch, struct video_state *svsp) svsp->transparent = 0; } break; - + default: svsp->hp_state = SHP_INIT; svsp->state = STATE_INIT; -- cgit v1.1