Commit 5eb6083
vt: save/restore unicode screen buffer for alternate screen
The alternate screen support added by commit 23743ba ("vt: add
support for smput/rmput escape codes") only saves and restores the
regular screen buffer (vc_origin), but completely ignores the corresponding
unicode screen buffer (vc_uni_lines) creating a messed-up display.
Add vc_saved_uni_lines to save the unicode screen buffer when entering
the alternate screen, and restore it when leaving. Also ensure proper
cleanup in reset_terminal() and vc_deallocate().
Fixes: 23743ba ("vt: add support for smput/rmput escape codes")
Cc: stable <[email protected]>
Signed-off-by: Nicolas Pitre <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent a7b9ce3 commit 5eb6083
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
1342 | 1344 | | |
1343 | 1345 | | |
1344 | 1346 | | |
| |||
1884 | 1886 | | |
1885 | 1887 | | |
1886 | 1888 | | |
| 1889 | + | |
| 1890 | + | |
1887 | 1891 | | |
1888 | 1892 | | |
1889 | 1893 | | |
| |||
1905 | 1909 | | |
1906 | 1910 | | |
1907 | 1911 | | |
| 1912 | + | |
| 1913 | + | |
1908 | 1914 | | |
1909 | 1915 | | |
1910 | 1916 | | |
| |||
2227 | 2233 | | |
2228 | 2234 | | |
2229 | 2235 | | |
| 2236 | + | |
| 2237 | + | |
2230 | 2238 | | |
2231 | 2239 | | |
2232 | 2240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
0 commit comments