Moved stuff around, added vt_not_implemented
This commit is contained in:
parent
8aea3481bb
commit
2a1de832db
@ -17,44 +17,63 @@
|
||||
#include "mooterm/mooterm-private.h"
|
||||
#include "mooterm/mootermbuffer-private.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#if 0
|
||||
#define vt_warning g_warning
|
||||
#else
|
||||
#define vt_warning g_message
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
#define vt_not_implemented() \
|
||||
{ \
|
||||
char *s = _moo_term_current_ctl (parser); \
|
||||
vt_warning ("'%s': implement me", s); \
|
||||
g_free (s); \
|
||||
}
|
||||
#else
|
||||
#define vt_not_implemented()
|
||||
#endif
|
||||
|
||||
|
||||
#define vt_print_char(ch) moo_term_buffer_print_unichar (parser->term->priv->buffer, ch)
|
||||
|
||||
#define vt_XON() g_warning ("%s: got XON", G_STRLOC)
|
||||
#define vt_XOFF() g_warning ("%s: got XOFF", G_STRLOC)
|
||||
|
||||
#define vt_BEL() moo_term_bell (parser->term)
|
||||
#define vt_BS() moo_term_buffer_backspace (parser->term->priv->buffer)
|
||||
#define vt_TAB() moo_term_buffer_tab (parser->term->priv->buffer)
|
||||
#define vt_LF() moo_term_buffer_linefeed (parser->term->priv->buffer)
|
||||
#define vt_CR() moo_term_buffer_carriage_return (parser->term->priv->buffer)
|
||||
#define vt_SO() moo_term_buffer_shift (parser->term->priv->buffer, 0)
|
||||
#define vt_SI() moo_term_buffer_shift (parser->term->priv->buffer, 1)
|
||||
#define vt_XON() g_warning ("%s: got XON", G_STRLOC)
|
||||
#define vt_XOFF() g_warning ("%s: got XOFF", G_STRLOC)
|
||||
#define vt_IND() moo_term_buffer_index (parser->term->priv->buffer)
|
||||
#define vt_NEL() moo_term_buffer_new_line (parser->term->priv->buffer)
|
||||
#define vt_HTS() moo_term_buffer_set_tab_stop (parser->term->priv->buffer)
|
||||
#define vt_RI() moo_term_buffer_reverse_index (parser->term->priv->buffer)
|
||||
#define vt_SS2() moo_term_buffer_single_shift (parser->term->priv->buffer, 2)
|
||||
#define vt_SS3() moo_term_buffer_single_shift (parser->term->priv->buffer, 3)
|
||||
#define vt_DECID() moo_term_decid (parser->term)
|
||||
#define vt_SGR() moo_term_buffer_sgr (parser->term->priv->buffer, \
|
||||
(int*) parser->numbers->data, \
|
||||
parser->numbers->len)
|
||||
#define vt_CUU(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, -n, 0)
|
||||
#define vt_CUD(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, n, 0)
|
||||
#define vt_CUF(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, 0, n)
|
||||
#define vt_CUB(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, 0, -n)
|
||||
#define vt_DCH(n) moo_term_buffer_delete_char (parser->term->priv->buffer, n)
|
||||
#define vt_DL(n) /* moo_term_buffer_delete_line (parser->term->priv->buffer, n) */
|
||||
#define vt_ECH(n) moo_term_buffer_erase_char (parser->term->priv->buffer, n)
|
||||
#define vt_ED(n) moo_term_buffer_erase_in_display (parser->term->priv->buffer, n)
|
||||
#define vt_EL(n) moo_term_buffer_erase_in_line (parser->term->priv->buffer, n)
|
||||
#define vt_ICH(n) moo_term_buffer_insert_char (parser->term->priv->buffer, n)
|
||||
#define vt_IL(n) /* moo_term_buffer_insert_line (parser->term->priv->buffer, n) */
|
||||
#define vt_SET_ICON_NAME(s) moo_term_set_icon_name (parser->term, s)
|
||||
#define vt_SET_WINDOW_TITLE(s) moo_term_set_window_title (parser->term, s)
|
||||
|
||||
#define vt_BEL() moo_term_bell (parser->term)
|
||||
#define vt_BS() moo_term_buffer_backspace (parser->term->priv->buffer)
|
||||
#define vt_TAB() moo_term_buffer_tab (parser->term->priv->buffer)
|
||||
#define vt_LF() moo_term_buffer_linefeed (parser->term->priv->buffer)
|
||||
#define vt_CR() moo_term_buffer_carriage_return (parser->term->priv->buffer)
|
||||
#define vt_SO() moo_term_buffer_shift (parser->term->priv->buffer, 0)
|
||||
#define vt_SI() moo_term_buffer_shift (parser->term->priv->buffer, 1)
|
||||
#define vt_IND() moo_term_buffer_index (parser->term->priv->buffer)
|
||||
#define vt_NEL() moo_term_buffer_new_line (parser->term->priv->buffer)
|
||||
#define vt_HTS() moo_term_buffer_set_tab_stop (parser->term->priv->buffer)
|
||||
#define vt_RI() moo_term_buffer_reverse_index (parser->term->priv->buffer)
|
||||
#define vt_SS2() moo_term_buffer_single_shift (parser->term->priv->buffer, 2)
|
||||
#define vt_SS3() moo_term_buffer_single_shift (parser->term->priv->buffer, 3)
|
||||
#define vt_DECID() moo_term_decid (parser->term)
|
||||
#define vt_SGR() moo_term_buffer_sgr (parser->term->priv->buffer, \
|
||||
(int*) parser->numbers->data, \
|
||||
parser->numbers->len);
|
||||
#define vt_CUU(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, -n, 0)
|
||||
#define vt_CUD(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, n, 0)
|
||||
#define vt_CUF(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, 0, n)
|
||||
#define vt_CUB(n) moo_term_buffer_cursor_move (parser->term->priv->buffer, 0, -n)
|
||||
#define vt_DCH(n) moo_term_buffer_delete_char (parser->term->priv->buffer, n)
|
||||
#define vt_DL(n) moo_term_buffer_delete_line (parser->term->priv->buffer, n)
|
||||
#define vt_ECH(n) moo_term_buffer_erase_char (parser->term->priv->buffer, n)
|
||||
#define vt_ED(n) moo_term_buffer_erase_in_display (parser->term->priv->buffer, n)
|
||||
#define vt_EL(n) moo_term_buffer_erase_in_line (parser->term->priv->buffer, n)
|
||||
#define vt_ICH(n) moo_term_buffer_insert_char (parser->term->priv->buffer, n)
|
||||
#define vt_IL(n) moo_term_buffer_insert_line (parser->term->priv->buffer, n)
|
||||
#define vt_CUP(r,c) moo_term_buffer_cup (parser->term->priv->buffer, (r)-1, (c)-1)
|
||||
#define vt_DECSTBM(t,b) moo_term_buffer_set_scrolling_region (parser->term->priv->buffer, (t)-1, (b)-1);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* MOOTERM_MOOTERM_CTLFUNCS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user