mirror of
https://github.com/rfivet/uemacs.git
synced 2024-10-02 18:26:19 -04:00
Force a screen re-draw after tcap 'ti' on terminal open
The 'tcapkopen()' function re-initializes the terminal with the 'ti' sequence, which for most sane termcap entries is just empty. But for 'xterm', that seems to actually be a real control sequence (clear and reset?), and we'd better tell display.c that the screen is now garbage and needs to be re-drawn. Also, make tcapkclose() match the 'ti' (terminal init) with a 'te' (terminal exit). Maybe we should just stop playing games with ti/te, but this at least improves the situation a bit. Reported-by: Bijan Soleymani <bijan@psq.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2d0b568559
commit
c0970c4220
7
tcap.c
7
tcap.c
@ -229,12 +229,19 @@ static void tcapkopen(void)
|
|||||||
#if PKCODE
|
#if PKCODE
|
||||||
putpad(TI);
|
putpad(TI);
|
||||||
ttflush();
|
ttflush();
|
||||||
|
ttrow = 999;
|
||||||
|
ttcol = 999;
|
||||||
|
sgarbf = TRUE;
|
||||||
#endif
|
#endif
|
||||||
strcpy(sres, "NORMAL");
|
strcpy(sres, "NORMAL");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tcapkclose(void)
|
static void tcapkclose(void)
|
||||||
{
|
{
|
||||||
|
#if PKCODE
|
||||||
|
putpad(TE);
|
||||||
|
ttflush();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tcapmove(int row, int col)
|
static void tcapmove(int row, int col)
|
||||||
|
Loading…
Reference in New Issue
Block a user