Show
Ignore:
Timestamp:
09/05/09 04:10:23 (3 years ago)
Author:
Pierre-Alexandre Meyer <pierre@…>
Children:
3dbfcb101d1227e799c0eb070c046628498ecf5a
Parents:
3f86e5ec0954aa2b2da60f007705cbe996820fc4
git-author:
H. Peter Anvin <hpa@zytor.com> / 2009-08-13T22:35:28Z-0700
git-committer:
Pierre-Alexandre Meyer <pierre@mouraf.org> / 2009-09-04T21:10:23Z-0700
Message:

ansi: add support for no-wrap mode, cleanups

Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it
is CSI = 7 l; which means that the only way to support both is to
print both sequences and then erase the resulting garbage.)

Signed-off-by: H. Peter Anvin <hpa@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/lib/sys/ansi.h

    re9b317 r86e267  
    77 
    88#include <inttypes.h> 
     9#include <stdbool.h> 
    910 
    1011#define ANSI_MAX_PARMS  16 
     
    2829 
    2930struct term_state { 
    30     struct curxy xy; 
    31     int cindex;                 /* SOH color index */ 
    32     int vtgraphics;             /* VT graphics on/off */ 
    33     int intensity; 
    34     int underline; 
    35     int blink; 
    36     int reverse; 
    37     int fg; 
    38     int bg; 
    39     int autocr; 
    40     struct curxy saved_xy; 
    41     int cursor; 
    4231    enum ansi_state state; 
    43     int pvt;                    /* Private code? */ 
    4432    int nparms;                 /* Number of parameters seen */ 
    4533    int parms[ANSI_MAX_PARMS]; 
     34    bool pvt;                   /* Private code? */ 
     35    struct curxy xy; 
     36    struct curxy saved_xy; 
     37    uint8_t cindex;             /* SOH color index */ 
     38    uint8_t fg; 
     39    uint8_t bg; 
     40    uint8_t intensity; 
     41    bool vtgraphics;            /* VT graphics on/off */ 
     42    bool underline; 
     43    bool blink; 
     44    bool reverse; 
     45    bool autocr; 
     46    bool autowrap; 
     47    bool cursor; 
    4648}; 
    4749