Changeset 1009


Ignore:
Timestamp:
Mar 4, 2008, 2:21:33 PM (10 years ago)
Author:
dkg
Message:

testreadline: experimenting with text insertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/readline/testreadline.c

    r1008 r1009  
    33#include <readline/readline.h>
    44
     5
     6int testfunc() {
     7  rl_insert_text("blblb");
     8  return 0;
     9}
     10
     11
    512int main (int argc, char** argv) {
    613  char* x = NULL;
    714  const char prompt[] = "Prompt: ";
     15
     16  rl_pre_input_hook = testfunc;
    817
    918  x = readline(prompt);
Note: See TracChangeset for help on using the changeset viewer.