Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 16eed222 authored by deuce's avatar deuce

Initial work for DECRQSS/DECRPSS from VT-420.

parent 82e1848f
This diff is collapsed.
......@@ -35,12 +35,6 @@
#define _CTERM_H_
#include <stdio.h> /* FILE* */
#if !(defined __BORLANDC__ || defined _MSC_VER)
#include <stdbool.h>
#else
#define bool int
enum { false, true };
#endif
#include <link_list.h>
#include <semwrap.h>
#include "ciolib.h"
......@@ -91,8 +85,6 @@ struct cterminal {
struct vmem_cell *scrollback;
int backlines; // Number of lines in scrollback
char DA[1024]; // Device Attributes
bool autowrap;
bool origin_mode;
#define CTERM_SAVEMODE_AUTOWRAP 0x001
#define CTERM_SAVEMODE_CURSOR 0x002
#define CTERM_SAVEMODE_ALTCHARS 0x004
......@@ -111,6 +103,10 @@ struct cterminal {
unsigned char attr; // Current attribute
uint32_t fg_color;
uint32_t bg_color;
unsigned int extattr; // Extended attributes
#define CTERM_EXTATTR_AUTOWRAP 0x0001
#define CTERM_EXTATTR_ORIGINMODE 0x0002
#define CTERM_EXTATTR_SXSCROLL 0x0004
int save_xpos; // Saved position (for later restore)
int save_ypos;
int sequence; // An escape sequence is being parsed
......@@ -148,6 +144,8 @@ struct cterminal {
int doorway_mode;
int doorway_char; // Indicates next char is a "doorway" mode char
int cursor; // Current cursor mode (Normal or None)
char *fg_tc_str;
char *bg_tc_str;
/* Sixel state */
int sixel; // Sixel status
......@@ -165,7 +163,6 @@ struct cterminal {
Raster Attributes are ignore if this is true. */
int sx_first_pass; // First pass through a line
int sx_hold_update; // hold_update value to restore on completion
bool sx_scroll_mode; // Sixel scrolling mode
int sx_start_x; // Starting X position
int sx_start_y; // Starting Y position
int sx_row_max_x; // Max right size of this sixel line
......
......@@ -613,46 +613,53 @@ CSI Ps... m
Sets or clears one or more text attributes. Unlimited parameters are
supported and are applied in received order. The following are
supported:
Blink Bold FG BG (Modified)
0 - Default attribute, white on black X X X X
1 - Bright Intensity X
2 - Dim intensity X
5 - Blink (By definition, slow blink) X
6 - Blink (By definition, fast blink) X
Blink Bold FG BG TF TB (Modified)
0 - Default attribute, white on black X X X X X X
1 - Bright Intensity X X
2 - Dim intensity X X
5 - Blink (By definition, slow blink) X X
6 - Blink (By definition, fast blink) X X
NOTE: Both blinks are the same speed.
7 - Negative Image - Reverses FG and BG X X
8 - Concealed characters, sets the X
7 - Negative Image - Reverses FG and BG X X X X
8 - Concealed characters, sets the X X X
foreground colour to the background
colour.
22 - Normal intensity X
25 - Steady (Not blinking) X
27 - Positive Image - Reverses FG and BG X X
22 - Normal intensity X X
25 - Steady (Not blinking) X X
27 - Positive Image - Reverses FG and BG X X X X
NOTE: This should be a separate
attribute than 7 but this
implementation makes them equal
30 - Black foreground X
31 - Red foreground X
32 - Green foreground X
33 - Yellow foreground X
34 - Blue foreground X
35 - Magenta foreground X
36 - Cyan foreground X
37 - White foreground X
38 - Extended Foreground (see notes) X
39 - Default foreground (same as white) X
40 - Black background X
41 - Red background X
42 - Green background X
43 - Yellow background X
44 - Blue background X
45 - Magenta background X
46 - Cyan background X
47 - White background X
48 - Extended Background (see notes) X
49 - Default background (same as black) X
30 - Black foreground X X
31 - Red foreground X X
32 - Green foreground X X
33 - Yellow foreground X X
34 - Blue foreground X X
35 - Magenta foreground X X
36 - Cyan foreground X X
37 - White foreground X X
38 - Extended Foreground (see notes) X
39 - Default foreground (same as white) X X
40 - Black background X X
41 - Red background X X
42 - Green background X X
43 - Yellow background X X
44 - Blue background X X
45 - Magenta background X X
46 - Cyan background X X
47 - White background X X
48 - Extended Background (see notes) X
49 - Default background (same as black) X X
All others are ignored.
Blink indicates the blink bit.
Bold indicates the bold bit.
FG indicates the foreground colour.
BG indicates the background colour.
TF indicates that the Tru Colour foreground is changed.
TB indicates that the Tru Colour background is changed.
NOTE: For 38 and 48, two additional formats are supported, a palette
selection and a direct colour selection.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment