common.cxx File Reference

#include "compat.h"
#include "sys.h"
#include "el.h"

Go to the source code of this file.

Functions

el_protected ElAction_t ed_end_of_file (EditLine_t *el, int)
el_protected ElAction_t ed_insert (EditLine_t *el, int c)
el_protected ElAction_t ed_delete_prev_word (EditLine_t *el, int)
el_protected ElAction_t ed_delete_next_char (EditLine_t *el, int)
el_protected ElAction_t ed_kill_line (EditLine_t *el, int)
el_protected ElAction_t ed_move_to_end (EditLine_t *el, int)
el_protected ElAction_t ed_move_to_beg (EditLine_t *el, int)
el_protected ElAction_t ed_transpose_chars (EditLine_t *el, int c)
el_protected ElAction_t ed_next_char (EditLine_t *el, int)
el_protected ElAction_t ed_prev_word (EditLine_t *el, int)
el_protected ElAction_t ed_prev_char (EditLine_t *el, int)
el_protected ElAction_t ed_quoted_insert (EditLine_t *el, int c)
el_protected ElAction_t ed_digit (EditLine_t *el, int c)
el_protected ElAction_t ed_argument_digit (EditLine_t *el, int c)
el_protected ElAction_t ed_unassigned (EditLine_t *el, int)
el_protected ElAction_t ed_tty_sigint (EditLine_t *, int)
el_protected ElAction_t ed_tty_dsusp (EditLine_t *, int)
el_protected ElAction_t ed_tty_flush_output (EditLine_t *, int)
el_protected ElAction_t ed_tty_sigquit (EditLine_t *, int)
el_protected ElAction_t ed_tty_sigtstp (EditLine_t *, int)
el_protected ElAction_t ed_tty_stop_output (EditLine_t *, int)
el_protected ElAction_t ed_tty_start_output (EditLine_t *, int)
el_protected ElAction_t ed_newline (EditLine_t *el, int)
el_protected ElAction_t ed_delete_prev_char (EditLine_t *el, int)
el_protected ElAction_t ed_clear_screen (EditLine_t *el, int)
el_protected ElAction_t ed_redisplay (EditLine_t *, int)
el_protected ElAction_t ed_start_over (EditLine_t *el, int)
el_protected ElAction_t ed_sequence_lead_in (EditLine_t *, int)
el_protected ElAction_t ed_prev_history (EditLine_t *el, int)
el_protected ElAction_t ed_next_history (EditLine_t *el, int)
el_protected ElAction_t ed_search_prev_history (EditLine_t *el, int)
el_protected ElAction_t ed_search_next_history (EditLine_t *el, int)
el_protected ElAction_t ed_prev_line (EditLine_t *el, int)
el_protected ElAction_t ed_next_line (EditLine_t *el, int)
el_protected ElAction_t ed_command (EditLine_t *el, int)
el_protected ElAction_t ed_replay_hist (EditLine_t *el, int)


Function Documentation

el_protected ElAction_t ed_argument_digit ( EditLine_t el,
int  c 
)

Definition at line 469 of file common.cxx.

References CC_ARGHACK, CC_ERROR, ElState_t::fArgument, ElState_t::fDoingArg, and EditLine_t::fState.

el_protected ElAction_t ed_clear_screen ( EditLine_t el,
int   
)

Definition at line 631 of file common.cxx.

References CC_REFRESH, re_clear_display(), and term_clear_screen().

el_protected ElAction_t ed_command ( EditLine_t el,
int   
)

Definition at line 960 of file common.cxx.

References c_gets(), c_insert(), CC_ERROR, CC_REFRESH, EL_BUFSIZ, ElLine_t::fBufColor, ElLine_t::fBuffer, ElLine_t::fCursor, ElLine_t::fLastChar, EditLine_t::fLine, parse_line(), and re_refresh().

el_protected ElAction_t ed_delete_next_char ( EditLine_t el,
int   
)

Definition at line 172 of file common.cxx.

References c_delafter(), CC_EOF, CC_ERROR, CC_REFRESH, ElState_t::fArgument, ElLine_t::fBuffer, EditLine_t::fCursor, ElLine_t::fCursor, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fMap, fprintf(), EditLine_t::fState, ElMap_t::fType, MAP_VI, STReof, term__flush(), term_overwrite(), and void.

el_protected ElAction_t ed_delete_prev_char ( EditLine_t el,
int   
)

Definition at line 610 of file common.cxx.

References c_delbefore(), CC_ERROR, CC_REFRESH, ElState_t::fArgument, ElLine_t::fBuffer, ElLine_t::fCursor, EditLine_t::fLine, and EditLine_t::fState.

el_protected ElAction_t ed_delete_prev_word ( EditLine_t el,
int   
)

Definition at line 141 of file common.cxx.

References c__prev_word(), c_delbefore(), CC_ERROR, CC_REFRESH, ce__isword(), ElState_t::fArgument, CKill_t::fBuf, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, ElCharEd_t::fKill, CKill_t::fLast, EditLine_t::fLine, EditLine_t::fState, and p.

el_protected ElAction_t ed_digit ( EditLine_t el,
int  c 
)

Definition at line 419 of file common.cxx.

References c_delafter(), c_insert(), CC_ARGHACK, CC_ERROR, CC_NORM, ch_enlargebufs(), EM_UNIVERSAL_ARGUMENT, ElState_t::fArgument, CUndo_t::fBuf, ElLine_t::fBufColor, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, ElState_t::fDoingArg, ElState_t::fInputMode, CUndo_t::fISize, ElLine_t::fLastChar, ElState_t::fLastCmd, ElLine_t::fLimit, EditLine_t::fLine, EditLine_t::fState, ElCharEd_t::fUndo, MODE_INSERT, and re_fastaddc().

el_protected ElAction_t ed_end_of_file ( EditLine_t el,
int   
)

Definition at line 59 of file common.cxx.

References CC_EOF, ElLine_t::fLastChar, EditLine_t::fLine, and re_goto_bottom().

Referenced by c_gets(), ce_inc_search(), and ed_quoted_insert().

el_protected ElAction_t ed_insert ( EditLine_t el,
int  c 
)

Definition at line 71 of file common.cxx.

References c_delafter(), c_insert(), CC_ERROR, CC_NORM, ch_enlargebufs(), ElState_t::fArgument, CUndo_t::fBuf, ElLine_t::fBufColor, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, ElState_t::fDoingArg, ElState_t::fInputMode, CUndo_t::fISize, ElLine_t::fLastChar, ElLine_t::fLimit, EditLine_t::fLine, EditLine_t::fState, ElCharEd_t::fUndo, i, MODE_INSERT, re_fastaddc(), re_refresh(), and size_t.

Referenced by ed_quoted_insert().

el_protected ElAction_t ed_kill_line ( EditLine_t el,
int   
)

Definition at line 226 of file common.cxx.

References CC_REFRESH, CKill_t::fBuf, EditLine_t::fCharEd, ElLine_t::fCursor, ElCharEd_t::fKill, CKill_t::fLast, ElLine_t::fLastChar, and EditLine_t::fLine.

Referenced by ed_next_history().

el_protected ElAction_t ed_move_to_beg ( EditLine_t el,
int   
)

Definition at line 270 of file common.cxx.

References CC_CURSOR, CC_REFRESH, cv_delfini(), DELETE, CVCmd_t::fAction, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, EditLine_t::fLine, EditLine_t::fMap, ElMap_t::fType, ElCharEd_t::fVCmd, and MAP_VI.

el_protected ElAction_t ed_move_to_end ( EditLine_t el,
int   
)

Definition at line 247 of file common.cxx.

References CC_CURSOR, CC_REFRESH, cv_delfini(), DELETE, CVCmd_t::fAction, EditLine_t::fCharEd, ElLine_t::fCursor, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fMap, ElMap_t::fType, ElCharEd_t::fVCmd, and MAP_VI.

el_protected ElAction_t ed_newline ( EditLine_t el,
int   
)

Definition at line 588 of file common.cxx.

References CC_NEWLINE, ElLine_t::fBuffer, EditLine_t::fCharEd, CVCmd_t::fIns, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fMap, ElMap_t::fType, ElCharEd_t::fVCmd, MAP_VI, and re_goto_bottom().

Referenced by ed_replay_hist().

el_protected ElAction_t ed_next_char ( EditLine_t el,
int   
)

Definition at line 319 of file common.cxx.

References CC_CURSOR, CC_ERROR, CC_REFRESH, cv_delfini(), DELETE, CVCmd_t::fAction, ElState_t::fArgument, EditLine_t::fCharEd, ElLine_t::fCursor, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fMap, EditLine_t::fState, ElMap_t::fType, ElCharEd_t::fVCmd, and MAP_VI.

el_protected ElAction_t ed_next_history ( EditLine_t el,
int   
)

Definition at line 714 of file common.cxx.

References CC_ERROR, ed_kill_line(), CUndo_t::fAction, ElState_t::fArgument, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, ElHistory_t::fEventNo, EditLine_t::fHistory, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fState, ElCharEd_t::fUndo, hist_get(), and NOP.

el_protected ElAction_t ed_next_line ( EditLine_t el,
int   
)

Definition at line 923 of file common.cxx.

References c_hpos(), CC_CURSOR, CC_ERROR, ElState_t::fArgument, ElLine_t::fCursor, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fState, and ptr.

el_protected ElAction_t ed_prev_char ( EditLine_t el,
int   
)

Definition at line 372 of file common.cxx.

References CC_CURSOR, CC_ERROR, CC_REFRESH, cv_delfini(), DELETE, CVCmd_t::fAction, ElState_t::fArgument, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, EditLine_t::fLine, EditLine_t::fMap, EditLine_t::fState, ElMap_t::fType, ElCharEd_t::fVCmd, and MAP_VI.

el_protected ElAction_t ed_prev_history ( EditLine_t el,
int   
)

Definition at line 678 of file common.cxx.

References CC_ERROR, CC_NORM, EL_BUFSIZ, CUndo_t::fAction, ElState_t::fArgument, ElHistory_t::fBuf, ElLine_t::fBuffer, EditLine_t::fCharEd, ElHistory_t::fEventNo, EditLine_t::fHistory, ElHistory_t::fLast, ElLine_t::fLastChar, EditLine_t::fLine, EditLine_t::fState, ElCharEd_t::fUndo, hist_get(), NOP, re_refresh(), and void.

Referenced by el_gets_newline().

el_protected ElAction_t ed_prev_line ( EditLine_t el,
int   
)

Definition at line 875 of file common.cxx.

References c_hpos(), ElState_t::fArgument, ElLine_t::fBuffer, ElLine_t::fCursor, EditLine_t::fLine, EditLine_t::fState, and ptr.

el_protected ElAction_t ed_prev_word ( EditLine_t el,
int   
)

Definition at line 346 of file common.cxx.

References c__prev_word(), CC_CURSOR, CC_ERROR, CC_REFRESH, ce__isword(), cv_delfini(), DELETE, CVCmd_t::fAction, ElState_t::fArgument, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, EditLine_t::fLine, EditLine_t::fMap, EditLine_t::fState, ElMap_t::fType, ElCharEd_t::fVCmd, and MAP_VI.

el_protected ElAction_t ed_quoted_insert ( EditLine_t el,
int  c 
)

Definition at line 398 of file common.cxx.

References ed_end_of_file(), ed_insert(), el_getc(), num, tty_noquotemode(), and tty_quotemode().

el_protected ElAction_t ed_redisplay ( EditLine_t ,
int   
)

Definition at line 644 of file common.cxx.

References CC_REDISPLAY.

el_protected ElAction_t ed_replay_hist ( EditLine_t el,
int   
)

Definition at line 1008 of file common.cxx.

References ed_newline(), el_push(), ElHistory_t::fEventNo, EditLine_t::fHistory, ElState_t::fReplayHist, EditLine_t::fState, and newline.

Referenced by el_gets().

el_protected ElAction_t ed_search_next_history ( EditLine_t el,
int   
)

Definition at line 816 of file common.cxx.

References c_hmatch(), c_setpat(), CC_ERROR, CUndo_t::fAction, CVCmd_t::fAction, ElHistory_t::fBuf, ElLine_t::fBuffer, EditLine_t::fCharEd, EditLine_t::fErrFile, ElHistory_t::fEventNo, EditLine_t::fHistory, ElLine_t::fLastChar, EditLine_t::fLine, fprintf(), ElHistory_t::fRef, ElCharEd_t::fUndo, ElCharEd_t::fVCmd, h, HIST_FIRST, hist_get(), HIST_NEXT, hp, if(), NOP, NULL, size_t, and void.

Referenced by ce_inc_search(), cv_repeat_srch(), and cv_search().

el_protected ElAction_t ed_search_prev_history ( EditLine_t el,
int   
)

Definition at line 741 of file common.cxx.

References c_hmatch(), c_setpat(), CC_ERROR, EL_BUFSIZ, CUndo_t::fAction, CVCmd_t::fAction, ElHistory_t::fBuf, ElLine_t::fBuffer, EditLine_t::fCharEd, EditLine_t::fErrFile, ElHistory_t::fEventNo, EditLine_t::fHistory, ElHistory_t::fLast, ElLine_t::fLastChar, EditLine_t::fLine, fprintf(), ElHistory_t::fRef, ElCharEd_t::fUndo, ElCharEd_t::fVCmd, h, HIST_FIRST, hist_get(), HIST_NEXT, hp, if(), NOP, NULL, size_t, and void.

Referenced by ce_inc_search(), cv_repeat_srch(), and cv_search().

el_protected ElAction_t ed_sequence_lead_in ( EditLine_t ,
int   
)

Definition at line 667 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_start_over ( EditLine_t el,
int   
)

Definition at line 655 of file common.cxx.

References CC_REFRESH, and ch_reset().

el_protected ElAction_t ed_transpose_chars ( EditLine_t el,
int  c 
)

Definition at line 292 of file common.cxx.

References CC_ERROR, CC_REFRESH, ElLine_t::fBuffer, ElLine_t::fCursor, ElLine_t::fLastChar, and EditLine_t::fLine.

el_protected ElAction_t ed_tty_dsusp ( EditLine_t ,
int   
)

Definition at line 522 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_flush_output ( EditLine_t ,
int   
)

Definition at line 533 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_sigint ( EditLine_t ,
int   
)

TTY key handling.

Definition at line 511 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_sigquit ( EditLine_t ,
int   
)

Definition at line 544 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_sigtstp ( EditLine_t ,
int   
)

Definition at line 555 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_start_output ( EditLine_t ,
int   
)

Definition at line 577 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_tty_stop_output ( EditLine_t ,
int   
)

Definition at line 566 of file common.cxx.

References CC_NORM.

el_protected ElAction_t ed_unassigned ( EditLine_t el,
int   
)

Definition at line 494 of file common.cxx.

References CC_NORM, term__flush(), and term_beep().


Generated on Tue Jul 5 15:57:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1