[vte] emulation: Migrating from terminfo: clear operations



commit 73710e6aeabb48d50b1ee93a56aaca528b45e3c7
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon May 19 14:54:37 2014 +0200

    emulation: Migrating from terminfo: clear operations
    
    Hardwire the behavior of clear operations, rather than relying on
    terminfo.

 src/vteseq-2.gperf |    6 +++---
 src/vteseq.c       |   14 +++++++-------
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/vteseq-2.gperf b/src/vteseq-2.gperf
index 0ae159f..739b5bf 100644
--- a/src/vteseq-2.gperf
+++ b/src/vteseq-2.gperf
@@ -159,10 +159,10 @@ struct vteseq_2_struct {
 #"bl", VTE_SEQUENCE_HANDLER(vte_sequence_handler_bl)
 #"bt", VTE_SEQUENCE_HANDLER(vte_sequence_handler_bt)
 "cS", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cS)
-"cb", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cb)
+#"cb", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cb)
 "cc", VTE_SEQUENCE_HANDLER(vte_sequence_handler_noop)
-"cd", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cd)
-"ce", VTE_SEQUENCE_HANDLER(vte_sequence_handler_ce)
+#"cd", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cd)
+#"ce", VTE_SEQUENCE_HANDLER(vte_sequence_handler_ce)
 #"ch", VTE_SEQUENCE_HANDLER(vte_sequence_handler_ch)
 #"cl", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cl)
 #"cm", VTE_SEQUENCE_HANDLER(vte_sequence_handler_cm)
diff --git a/src/vteseq.c b/src/vteseq.c
index cccc525..ec54ba7 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -975,7 +975,7 @@ vte_sequence_handler_back_tab (VteTerminal *terminal, GValueArray *params)
 
 /* Clear from the cursor position to the beginning of the line. */
 static void
-vte_sequence_handler_cb (VteTerminal *terminal, GValueArray *params)
+_vte_sequence_handler_cb (VteTerminal *terminal, GValueArray *params)
 {
        VteRowData *rowdata;
        long i;
@@ -1009,7 +1009,7 @@ vte_sequence_handler_cb (VteTerminal *terminal, GValueArray *params)
 
 /* Clear to the right of the cursor and below the current line. */
 static void
-vte_sequence_handler_cd (VteTerminal *terminal, GValueArray *params)
+_vte_sequence_handler_cd (VteTerminal *terminal, GValueArray *params)
 {
        VteRowData *rowdata;
        glong i;
@@ -1064,7 +1064,7 @@ vte_sequence_handler_cd (VteTerminal *terminal, GValueArray *params)
 
 /* Clear from the cursor position to the end of the line. */
 static void
-vte_sequence_handler_ce (VteTerminal *terminal, GValueArray *params)
+_vte_sequence_handler_ce (VteTerminal *terminal, GValueArray *params)
 {
        VteRowData *rowdata;
        VteScreen *screen;
@@ -2653,14 +2653,14 @@ vte_sequence_handler_erase_in_display (VteTerminal *terminal, GValueArray *param
        switch (param) {
        case 0:
                /* Clear below the current line. */
-               vte_sequence_handler_cd (terminal, NULL);
+                _vte_sequence_handler_cd (terminal, NULL);
                break;
        case 1:
                /* Clear above the current line. */
                _vte_terminal_clear_above_current (terminal);
                /* Clear everything to the left of the cursor, too. */
                /* FIXME: vttest. */
-               vte_sequence_handler_cb (terminal, NULL);
+                _vte_sequence_handler_cb (terminal, NULL);
                break;
        case 2:
                /* Clear the entire screen. */
@@ -2694,11 +2694,11 @@ vte_sequence_handler_erase_in_line (VteTerminal *terminal, GValueArray *params)
        switch (param) {
        case 0:
                /* Clear to end of the line. */
-               vte_sequence_handler_ce (terminal, NULL);
+                _vte_sequence_handler_ce (terminal, NULL);
                break;
        case 1:
                /* Clear to start of the line. */
-               vte_sequence_handler_cb (terminal, NULL);
+                _vte_sequence_handler_cb (terminal, NULL);
                break;
        case 2:
                /* Clear the entire line. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]