[vte] emulation: Implement DECSR
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] emulation: Implement DECSR
- Date: Tue, 27 Mar 2018 17:47:10 +0000 (UTC)
commit 38f09c5ec29a0d00cfbf12aa0d7acf67d1d226f4
Author: Christian Persch <chpe src gnome org>
Date: Tue Mar 27 19:40:13 2018 +0200
emulation: Implement DECSR
src/vteseq.cc | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 2d96d0a..7e1b9a0 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -4447,9 +4447,14 @@ VteTerminalPrivate::DECSR(vte::parser::Sequence const& seq)
* args[0]: the token
*
* References: VT525
- *
- * FIXMEchpe: implement this
*/
+
+ /* Note: reset() wipes out @seq, so we need to get the
+ * param beforehand, and use send() instead of reply().
+ */
+ auto const token = seq.collect1(0);
+ reset(true, true);
+ send(VTE_REPLY_DECSRC, {token});
}
void
@@ -6628,10 +6633,6 @@ VteTerminalPrivate::RIS(vte::parser::Sequence const& seq)
* References: ECMA-48 ยง 8.3.105
*/
-#if 0
- vte_screen_hard_reset(screen);
-#endif
-
reset(true, true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]