pinosaur
/
st.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s/DSC/DCS/ DCS stands for DEVICE CONTROL STRING
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
653cd49
..
297eb3f
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-149,7
+149,7
@@
enum charset {
enum escape_state {
ESC_START = 1,
ESC_CSI = 2,
enum escape_state {
ESC_START = 1,
ESC_CSI = 2,
- ESC_STR = 4, /* D
SC
, OSC, PM, APC */
+ ESC_STR = 4, /* D
CS
, OSC, PM, APC */
ESC_ALTCHARSET = 8,
ESC_STR_END = 16, /* a final string was encountered */
ESC_TEST = 32, /* Enter in test mode */
ESC_ALTCHARSET = 8,
ESC_STR_END = 16, /* a final string was encountered */
ESC_TEST = 32, /* Enter in test mode */
@@
-452,7
+452,7
@@
static char utf8encodebyte(long, size_t);
static size_t utf8len(char *);
static size_t utf8validate(long *, size_t);
static size_t utf8len(char *);
static size_t utf8validate(long *, size_t);
-static ssize_t xwrite(int, char *, size_t);
+static ssize_t xwrite(int, c
onst c
har *, size_t);
static void *xmalloc(size_t);
static void *xrealloc(void *, size_t);
static char *xstrdup(char *);
static void *xmalloc(size_t);
static void *xrealloc(void *, size_t);
static char *xstrdup(char *);
@@
-518,7
+518,7
@@
static Fontcache frc[16];
static int frclen = 0;
ssize_t
static int frclen = 0;
ssize_t
-xwrite(int fd, char *s, size_t len) {
+xwrite(int fd, c
onst c
har *s, size_t len) {
size_t aux = len;
while(len > 0) {
size_t aux = len;
while(len > 0) {
@@
-1270,7
+1270,7
@@
ttyread(void) {
void
ttywrite(const char *s, size_t n) {
void
ttywrite(const char *s, size_t n) {
- if(write(cmdfd, s, n) == -1)
+ if(
x
write(cmdfd, s, n) == -1)
die("write error on tty: %s\n", strerror(errno));
}
die("write error on tty: %s\n", strerror(errno));
}
@@
-1781,7
+1781,6
@@
tsetmode(bool priv, bool set, int *args, int narg) {
for(lim = args + narg; args < lim; ++args) {
if(priv) {
switch(*args) {
for(lim = args + narg; args < lim; ++args) {
if(priv) {
switch(*args) {
- break;
case 1: /* DECCKM -- Cursor key */
MODBIT(term.mode, set, MODE_APPCURSOR);
break;
case 1: /* DECCKM -- Cursor key */
MODBIT(term.mode, set, MODE_APPCURSOR);
break;
@@
-2170,7
+2169,7
@@
strhandle(void) {
case 'k': /* old title set compatibility */
xsettitle(strescseq.args[0]);
return;
case 'k': /* old title set compatibility */
xsettitle(strescseq.args[0]);
return;
- case 'P': /* D
SC
-- Device Control String */
+ case 'P': /* D
CS
-- Device Control String */
case '_': /* APC -- Application Program Command */
case '^': /* PM -- Privacy Message */
return;
case '_': /* APC -- Application Program Command */
case '^': /* PM -- Privacy Message */
return;