X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=fdf697bfe14f9b943b7ffd62d09222120ec5e73e;hb=323d38da20c8a1d295ab1dbc0fc7ce947ef824e1;hp=ec747cc4f3dd8caafca8d772a023c992e9bf20b8;hpb=416dd257274fd334be082b1138338adffa3e2d5e;p=st.git diff --git a/st.c b/st.c index ec747cc..fdf697b 100644 --- a/st.c +++ b/st.c @@ -170,7 +170,6 @@ static char *base64dec(const char *); static ssize_t xwrite(int, const char *, size_t); /* Globals */ -TermWindow win; Term term; Selection sel; int cmdfd; @@ -1683,11 +1682,8 @@ csihandle(void) case ' ': switch (csiescseq.mode[1]) { case 'q': /* DECSCUSR -- Set Cursor Style */ - DEFAULT(csiescseq.arg[0], 1); - if (!BETWEEN(csiescseq.arg[0], 0, 6)) { + if (xsetcursor(csiescseq.arg[0])) goto unknown; - } - win.cursor = csiescseq.arg[0]; break; default: goto unknown;