Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9bcfb05fbc
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (41 sloc) 1.027 kb
/*
* CommonType.h
* MacBlueTelnet
*
* Created by Yung-Luen Lan on 9/11/07.
* Copyright 2007 yllan.org. All rights reserved.
*
*/
typedef union {
unsigned short v;
struct {
unsigned int fgColor : 4;
unsigned int bgColor : 4;
unsigned int bold : 1;
unsigned int underline : 1;
unsigned int blink : 1;
unsigned int reverse : 1;
unsigned int doubleByte : 2;
unsigned int url : 1;
unsigned int nothing : 1;
} f;
} attribute;
typedef struct {
unsigned char byte;
attribute attr;
} cell;
typedef enum {C0, INTERMEDIATE, ALPHABETIC, DELETE, C1, G1, SPECIAL, ERROR} ASCII_CODE;
typedef enum YLEncoding {
YLBig5Encoding,
YLGBKEncoding
} YLEncoding;
typedef enum YLANSIColorKey {
YLCtrlUANSIColorKey,
YLEscEscEscANSIColorKey
} YLANSIColorKey;
int isHiddenAttribute(attribute a) ;
int isBlinkCell(cell c) ;
int bgColorIndexOfAttribute(attribute a) ;
int fgColorIndexOfAttribute(attribute a) ;
int bgBoldOfAttribute(attribute a) ;
int fgBoldOfAttribute(attribute a) ;
Jump to Line
Something went wrong with that request. Please try again.