DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(readline.info.gz) Modifying Text

Info Catalog (readline.info.gz) Redisplay (readline.info.gz) Readline Convenience Functions (readline.info.gz) Character Input
 
 2.4.7 Modifying Text
 --------------------
 
  -- Function: int rl_insert_text (const char *text)
      Insert TEXT into the line at the current cursor position.  Returns
      the number of characters inserted.
 
  -- Function: int rl_delete_text (int start, int end)
      Delete the text between START and END in the current line.
      Returns the number of characters deleted.
 
  -- Function: char * rl_copy_text (int start, int end)
      Return a copy of the text between START and END in the current
      line.
 
  -- Function: int rl_kill_text (int start, int end)
      Copy the text between START and END in the current line to the
      kill ring, appending or prepending to the last kill if the last
      command was a kill command.  The text is deleted.  If START is
      less than END, the text is appended, otherwise prepended.  If the
      last command was not a kill, a new kill ring slot is used.
 
  -- Function: int rl_push_macro_input (char *macro)
      Cause MACRO to be inserted into the line, as if it had been invoked
      by a key bound to a macro.  Not especially useful; use
      `rl_insert_text()' instead.
 
Info Catalog (readline.info.gz) Redisplay (readline.info.gz) Readline Convenience Functions (readline.info.gz) Character Input
automatically generated byinfo2html